@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

:root {
    --size: 8px;

    --secondary-color: #051F38;
    --primary-color: #01A887;
    --primary-accent-color: #73FF73;
    --faded-green-color: #F3FDFA;

    --secondary-text-color: #707070;
}

* {
    border: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-family: 'DM Sans', 'sans-serif';
    box-sizing: border-box;
    color: var(--secondary-color);
    list-style: none;
    transition: all ease-in-out .2s;
}

html {
    font-size: 16px;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: auto;
}


.loading-indicator {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00314aaa;
    z-index: 1000;
}

.loading-indicator > div {
    display: flex;
}

.loading-indicator > div > div {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: #01A887;
    transform: translate(-50%, -50%);
    margin: 0 0.5rem;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 2s;
    animation-name: loading-animation;
}

.loading-indicator>div>div:first-child {
    top: 0%;
    animation-delay: 0;
}

.loading-indicator>div>div:nth-child(2) {
    top: 0;
    animation-delay: 0.2s;
}

.loading-indicator>div>div:last-child {
    top: 0;
    animation-delay: 0.4s;
}

header {
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-weight: 600;
    color: white;
    font-size: 1.2rem;
}

header h1 span {
    color: var(--primary-accent-color);
}

main h1 {
    font-size: 3rem;
}

section:first-child {
    padding: 4rem 10%;
    margin: 0 0 2rem;
    background-color: #01A88733;
}

section:first-child > * {
    max-width: 1100px;
    margin: auto;
}

section:last-child {
    width: 100vw;
    padding: 3rem;
}

.card {
    padding: 1rem;
    margin: auto;
    border-radius: 1rem;
    max-width: 400px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 4px;
}

.card > span {
    display: block;
    margin-bottom: 2rem;
    color: #707070aa;
}

.card input {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0 1.25rem;
    border-radius: 0.5rem;
    border: #d3d3d3 solid 1px;
}

.card input[type='submit'] {
    margin: 2rem 0 0;
    border: transparent;
    background: #7C0A02;
    color: gainsboro;
    font-weight: 700;
    letter-spacing: 1.2;
    font-size: 1.05rem;
}





@media screen and (max-width: 600px) {    
    main h1 {
        font-size: 2rem;
    }

    section:first-child {
        padding: 2rem 10%;
        margin: 0 0 1rem
    }
    
    section:last-child {
        padding: 1rem;
    }
}


@keyframes loading-animation {
    0% {
        top: 0px;
        background-color: #01A887;
    }

    50% {
        top: 50px;
        background-color: #3c763d;
    }

    100% {
        top: 0px;
        background-color: #01A887;
    }
}
