:root{
    --background-color: #4a4a4bee;
    --accent-color: #599b1639;
    --text-color: #FFFFFF;
    --navbar-height: 70px;
}

*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    font-family: Tahoma,Arial,sans-serif;
    color: var(--text-color);
    box-sizing: border-box;
    text-decoration: none;
}

html{
    height: 100%;
}

.first_page{
    height: 100%;
    background-image: url(film_60_031.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.notice_page{
    height: 100%;
    background-color: #8f8f8fee;
    position: relative;
}

.pic_page{
    height: 100%;
    background-color: black;
}

.about_page{
    height: 100%;
    background-image: url(about/background_sep_gr.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.main{
    height: 100%;
    width: 100%;
    position: relative;
}

#page-container {
    position: relative;
    min-height: 100vh;
}

#content-wrap {
    padding-bottom: 2.5rem;
}

.series_wrap{
    align-items:flex-start;
    display: flex;
    flex-wrap: wrap;
}

.series_column1{
    width: 40%;
    padding: 3% 3% 2% 10%;
    position: relative;
}

.series_column2{
    width: 60%;
    padding: 6% 10% 2% 2%;
}

#pic-link{
    object-fit: cover;
    width: 13vh;
    height: 13vh;
    border: .1rem solid #ffebfe;
    float: right;
}

.description{
    background-color: var(--background-color);
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.title-description{
    font-size: 1.2em;
    text-align: center;
    margin: 0.3em;
    padding-top:0.8em;
    color: #fdcffc;
}

.text-description{
    font-size: 0.9em;
    padding-top: 10px;
    text-align: center;
    margin: 0.2em;
    color: #fdcffc;
}

.gallery{
    position: relative;
    height: auto;
    width: 80%;
    margin: auto;
    padding: 25px 0;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-auto-flow: dense;
    grid-gap: 0.7vmin;
}

.gallery .dach_img{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.gallery .chem_img{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.gallery .chem_img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gallery .dach_img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gallery .chem_img:first-child{
    grid-column-start: span 3;
}
.gallery .chem_img:nth-child(2){
    grid-row-start: span 2;
}
.gallery .chem_img:nth-child(3){
    grid-row-start: span 1;
    grid-column-start: span 1;
}
.gallery .chem_img:nth-child(4){
    grid-row-start: span 1;
    grid-column-start: span 2;
}
.gallery .chem_img:nth-child(5){
    grid-row-start: span 2;
    grid-column-start: span 2;
}
.gallery .chem_img:nth-child(6){
    grid-row-start: span 1;
    grid-column-start: span 2;
}
.gallery .chem_img:nth-child(7){
    grid-column-start: span 1;
    grid-row-start: span 1;
}
.gallery .chem_img:nth-child(8){
    grid-row-start: span 1;
    grid-column-start: span 2;
}
.gallery .chem_img:nth-child(9){
    grid-row-start: span 3;
    grid-column-start: span 1;
}
.gallery .chem_img:nth-child(10){
    grid-column-start: span 2;
}
.gallery .chem_img:nth-child(11){
    grid-column-start: span 1;
}
.gallery .chem_img:nth-child(12){
    grid-column-start: span 3;
}

.gallery .dach_img:first-child{
    grid-column-start: span 3;
}
.gallery .dach_img:nth-child(2){
    grid-row: span 2;
}
.gallery .dach_img:nth-child(3){
    grid-column: span 2;
}
.gallery .dach_img:nth-child(5){
    grid-column-end: span 3;
}
.gallery .dach_img:nth-child(6){
    grid-row-start: span 2;
}
.gallery .dach_img:nth-child(7){
    grid-row: span 1;
}
.gallery .dach_img:nth-child(8){
    grid-column: span 1;
}
.gallery .dach_img:nth-child(9){
    grid-column-end: span 2;
    grid-row-end: span 1;
}

img.logo{
    position: relative;
    margin-left: 20px;
    padding-top: 8px;
    max-width: 230px;
}

#random_h2{
    position: relative;
    font-size: 1.2em;
    height: auto;
    width: 100%;
    margin: 5% 0 2% 0;
    text-align: center;
    font-weight: lighter;
    z-index: -1;
    color: #fdcffc;
}

.main .all-text{
    position: relative;
    font-size: 0.9em;
    text-align: center;
    height: auto;
    width: 60%;
    margin: auto;
    padding: 10px;
    z-index: -1;
    color: #fdcffc;
}

.main .random_gallery{
    position: relative;
    height: auto;
    width: 75%;
    margin: auto;
    padding: 25px 0;
    display: grid;
    grid-template-columns: auto auto;
    grid-auto-flow: dense;
    grid-gap: 15vmin;
}

.main .random_gallery .random_img{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.main .random_gallery .random_img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.main .random_gallery .caption{
    background:rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    padding-bottom: 5px;
    padding-left: 10px;
    position: absolute;
    display: flex;
    justify-content:flex-end;
    align-items:flex-start;
    flex-direction: column;
    opacity: 0;
    transition: 0.7s;
}

.main .random_gallery .caption .cap-hover{
    font-size: 0.95em;
    color: #fdcffc;
}
.main .random_gallery .caption .cap-nohover{
    font-size: 0.95em;
    color: #fdcffc;
}

.main .random_gallery .caption:hover{
    opacity: 0.8;
}

.main .gallery .p1_img{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.main .gallery .p2_img{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.main .gallery .p3_img{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.main .gallery .p4_img{
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.main .gallery .p1_img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.main .gallery .p1_img:first-child{
    grid-row-start: span 3;
}
.main .gallery .p1_img:nth-child(2n+3){
    grid-row-start: span 2;
}
.main .gallery .p1_img:nth-child(3n+4){
    grid-column-start: span 2;
}

.main .gallery .p2_img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.main .gallery .p2_img:first-child{
    grid-row-start: span 3;
}
.main .gallery .p2_img:nth-child(2n+3){
    grid-row-start: span 2;
}
.main .gallery .p2_img:nth-child(3n+4){
    grid-column-start: span 2;
}

.main .gallery .p3_img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.main .gallery .p3_img:first-child{
    grid-row-start: span 3;
}
.main .gallery .p3_img:nth-child(2n+3){
    grid-row-start: span 2;
}
.main .gallery .p3_img:nth-child(3n+4){
    grid-column-start: span 2;
}

.main .gallery .p4_img img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.main .gallery .p4_img:first-child{
    grid-row-start: span 3;
}
.main .gallery .p4_img:nth-child(2n+3){
    grid-row-start: span 2;
}
.main .gallery .p4_img:nth-child(3n+4){
    grid-column-start: span 2;
}

.leave_wrap{
    align-items:flex-start;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    padding: 2%;
}

.leave_column1{
    width: 60%;
    padding: 2%;
}

.leave_column2{
    width: 40%;
    padding: 2%;
}

#top-pic{
max-width: 90%;
max-height: 85vh;
border: .2rem solid #ffebfe;
}

.thumbnail{
    max-width: 80%;
    max-height: 90px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    margin: 5px;
    border: .1rem solid #ffebfe;
}

.thumbnail:hover{
    opacity: 1;
}

.active{
    opacity: 1;
}

#slide-wrapper{
max-width: 100%;
display: flex;
min-height: 50px;
align-items: center;
}

#slide{
max-width: 100%;
display: flex;
flex-wrap: nowrap;
overflow-x: hidden;
padding: 10%;
}

.arrow{
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    transition: .4s;
}

.arrow:hover{
    opacity: .6;
    width: 1.5rem;
    height: 1.5rem;
}

nav{
    height: var(--navbar-height);
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul{
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    z-index: 1;
}

nav li{
    height: 100%;
    width: 120px;
    text-align: center;
    position: relative;
}

nav li:hover{
    background: var(--accent-color);
}

nav ul a{
    height: 100%;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-decoration: none;
}

nav input[type="checkbox"]{
    display: none;
}

.toggle_button{
    width: 20px;
    height: 20px;

    position: absolute;
    top: 23px;
    right: 25px;

    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.bar{
    height: 1px;
    width: 100%;
    background: var(--text-color);
    border-radius: 100px;
}

.container{
    padding: 50px 340px 10px 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content:left;
    align-items:start;
    z-index: -1;
}
.container h3{
    margin-top: 1.5em;
}
.container p{
    margin-top: 0.6em;
}
.container a{
    color: #ffebfe;
}
.container a:hover{
    color: #fdcffc;
}

footer{
    text-align: center;
    padding: 10px;
    background-color: var(--background-color);
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 0.8em;
    height: 2.5rem;
}
footer a{
    color: #ffebfe;
}
footer a:hover{
    color: #fdcffc;
}

@media (hover: none){
    .toggle_button{
        display: flex;
    }

    nav ul{
        height: min-content;
        width: 100%;
        background-color: #79797aee;

        display: none;
        position: absolute;
        top: var(--navbar-height);
        z-index: 1;

    }
    nav li{
        height: min-content;
        width: 100%;
    }

    nav ul a{
        padding: 30px 0;
    }

    #toggle_button:checked ~ ul{
        display: block;
    }

    .main .random_gallery .caption{
        background:rgba(0,0,0,0.6);
        width: 100%;
        height: 25px;
        bottom: 0;
        left: 0;
        padding-bottom: 6px;
        padding-left: 10px;
        position: absolute;
        display: flex;
        justify-content:flex-end;
        align-items:flex-start;
        flex-direction: column;
        opacity: 0.7;
    }

    .main .random_gallery .caption .cap-hover{
        display: none;
    }
    .main .random_gallery .caption .cap-nohover{
        bottom: 2px;
        font-size: 0.8em;
    }
}

@media(max-width: 850px){
    .toggle_button{
        display: flex;
    }

    nav ul{
        height: min-content;
        width: 100%;
        background-color: var(--background-color);

        display: none;
        position: absolute;
        top: var(--navbar-height);

    }
    nav li{
        height: min-content;
        width: 100%;
    }

    nav ul a{
        padding: 30px 0;
    }

    #toggle_button:checked ~ ul{
        display: block;
    }

    .main .random_gallery{
        display: grid;
        grid-template-columns: auto auto;
    }

    .main .gallery{
        display: grid;
        grid-template-columns: auto auto;
    }

    .gallery .chem_img:nth-child(12){
        grid-column-start: span 2;
        grid-row-start: span 1;
    }

    .gallery .dach_img:nth-child(6){
        grid-row: span 2;
    }
    .gallery .dach_img:nth-child(7){
        grid-column-start: span 2;
    }
    .gallery .dach_img:nth-child(4){
        grid-row-start: span 2;
    }
    .gallery .dach_img:nth-child(4){
        grid-column-start: 0span 1;
    }
    .gallery .dach_img:nth-child(9){
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .container{
    padding: 50px 30% 20px 70px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content:left;
    align-items:start;
    }
}

@media(max-width: 550px){
    #random_h2{
        font-size: 1.2em;
        width: 70%;
    }
    .main .random_gallery{
        display: block;
    }

    .main .random_gallery .random_img img{
        display: block;
        width: 100%;
        max-height: 500px;
        margin-block-end: 10px;
    }
    .main .random_gallery .caption{
        padding-bottom: 8px;
        padding-left: 10px;
    }
}

@media(max-width: 450px){
    .main .title-description{
        font-size: 1.2em;
        width: 80%;
    }
    .main .gallery{
        display: block;
}
    .main .gallery img{
        display: block;
        width: 100%;
        height: 350px;
        margin: 4px;
    }
    
    .container{
    padding: 50px 20% 20px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content:left;
    align-items:start;
    }
}

@media(max-width: 340px){
    img.logo{
    position:relative;
    margin-left: 20px;
    padding-top: 8px;
    max-width: 175px;
    }
}
