/*MABRY*/

@font-face {
    font-family: "Mabry";
    src: url("fonts/Mabry-Black.woff"),
        url("fonts/Mabry-Black.woff2");
}

:root {
    --header-height: 17vh;
}

/* Base Styles */
*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
}

/* Global Styles */
html,
body {
    max-height: 100vh;
    margin: 0;
    padding: 0;
    cursor: none;
    font-family: Mabry;
    color: white;
    text-align: center;
    letter-spacing: -1px;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

html {
    background: url("images/water_optimized.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    animation: mackerel 0.75s infinite;
}

h1 {
    font-size: min(clamp(1rem, 8vw, 5rem),
            clamp(1rem, 8vh, 5rem));
}

header {
    width: 100%;
    padding-top: 3vh;
    padding-bottom: 3vh;
    padding-left: 1.5vh;
    padding-right: 1.5vh;
    height: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;

    .line-mobile {
        display: none;

        @media (max-width: 500px) {
            display: block;
        }
    }

    .line-desktop {
        display: block;

        @media (max-width: 500px) {
            display: none;
        }
    }
}

main {
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    /* padding-bottom: 10vh; */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 2vh;
    /* overflow: hidden; */

    @media (max-width: 768px) {
        justify-content: flex-start;
        gap: 5vh;
        overflow: hidden;
    }

    h2 {
        font-size: min(clamp(1rem, 8vw, 4rem),
                clamp(1rem, 8vh, 4rem));
    }

    .info-container {
        display: flex;
        font-size: min(clamp(1.3rem, 5vw, 3rem),
                clamp(1.3rem, 5vh, 3rem));
        line-height: 1;
        gap: 5vw;

        @media (max-width: 768px) {
            flex-direction: column;
            gap: 7vw;
        }

        span {
            flex-basis: 0;
            flex-grow: 1;
        }

    }
}

/* Layout Wrappers */
.signup-wrapper {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.signup-wrapper {
    padding: 3.5vh 4vh;
    padding-bottom: 10vh
}

/* Buttons */
.enter-button,
.exit-button {
    text-decoration: none;
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
    transition: all 0.23s ease-in-out 0s;
}

.enter-button:hover,
.exit-button:hover,
.button:hover,
a:hover {
    cursor: pointer;
    filter: drop-shadow(0 0 .1rem white);
}

.enter-button {
    text-decoration: underline;
    padding: 0;
}

.exit-button {
    /* font-size: 3vh; */
    position: absolute;
    top: 0;
    right: 0;
    padding: 3.5vh 4vh;
}

/* Small Text Styling */


/* Fish Cursor */
.fish {
    position: fixed;
    top: -15vh;
    left: -15vh;
    width: 15vw;
    height: auto;
    pointer-events: none;
}

.fish img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Canvas */
#canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Links */
a,
.link {
    color: white;
    text-decoration: underline;
    transition: all 0.23s ease-in-out 0s;
}

/* Animations */
@keyframes mackerel {

    0%,
    100% {
        backdrop-filter: brightness(100%);
    }

    50% {
        backdrop-filter: brightness(96%);
    }
}

/* Form Styling */
form {
    color: white;
    display: block;
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
}

input {
    color: white;
    border: 1vh solid white;
    border-radius: 1.5vh;
    text-align: center;
    background-color: transparent;
    font-family: inherit;
    font-size: inherit;
    display: block;
    margin: .5vh;
}

input:focus {
    box-shadow: none !important;
    filter: drop-shadow(0 0 .1rem white);
    outline-offset: 0px !important;
    outline: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: white !important;
}

/* Placeholders */
::placeholder,
:-ms-input-placeholder,
::-ms-input-placeholder {
    color: white;
    opacity: .5;
}

/* Subscribe Button */
.button {
    cursor: pointer;
    color: white;
    border: none;
    text-decoration: underline;
    display: inline-block;
    text-align: center;
    width: auto;
    padding: .5vh 1.5vh;
    transition: all 0.23s ease-in-out 0s;
    font-family: Mabry;
    font-size: 6.5vh;
    background: transparent;
}

/* Form Error States */
.error {
    align-self: center;
    border: 1vh solid red;
    filter: drop-shadow(0 0 .15rem red);
    color: red;
}

.error:focus {
    border: 1vh solid red;
    color: white;
    filter: drop-shadow(0 0 .1rem red);
}

.error::placeholder {
    color: red;
    opacity: .3;
}

.error-message {
    color: red;
    padding-top: .5vh;
    font-style: italic;
    font-size: 4vh;
    line-height: 4vh;
}

.success-message {
    color: white;
    padding: .5vh;
    font-style: italic;
    font-size: 4vh;
    line-height: 4vh;
}

/* Mobile Styles */
@media only screen and (max-width: 500px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .signup-wrapper {
        width: 100vw;
        height: 100vh;
        padding: 3vh;
        font-size: 4vh;
        line-height: 4vh;
        overflow: hidden;
    }


    .flex-item-2 {
        width: 100%;
    }

    .flex-item-3 {
        font-size: 4vh;
        line-height: 4.25vh;
    }

    .small-text-container {
        display: block;
        padding: 0;
    }

    .line-break-mobile {
        display: block;
    }

    .line-break-desktop {
        display: none;
    }

    .exit-button {
        padding: 3vh;
    }

    form {
        padding: 1vh;
        width: inherit;
        font-size: 3vh;
    }

    .entry__field {
        border-width: .5vh;
        text-align: center;
    }

    .button {
        font-size: 5vh;
    }

    .error-message {
        font-size: 3.5vh;
    }
}