* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-image: url("https://i.imgur.com/2yruqym.gif");
    background-position: center;
    background-size: cover;
    color: #fff;
    --text-color: #fff;
    --dark-color: #282828;
    scroll-behavior: smooth;
}

body, div, ul, nav, header, footer, a, li, label, h1, h2, h3, h4, p{
    margin: 0;
    padding: 0;
}

@font-face{
    font-family: title;
    src: url("Fonts/AcneDemo-Regular.ttf");
}

@font-face{
    font-family: about;
    src: url("Fonts/AdiCupQ2022.ttf");
}

/*--------HEADER SECTION--------*/
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    container-type: inline-size;
    container-name: header;
    padding: 11px 0;
    position: fixed;
    top: 0; 
    width: 100%; 
    z-index: 10;
    background-color: var(--dark-color);
}

.header__logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.header__open-nav-button {
    color: var(--text-color);
    font-size: 3rem;
    font-weight: 600;
    padding: 0;
    max-width: 100%;
    width: 100%;
    text-align: right;
    padding: 0 25px;
    right: 10px;
}

.header__checkbox{
    display: none;
}

.header__nav {
    display: none;
    background-color: var(--dark-color);
    padding: 0 10px;
    position: absolute;
    height: 100dvh;
    width: 70dvw;
    top: 0;
    z-index: 2;
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    height: 50dvh;
    margin: auto 5%;
    justify-content: space-evenly;
}

.header__checkbox:checked ~ .header__nav {
    display: flex;
    animation-name: nav-siding;
    animation-duration: .2s;
}

.header__logo {
    max-width: 100%;
    width: 100px;
}

.header__slogan {
    max-width: 100%;
    width: 100%;
    font-size: 10px;
    right: 10px;
    text-align: left;
    padding: 0 25px;
    mix-blend-mode: difference;
}

.header__nav-item {
    font-size: 20px;
    list-style: none;
    text-align: left;
    cursor: pointer;
}

.header__nav-item a {
    color: #fff;
    text-decoration: none;
}

.header__nav-item :is(:hover,:active) {
    text-decoration: underline;
}

.header__checkbox-l{
    display: none;
}

.header__nav-list-ul {
    display: none;
    height: 100dvh;
    width: 60dvw;
    position: absolute;
    margin: auto;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: #282828;
    top: 0;
}

.header__checkbox-l:checked ~ .header__nav-list-ul {
    display: flex;
}

.header__nav-item-B {
    list-style: none;
    position: absolute;
    margin-top: -40px;
    font-size: 30px;
}

.header__nav-item-l2{
    list-style: none;
}

.header__nav-item-l2 a{
    text-decoration: none;
    color: #fff;
}

.header__nav-item-l2 a:hover {
    text-decoration: underline;
}

@keyframes nav-siding {
    from{
        left: -100%;
    }

    to{
        left: 0;
    }
}

@container header (min-width: 1012px) {
    .header__nav {
        display: flex;
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        z-index: 1;
        mix-blend-mode: difference;
    }
    
    .header__nav-list {
        flex-direction: row;
        padding: 0 45px;
        height: auto;
        width: auto;
        gap: 25px;
        z-index: 1;
    }
    
    .header__logo{
        height: auto;
        width: 200px;
    }    
    
    .header__open-nav-button{
        display: none;
        width: auto;
    }

    .header__nav-item {
        flex: 1;
        text-align: center;
        min-width: 120px;
        max-width: 150px;
        white-space: nowrap;
        padding-bottom: 7px;
    }
    
    .header__nav-item a {
        font-size: 16px;
    }
    
    .header__slogan {
        font-size: 16px;
        padding: 0 45px;
        height: auto;
        width: auto;
        z-index: 1;
    } 

    .header__slogan P {
        padding-right: 245PX;
        text-align: center;
    }

    .header__nav-list-ul {
        display: none;
        height: 70dvh;
        width: 15dvw;
        position: absolute;
        margin: auto;
        flex-direction: column;
        justify-content: space-evenly;
        background-color: #282828;
        margin: 84px;
        text-align: center;
    }

    .header__nav-item-B {
        display: none;
    }

    .header__nav-item-l2 {
        margin-bottom: 18%;
    }
}  
/*--------HEADER SECTION END--------*/


