/* Based on "Aerial" by HTML5 UP, html5up.net, CCA 3.0 license (html5up.net/license) */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    background: #348cb2;
    color: #fff;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 15pt;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.75em;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

#wrapper,
#bg,
#overlay,
#main {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
}

#wrapper,
#overlay,
#main {
    width: 100%;
}

#wrapper {
    opacity: 0;
    animation: fade-in 3s forwards;
}

#bg {
    --bg-size: 2250px;
    width: calc(3 * var(--bg-size));
    background: #348cb2 url("../img/bg.jpg") bottom left repeat-x;
    background-size: var(--bg-size) auto;
    backface-visibility: hidden;
    animation: bg 60s linear infinite;
}

#overlay {
    opacity: 0;
    background-attachment: fixed, fixed;
    background-image: url("../img/overlay-pattern.png"), url("../img/overlay.svg");
    background-position:
        top left,
        center center;
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    animation: fade-in 1.5s 1.5s forwards;
}

#main {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#header {
    position: relative;
    width: 90%;
    opacity: 0;
    cursor: default;
    animation: header 1s 2.25s forwards;
}

#header h1 {
    font-size: 4.35em;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1em;
}

#header p {
    margin: 0.75em 0 0.25em 0;
    font-size: 1.25em;
    opacity: 0.75;
}

#header nav {
    margin: 1.5em 0 0 0;
}

#header nav li {
    display: inline-block;
    width: 5.35em;
    height: 5.35em;
    line-height: 5.885em;
    opacity: 0;
    animation: nav-icons 0.5s ease-in-out forwards;
}

#header nav li:nth-child(1) {
    animation-delay: 2.5s;
}
#header nav li:nth-child(2) {
    animation-delay: 2.75s;
}
#header nav li:nth-child(3) {
    animation-delay: 3s;
}
#header nav li:nth-child(4) {
    animation-delay: 3.25s;
}
#header nav li:nth-child(5) {
    animation-delay: 3.5s;
}
#header nav li:nth-child(6) {
    animation-delay: 3.75s;
}

#header nav a {
    display: inline-block;
}

#header nav a::before {
    display: block;
    width: 2.5em;
    height: 2.5em;
    border: solid 1px #fff;
    border-radius: 100%;
    font-family: FontAwesome;
    font-size: 1.75em;
    font-weight: normal;
    line-height: 2.5em;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease-in-out;
}

#header nav a:hover::before {
    background-color: rgba(255, 255, 255, 0.175);
}

#header nav a:active::before {
    background-color: rgba(255, 255, 255, 0.35);
}

.countdown li {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin: 40px 20px 0 20px;
    border: 1px solid #fff;
    border-radius: 50%;
    line-height: 80px;
    text-align: center;
    transition: all 0.3s ease-in;
}

.countdown li:hover {
    background-color: rgba(255, 255, 255, 0.175);
    transform: scale(1.2);
}

.countdown span {
    display: inline-block;
    font-size: 2.2em;
    line-height: 2.235em;
}

.countdown h3 {
    font-size: 16px;
    font-weight: 600;
}

#footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6em;
    line-height: 8em;
    background-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.5) 75%
    );
    text-align: center;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes bg {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-1 * var(--bg-size)), 0, 0);
    }
}

@keyframes header {
    from {
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes nav-icons {
    from {
        transform: translate3d(0, 1em, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@media screen and (max-width: 1680px) {
    body {
        font-size: 13pt;
    }
    #bg {
        --bg-size: 1500px;
    }
}

@media screen and (max-width: 1280px) {
    body {
        font-size: 12pt;
    }
    #bg {
        --bg-size: 750px;
    }
}

@media screen and (max-width: 736px) {
    body {
        min-width: 320px;
        font-size: 11pt;
    }
    #bg {
        --bg-size: 300px;
    }
    #header h1 {
        font-size: 2.5em;
    }
    #header p {
        font-size: 1em;
    }
    .countdown li {
        margin: 24px 6px 0 6px;
    }
}

@media screen and (max-width: 480px) {
    #bg {
        --bg-size: 412.5px;
    }
    #header nav {
        padding: 0 1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
    }
}
