*{
    margin: 0;
    padding: 0;
    --margin: 0px;
    font-family: owners-wide, sans-serif;
    font-weight: 400;
    font-style: normal;
    --white: #f2f4f3;
}

@font-face {
    font-family: horizon;
    src: url(/assets/fonts/horizon.otf);
}

.container{
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: var(--margin);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    transition: height 100ms ease;
}

.video-bg{
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.main-title{
    font-family: 'League Gothic', sans-serif;
    font-size: 5rem;
    color: var(--white);
    text-align: center;
    animation: title-appear 750ms 750ms normal ease-out forwards;
    opacity: 0;
    text-shadow: 0px 0px 10px rgba(0,0,0,0.4);
}

.main-subtitle{
    font-family: horizon;
    text-align: center;
    font-size: 0.75rem;
    color: var(--white);
    animation: title-appear 750ms 1500ms normal ease-out forwards;
    opacity: 0;
    text-shadow: 0px 0px 10px rgba(0,0,0,0.4);
}

#newsletter-form{
    z-index: 10;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    animation: title-appear 750ms 2250ms normal ease-out forwards;
}

#newsletter-form input{
    background: var(--white);
    border: var(--white) 3px solid;
    padding: 6px 12px;
    outline: none;
    transition: border 150ms ease-out, padding 150ms ease-out, transform 300ms ease-out;
    border-radius: 0;
}

#newsletter-form input:hover, #newsletter-form input:focus{
    border: black 3px solid;
}

#newsletter-form input:focus{
    transform: scale(1.1);
}

#newsletter-form input[disabled]:focus, #newsletter-form input[disabled]:hover{
    border: #00d26a 3px solid;
    transform: scale(1);
    cursor: not-allowed;
}


/* FIRST SUBMIT BUTTON DESIGN
.form-submit{
    background: var(--white);
    color: black;
    border: var(--white) 2px solid;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 300ms ease-out, color 300ms ease-out, transform 300ms ease-out;
    outline: none;
}

.form-submit:hover, .form-submit:focus-visible{
    background: black;
    color: var(--white);
    cursor: pointer;
    transform: scale(1.1);
}
*/

.form-submit{
    background: transparent;
    color: var(--white);
    border: var(--white) 3px solid;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 300ms ease-out, color 300ms ease-out, transform 300ms ease-out;
    outline: none;
}

.form-submit:hover, .form-submit:focus-visible{
    background: var(--white);
    color: black;
    cursor: pointer;
    transform: scale(0.95);
}

.form-valid{
    background-color: greenyellow;
}

#success-message{
    display: none;
}
#success-message[data-state="visible"]{
    display: block;
    color: var(--white);
    text-shadow: 0px 0px 10px rgba(0,0,0,0.4);
    text-align: center;
}

#clear-email{
    display: none;
}
#clear-email[data-state="visible"]{
    display: block;
    color: var(--white);
    text-shadow: 0px 0px 10px rgba(0,0,0,0.4);
    text-decoration: underline;
    font-size: 0.5rem;
    cursor: pointer;
}

@keyframes title-appear {
    from{
        opacity: 0;
        transform: translate(0px, 30px);
    }
    to{
        opacity: 1;
        transform: translate(0, 0);
    }
}