/*--------COVER--------*/
.cover{
    height: 100dvh;
    display: flex;
    justify-content: center;
    margin: 5% 0;
    mix-blend-mode: difference;
    container-type: inline-size;
    container-name: cover-img;
}

.text-container {
    min-height: 110vh;
    position: fixed;
    color: var(--text-color);
    margin: 0;
    top: 0;
    display: flex;
    font-size: clamp(5rem, 15vw,18rem);
    mix-blend-mode: difference;
    font-weight: 700;
    justify-content: space-between;
    width: 125%;
    align-items: center;
    padding: 3vw;
    animation: text-showingup both;
    animation-timeline: scroll();
    animation-range-start: 20%;
}

.left-text {
    padding-left: 3vw;
    font-family: title;
}

.right-text {
    font-family: title;
}

.cover img{
    filter: grayscale();
    mix-blend-mode: difference;
    position: fixed;
    display: flex;
    justify-content: center;
    margin: 10px 0;
    max-height: 101vh;
    animation: showup both;
    animation-timeline: scroll();
}

@keyframes showup{
    0%{
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }

    45%{
        opacity: 0;
        translate: 0 -20%;
        scale:.8;
    }

    100%{
        opacity: 0;
        translate: 0 -20%;
        scale:.8;
    }
}

@keyframes text-showingup{
    0%{
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }

    45%{
        opacity: 0;
        translate: 0 -20%;
        scale:1.2;
    }

    100%{
        opacity: 0;
        translate: 0 -20%;
        scale:1.2;
    }
}

@container cover-img (min-width: 539px){
    .cover img{
        height: 100dvh;
        display: flex;
        justify-content: center;
        margin: -3% 0;
    }

    .text-container {
        width: 90%;
    }
}

@media screen and (max-width: 460px){
    .text-container{
        margin: 50px;
        justify-content: space-around;
    }

    .right-text {
        padding-left: 30px;
    }
}
/*--------COVER END--------*/


/*--------ABOUT--------*/
.about {
    container-type: inline-size;
    container-name: about;
    position: relative;
    mix-blend-mode: difference;
}

.about__container {
    width: 75%;
    margin: 35% auto;
    height: auto;
    border-radius: 7px;
    padding: 30px 7%;
    font-size: 15px;
}

.about__container h1 {
    font-family: about;
    font-size: 50px;
}

.social-menu {
    min-width: auto;
    display: flex;
    justify-content: space-around;
    position: relative;
    margin-top: 25px;
}

.social-menu a {
    text-decoration: none;
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #f1f1f1;
    transition: all .1s ease-in-out;
}

.social-menu a:hover {
    transform: scale(1.2);
}

.sign_{
    width: 50%;
    height: 50%;
    margin: auto;
}

@container about (min-width: 912px){
    .about__container{
        height: auto;
        margin: 2% auto;
        font-size: 35px;
    }

    .social-menu {
        margin-top: 45px;
    }

    .social-menu a {
        font-size: 30px;
        width: 80px;
        height: 80px;
        line-height: 80px;
    }
}
/*--------ABOUT END--------*/






/*--------COMPATIBILITY MOZILLA AND SAFARI--------*/
@supports (-moz-appearance: none) {

    /*--------COVER--------*/
    .cover {
        position: relative;
        height: 110dvh;
        display: flex;
        justify-content: center;
        mix-blend-mode: difference;
        margin: 2% auto;
        align-items: center;
        overflow: hidden;
        z-index: 1;
    }

    .text-container {
        position: relative;
        width: 96%;
        display: flex;
        justify-content: space-between;
        z-index: 2;
        animation: none;
    }

    .cover img {
        position: absolute;
        display: flex;
        justify-content: center;
        max-height: 110vh;
        top: 0;
        height: 100%;
        z-index: 1;
        animation: none; 
        margin: 0;
    }
    /*--------COVER END--------*/

    /*--------ABOUT END--------*/
    .about {
        position: relative;
        margin-top: 0; 
        padding-top: 8rem; 
        padding-bottom: 8rem; 
    }

    .about__container {
        padding: 3rem;
        border-radius: 10px;
        margin: 2rem auto;
        max-width: 80%;
        color: white;
    }
    /*--------ABOUT END--------*/
}