/* ————————————— general class ————————————— */

* {
    box-sizing: border-box;
    font-family: 'Onest', sans-serif;
}

canvas {
    touch-action: none;
    display: block;

}

::selection {
    background: black;
    color: #FC709C;
}

a {
    color: black;
}

a:hover {
    color: white;
}

h1 {
    font-size: 3em;
}

p {
    font-size: 1.5em;
}

body {
    margin: 0;
    padding: 0;
    background-color: #FC709C;
    color: black;
}

header {
    position: absolute;
    padding: 20px 0 0 20px;
}

main {
    position: absolute;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;


    height: 100%;
    margin: auto auto 0 20vw; 

}   

/* ————————————— castom class ————————————— */

.logo {
    width: 10vw;
    color: black;
}

.background {
    display: block;
    position: absolute;

    width: 80vw;
    margin: 40px 0 0 180px;
    color: black;
    z-index: -1;
}   

.background-mobile {
    display: none;
    position: absolute;

    width: 90vw;
    margin: 100px 0 0 40px;
    color: black;
    z-index: -1;
}

/* ——————— line animation (mobile) ——————— */

#background-mobile-line {
    animation: draw 6s linear forwards infinite;
    stroke-dasharray: 10000;
    stroke-dashoffset: 10000;
}

@keyframes draw {
    100% {
        stroke-dashoffset: 10000;
    }

    99% {
        stroke-dashoffset: 0;
    }

    90% {
        stroke-dashoffset: 0;
    }

    0% {
        stroke-dashoffset: 10000;
    }
}

/* ————————————— email-form ————————————— */

.email-form {
    background-color: #FC709C;
    border: 2px solid;

    display: flex;
    flex-direction: column;
    margin: 0 0 7vw 0;

    width: 350px;
    gap: 10px;  
    padding: 20px;
    
    z-index: 1
}

.email-form button {
    border: none;
    width: 100%;
    padding: 10px 20px; 
    border-radius: 100px;
    text-wrap: nowrap;


    font-size: 1em; 
    background-color: transparent;
    border: 2px solid black;

}

.email-form button:hover {
    border: none;
    background-color:black;

    color: white;
    border: 2px solid transparent;
}

.email-form label {
    font-weight: 100;
}

.email-form label[for="input"]{
    font-size: 1.25em;
}


input[type="email"] {
    color: white;
    

    font-size: 1.2em;
    background-color: transparent;

    
    border: none;
    border-bottom: 2px solid black;    
    border-radius: 0px;

    padding: 3px;
    display: flex;
    width: 100%;
    margin: 6px 0 0 0; 
}

input[type="email"]::placeholder {
    color: #5b5b5b;
}

input[type="email"]:focus-visible {
    outline: none;
}


/* ———–––––————–––––——— id —————–––––––———————— */

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ————————————— adaptive version ————————————— */

@media (max-width: 900px) {

    main {
        margin: 0; 
        width: 100%;
        height: 122vh;
    }

    header {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        padding: 20px 20px 0 0;
    }

    .logo {
        width: 25vw;
    }
    
    .email-form {
        width: auto;
        margin: 0 15px 15px 15px; 
    }   

    .email-form label[for="input"]{
        font-size: 1.2em;
    }   

    input[type="email"] {
        border: none;
        border-bottom: 2px solid black;
        font-size: 1.2em;
    }

    .consent {
        font-size: 1em; 
    }

    .background { 
       display: none; 
    }

    .background-mobile { 
       display: block; 
    }

    canvas {
        display: none;
    }
}

@media (min-width: 1500px) {
    .background {
        width: 60vw;
        margin: 60px 0 0 250px;

    }   
}

@media (min-width: 500px) and (max-width: 900px) {
    .email-form {
        width: 350px;
        margin: 0 auto 15px auto; 
    }

    main {
        height: 128vh;
    }
    
}





/* ————————————— archive ————————————— */

