@import '../fonts/fontawesome-free-6.4.0-web/css/fontawesome.min.css';

@import '../fonts/fontawesome-free-6.4.0-web/css/solid.min.css';

:root {
    --main-color: #ff7410;
    --light-color: #fff;
    --dark-color: #212121;
    --accent-color: #333;
    --accent2-color: #444;
    --error-color: #a94442;
}

@font-face {
    font-family: 'PoiretOne';
    src: url('../fonts/Poiret_One/PoiretOne-Regular.woff2') format('woff2'),
        url('../fonts/Poiret_One/PoiretOne-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Poiret_One/PoiretOne-Regular.woff2') format('woff2'),
        url('../fonts/Poiret_One/PoiretOne-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Dosis';
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.7;
    font-size: 17px;
}

h2 {
    margin-top: 40px;
}

/** Navi **/
nav {
    background-color: var(--accent-color);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
}

nav a {
    color: var(--light-color);
    display: block;
    padding: 25px 10px;
    text-decoration: none;
}

nav a:hover,
.sub-nav a:hover {
    background-color: var(--accent2-color);
    color: var(--main-color);
}

.sub-nav {
    display: none;
    min-width: 120px;
    z-index: 100;
}

.sub-nav li {
    display: block;
}

.sub-nav a {
    padding: 10px;
}

nav li:hover .sub-nav {
    display: block;
    position: absolute;
    background-color: var(--accent2-color);
}

.nav-logo {
    max-height: 25px;
    margin-right: 35px;
}

.spacer {
    width: 100px;
    display: inline-block;
}

/** Footer **/

footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--accent-color);
}

footer li {
    float: right;
}

footer a {
    display: block;
    color: var(--light-color);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

footer {
    margin-top: 20px;
    float: left;
    width: 100%;
}

/** General **/

h1 {
    margin-bottom: 50px;
}

main {
    padding: 15px 50px;
}


form.action-button-form {
    display: inline-block;
}

.action-button {
    background: transparent;
    color: rgb(190, 190, 190);
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    border: none;
}

.action-button:hover {
    color: var(--main-color);
}

.button {
    background: var(--main-color);
    opacity: 0.85;
    color: var(--light-color);
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    padding: 9px 15px;
    border: none;
    margin: 0px 15px;
    cursor: pointer;
}

a.active {
    border-bottom: 2px solid var(--main-color);
}

label {
    padding-right: 15px;
    min-width: 100px;
    display: inline-block;
    text-align: right;
}

input {
    height: 30px;
    border-radius: 5px;
    width: 300px;
}

.error-border {
    border: 2px solid var(--error-color);
}

hr {
    border: none;
    height: 2px;
    background-image: linear-gradient(to right, transparent, var(--accent-color), transparent);
    clear: both;
    margin-bottom: 25px;
}

.col {
    width: 700px;
    float: left;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.float-right {
    float: right;
}

form.auth-form {
    max-width: 440px;
}

a.no-link {
    pointer-events: none;
    color: #767676;
}

/** Users **/

table.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

.user-table th,
.user-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--accent2-color);
}

.user-table th {
    background-color: var(--accent2-color);
    font-weight: bold;
    text-align: left;
}


/** Welcome **/

.welcome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: "PoiretOne";
    font-size: 20px;
    margin-top: 20px;
}

.welcome .button {
    padding: 15px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/** Index **/

.collection-item-title {
    max-height: 150px;
    display: inline-block;
}

.collection-list {
    width: 600px;
}

.collection-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: rgb(50, 50, 50);
    border: 1px solid #525252;
    color: var(--light-color);
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.collection-child-item {
    margin-left: 35px;
}

/* View Collection */
.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
    flex: 25%;
    max-width: 33.3%;
    padding: 0 4px;
}

.column img {
    margin-bottom: 25px;
    vertical-align: middle;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s linear;
    filter: grayscale(0);

}

.column img:hover {
    filter: grayscale(1) brightness(0.5);

}

@media screen and (max-width: 800px) {
    .column {
        flex: 50%;
        max-width: 50%;
    }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .column {
        flex: 100%;
        max-width: 100%;
    }

    .column img {
        filter: grayscale(0) brightness(1);
    }
}


/* Edit Collection */

.collection-images-edit img {
    height: 80px;
    margin: 10px;
    float: left;
}

form.image-edit-details-form {
    float: left;
    margin-top: 35px;
}

.collection-image-edit-item {
    width: 100%;
    border: solid 2px var(--accent-color);
    border-radius: 5px;
    margin: 10px;
    position: relative;
    clear: both;
    height: 100px;
}

.collection-image-edit-outer {
    display: inline-block;
    width: 200px;
    float: left;
}

.collection-image-edit-button-row {
    float: right;
    display: inline-block;
    margin-top: 40px;
}

.moving-mode {
    cursor: grabbing;
}

.moving {
    border: 2px solid var(--error-color);
}

.move-top {
    position: relative;
}

.move-top .move-here {
    bottom: -0;
}

.move-here {
    height: 20px;
    background: #27b05641;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -18px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 20px;
}

.move-here:hover {
    background: #ff741068;
    cursor: pointer;
}

/** Message Box **/

.message-box {
    width: 650px;
    margin-top: 50px;
    float: right;
}

.success-box {
    color: var(--light-color);
    border: 1px solid #5f695b;
    background-color: #1c3d1c;
    padding: 10px;
    border-radius: 5px;
}

.error-box {
    background-color: #f2dede;
    border: 1px solid #ebcccc;
    color: var(--error-color);
    padding: 10px;
}

button.active {
    color: var(--main-color);
}

a {
    color: var(--main-color);
    text-decoration: none;
}

/* Modal box */
.collection-images-view>.collection-image-view-item {
    padding: 0 8px;
}

.collection-images-view:after {
    content: "";
    display: table;
    clear: both;
}

/* Create four equal columns that floats next to eachother */
.collection-image-view-item {
    float: left;
    width: 25%;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 10%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000000db;
}

/* Modal Content */
.modal-content {
    position: relative;
    background: transparent;
    margin: auto;
    max-width: 50vw;
    max-height: 80vh;
}

/* The Close Button */
.close {
    color: white;
    position: absolute;
    top: 4%;
    right: 23%;
    font-size: 119px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
    display: none;
}

/* Position and size of image */
.mySlides img {
    max-height: 50vh;
    width: auto !important;
    text-align: center;
    display: block;
    margin: auto !important;
}


/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    background: #00000054;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
    text-decoration: none;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: -45px;
    left: 50%;
}

/* Slider */

main.home-slider {
    padding: 0px;
}

.slick-slider {
    max-height: 79vh;
    margin-bottom: 30px;
}

.slick-slide img {
    max-width: 100vw;
    max-height: 92vh;
    margin: auto;
}

.slider.slider-nav {
    max-width: 600px;
    margin: auto;
}

.thumbnail {
    margin: 10px;
    width: 100px !important;
    position: relative;
    text-align: center;
    background-size: cover;
    height: 100px !important;
    cursor: pointer;
}

.slick-slide {
    width: auto;
}

.slick-prev {
    left: 25px !important;
}

.slick-next {
    right: 25px !important;
}

.slick-next:before,
.slick-prev:before {
    font-size: 32px !important;
    color: var(--main-color) !important;
}