:root {
    --blue: #0a1928;
    --red: #d72f2e;
    --black: #020304;
    --white: #fff;
    --primary-font: Raleway, Arial, sans-serif;
    --secondary-font: 'Roboto Slab', Verdana, sans-serif;
}

html,
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    background-color: var(--blue);
    color: var(--white);
}

body .paralaxed-background {
    background-position-y: 0px;
    background-size: cover;
}

body .highlight {
    color: var(--red);
}

body a,
body a:visited,
body a:active {
    text-decoration: none;
    color: var(--white);
    transition: all .1s linear;
}

body a:hover {
    color: var(--red);
}

body.loading {
    overflow: hidden;
}

body.loading::after {
    content: 'Loading...';
    position: fixed;
    background-color: var(--blue);
    color: var(--white);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    font-family: 'Roboto Slab';
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

header {
    width: 100%;
    height: 100%;
    background-image: url('../images/header-background.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

header .header-wrap .title h1 {
    font-size: 6rem;
    line-height: 5rem;
}

header .header-wrap .title h6:first-child {
    margin-left: 0.2rem;
}

header .header-wrap .title h6:last-child {
    text-align: right;
}

header .header-wrap .title h6 {
    font-size: 2rem;
    font-family: var(--secondary-font);
    font-weight: 100;
}

header .header-wrap .counter {
    text-align: center;
    padding-top: 3rem;
}

header .header-wrap .title h1,
header .header-wrap .counter span {
    font-weight: 100;
    font-family: var(--secondary-font);
}

header .header-wrap .counter span {
    font-size: 4rem;
    opacity: 0;
    animation-delay: 1s !important;
}

header .header-wrap .counter span.show {
    animation: fadein 1s forwards;
}

header .header-wrap .counter span:not(:first-child) {
    margin-left: 1.2rem;
}

header .mouse {
    text-align: center;
    padding-top: 3.1rem;
}

header .mouse svg #wheel {
    animation: scroll ease 2s infinite;
}

main {
    height: 43rem;
    background-image: url('../images/main-background.webp');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

main .content-wrap {
    width: 50rem;
    height: 43rem;
    display: flex;
    flex-direction: row;
    align-self: center;
    text-align: center;
    justify-content: space-between;
}

main .content-wrap .description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

main .content-wrap .description p {
    font-size: 1.5rem;
    font-family: var(--secondary-font);
    font-weight: 100;
    padding: 0 1.2rem;
    text-align: left;
}

main .content-wrap .description p a {
    text-decoration: underline;
    font-weight: 700;
}

menu {
    background-color: var(--black);
    height: 7rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

menu .menu-wrap {
    width: 50rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

menu a.resume-button {
    background-color: transparent;
    border: 7px solid var(--white);
    outline: none;
    padding: 0 9px;
    cursor: pointer;
    font-family: var(--primary-font);
    transition: all .1s linear;
    background-color: var(--white);
    color: var(--black);
    font-weight: 600;
    border-radius: 0.5rem;
    line-height: 20px;
    font-size: 15px;
}

menu a.resume-button svg {
    font-size: 16px;
    margin-right: 8px;
}

menu .menu-wrap a.home-link {
    border-bottom: 0.2rem solid #fff;
}

menu .menu-wrap svg {
    font-size: 1.8rem;
}

menu .menu-wrap h3 {
    font-family: var(--primary-font);
    font-weight: 100;
    font-size: 3rem;
}

footer {
    font-family: var(--secondary-font);
    height: 30rem;
    background-image: url('../images/footer-background.webp');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: row;
    font-size: 1.2rem;
    font-weight: 100;
    align-items: flex-end;
    flex-wrap: wrap;
}

footer .address,
footer .signature {
    line-height: 6.2rem;
    padding: 1.2rem;
    flex: 1;
    background-color: rgba(0, 0, 0, .7);
    height: 6.2rem;
}

footer .signature {
    text-align: right;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(3.75rem);
    }
}

@media only screen 
    and (orientation: landscape)
    and (min-device-width: 320px) 
    and (max-device-width: 844px) {

    html, 
    body {
        font-size: 12px;
    }
}

@media only screen 
    and (orientation: portrait)
    and (min-device-width: 320px) 
    and (max-device-width: 480px) {

    html, 
    body {
        font-size: 12px;
    }
}

@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 480px)  {
    
    header .header-wrap .title h1 {
        font-size: 3rem;
        line-height: 3rem;
        padding: 0 3rem;
        text-align: center;
    }

    header .header-wrap .title h6 {
        font-size: 1.3rem;
        padding: 0 3rem;
        text-align: center;
    }

    header .header-wrap .title h6:last-child {
        text-align: center;
    }

    header .header-wrap .counter {
        width: 100%;
        font-size: 0.8rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    header .header-wrap .counter span.seconds {
        grid-column: 1 / span 2;
    }

    main .content-wrap img {
        display: none;
    }

    main {
        height: 100%;
    }

    main .content-wrap {
        width: 100%;
        height: auto;
    }
    
    main .content-wrap .description p {
        font-size: 1.3rem;
    }

    menu {
        height: auto;
        padding: 1.2rem;
    }

    menu .menu-wrap {
        width: 80%;
        display: flex;
        flex-wrap: wrap;
        grid-template-columns: auto auto auto auto;
        font-size: 1rem;
        gap: 3rem;
        padding: 2rem;
    }

    menu .menu-wrap a.home-link {
        display: none;
    }

    footer {
        height: auto;
    }

    footer .address, 
    footer .signature {
        height: 12rem;
        padding: 1rem;
        font-size: 1.5rem;
        text-align: center;
        line-height: 3rem;
        justify-content: center;
        align-items: center;
        display: flex;
    }
}