@font-face {
    font-family: 'GravitasRegular';
    font-style: normal;
    font-weight: normal;
    src: local('GravitasRegular'), url('../fonts/GravitasRegular.otf') format('opentype');
}

@font-face {
    font-family: 'GravitasMedium';
    font-style: normal;
    font-weight: normal;
    src: local('GravitasMedium'), url('../fonts/GravitasMedium.otf') format('opentype');
}


* {
    box-sizing: border-box;
    font-family: 'GravitasRegular';
}

html {
    font-size: 16px;
    color: white;
}

body {
    background-color: black;
    height: 100vh;
    width: 100vw;
    margin: 0;
    overflow-y: hidden;
    position: relative;
}

video{
  width: 100% !important;
  height: 100vh !important;
  object-fit: cover;
}

.welcome-vid{
    position: absolute;
    top: 46%;
    left: 0;
    z-index: 5000;
    width: 100%;
    text-align: center;
    font-size: 1.5em;
}

body:has(#container.animated){
    overflow-y: auto;
}

.container {
    padding: 1rem 10%;
}

#container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -25%);
    max-width: 70vw;
    width: 550px;
}

#congrat {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    -webkit-appearance:none;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#container.animated {
    transform: translate(-50%, -60%);
    transition: 1s ease-in-out;
}

#animation {
    width: 100%;
    max-height: 35vw;
    margin:auto;
}

#content {
    opacity: 0;
    position: relative;
    z-index: 5;
}

#container.animated #content {
    padding-top: 2em;
    opacity: 1;
    transition: 1s ease-in-out;
}

#title {
    text-align: center;
    font-size: 1rem;
}

#input-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

#input-container input {
    padding: 1rem 1.5rem;
    background-color: #141414;
    outline: none;
    color: white;
    border: none;
    box-shadow: inset 0 0 0 2px white, 0 0 10px white;
    border-radius: 25px;
    -webkit-appearance:none;
    /* font-size: 1.3rem; */
}

/*#input-container input:focus {
    box-shadow: inset 0 0 0 2px white;
}*/

#input-container input:-webkit-autofill,
#input-container input:-webkit-autofill:hover,
#input-container input:-webkit-autofill:focus,
#input-container input:-webkit-autofill:active,
#input-container input:-internal-autofill-selected {
    -webkit-transaition: all 5000s;
    transition: all 5000s ease-in-out 0s !important
}

#checkgroup {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#checkgroup-label {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#checkgroup-label small {
    opacity: .8;
    font-size: .6rem;
}

#checkgroup-label::before {
    content: '';
    border: 2px solid white;
    background-color: transparent;
    padding: 6px;
    position: relative;
    margin-right: 10px;
    vertical-align: middle;
}

#checkgroup:has(#agree-checkbox:checked) #checkgroup-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    width: 6px;
    height: 14px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-120%);
}

#form-submit, #btn-ok {
    padding: 1rem 1rem;
    background-color: white;
    outline: none;
    border: none;
    width: 100%;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    color:black;
    transition: 0.3s;
}

#form-submit:hover, #btn-ok:hover {
    background-color: #141414;
    outline: none;
    color: white;
    border: none;
    box-shadow: inset 0 0 0 2px white, 0 0 10px white;
    -webkit-appearance:none;
    transition: 0.3s;
}

#form-submit.loading::after {
     content: "";
     position: absolute;
     width: 16px;
     height: 16px;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     margin: auto;
     border: 4px solid transparent;
     border-top-color: black;
     border-radius: 50%;
     animation: button-loading-spinner 1s ease infinite;
 }

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
}

#container.animated ~ #footer {
    opacity: 1;
    transition: 1s ease-in-out;
    transition-delay: 1.5s;
}

#footer a {
    text-decoration: none;
    color: #767676;
    text-align: center;
    transition: 0.3s;
}

#footer a:hover{
    color:white;
    transition: 0.3s;
    scale: 1.1;
}

@media (min-width: 768px){
    .welcome-vid{
        font-size: 2em;
        top: 44%;
    }
    #animation {
        max-height: 32vw;
    }

    #container {
        transform: translate(-50%, -35%);
    }

    #title {
        font-size: 2rem;
    }

    #checkgroup-label small {
        font-size: 1rem;
    }
}

@media (min-width: 1000px){
    #animation {
        max-height: 28vw;
    }
}

@media (min-width: 1024px){
    #animation {
        max-height: 25vw;
    }
}

@media (min-width: 1150px){
    #animation {
        max-height: 23vw;
    }
}
@media (min-width: 1280px){
    #container {
        transform: translate(-50%, -35%);
    }

    #animation {
        max-height: 20vw;
    }
}

@media (min-width: 1536px){
    #animation {
        max-height: 14vw;
    }
}

@media (min-width: 1920px){
    #animation {
        max-height: 14vw;
    }

    #container {
        transform: translate(-50%, -35%);
    }
}

@media (min-width: 2560px){
    #animation {
        max-height: 10vw;
    }

    #container {
        transform: translate(-50%, -35%);
    }
}

@media (min-width: 3840px){
    #animation {
        max-height: 7vw;
    }

    #container {
        transform: translate(-50%, -40%);
    }
}
