/* Reset some default styling */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Regular.woff2') format('woff2'),
    url('/fonts/Roboto-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.container-narrow {
    margin: 1rem 2rem;
}
@media screen and (min-width: 768px) {
    .container-narrow {
        margin: 1rem 23.6vw;
    }
}

.text-legal {
    padding: 1rem 0;
}


/* Center content vertically and horizontally */
.container-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.text-center {
    text-align: center;
}

/* Logo styling */
.logo-wrapper {
    width: auto;
    max-width: 61.8vw;

    height: auto;
    max-height: 50vh;

    animation: growIn 1.2s ease-out forwards;
    transform: scale(0.8);
    opacity: 0;
}

#logo-wrapper {
    position: absolute;
    top: 38.2%;
    text-align: center;
}

#email-wrapper {
    position: absolute;
    bottom: 23.6vh;
    text-align: center;
}

#legal-wrapper {
    position: absolute;
    bottom: 1vh;
    text-align: center;
}

/* Mobile: Restrict max-height */
@media (orientation: landscape) {
    .logo-wrapper {
        max-height: 38.2vh;
    }
}

/* A ridiculous amount of media queries for the logo size... */
@media screen and (min-width: 768px) {
    .logo-wrapper {
        max-width: 50vw;
    }
}

@media screen and (min-width: 1024px) {
    .logo-wrapper {
        max-width: 23.6vw;
        max-height: 23.6vh;
    }
}

@media screen and (min-width: 1024px) and (orientation: landscape) {
    #logo {
        width: 78.6%;
    }
}

/* Logo SVG styles */
#logo .fil0 {
    fill: black;
}

#logo .fil1 {
    fill: black;
    fill-rule: nonzero;
}

@keyframes needleSwing {
    0% {
        transform: rotate(0deg);
    }
    60% {
        transform: rotate(200deg); /* overshoot */
    }
    80% {
        transform: rotate(175deg); /* undershoot */
    }
    100% {
        transform: rotate(180deg); /* settle */
    }
}

.needle-rotate {
    animation: needleSwing 1.2s ease-out forwards;
}

/* Animation keyframes */
@keyframes growIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.email {
    font-size: 1rem;
}

a {
    color: #333;
    text-decoration: none;
}

a.faded {
    color: #BBB;
}