/* General Styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    --color-black: rgb(50, 50, 50);
    --color-green: rgb(45, 150, 45);
    --color-lightgreen: rgb(100, 180, 40);
    --height-header: 60px;
    --font-size: 16px;
}

/* Cover Styles */
#cover {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cover .square {
    overflow: hidden;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-green);
}

#cover .square .bar {
    width: 25%;
    height: 600px;
    background-color: white;
    animation: rotation 2s linear infinite;
}

#cover .square h1 {
    position: absolute;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--font-size)*1.5);
    color: var(--color-green);
    background-color: white;
}

@keyframes rotation {
    to {rotate: 360deg;}
}

/* Header Styles */
header {
    height: var(--height-header);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-green);
}

header h1 {
    min-width: 350px;
    color: white;
    font-size: calc(var(--font-size) * 1.5);
}

header nav {
    min-width: 150px;
    height: var(--height-header);
    display: flex;
    align-items: center;
}

header nav a {
    height: var(--height-header);
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: white;
    background-color: transparent;
    font-size: calc(var(--font-size) * 1.25);
    text-decoration: none;
}

header nav a:hover {
    background-color: var(--color-lightgreen);
}

/* Footer Styles */
footer {
    width: 100vw;
    height: var(--height-header);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-black);
    color: white;
}

/* Media Query */
@media screen and (max-width: 600px) {
    /* Cover Styles */
    #cover {
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #cover .square {
        overflow: hidden;
        width: 300px;
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--color-green);
    }

    #cover .square .bar {
        width: 25%;
        height: 600px;
        background-color: white;
        animation: rotation 2s linear infinite;
    }

    #cover .square h1 {
        position: absolute;
        width: 280px;
        height: 280px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: var(--font-size);
        color: var(--color-green);
        background-color: white;
    }

    /* Header Styles */
    header {
        width: 100vw;
        height: calc(var(--height-header)*2);
        flex-flow: column;
        justify-content: space-evenly;
    }

    header h1 {
        min-width: initial;
    }

    header nav {
        min-width: initial;
        height: auto;
    }

    header nav a {
        height: initial;
    }

    header nav a:hover {
        background-color: initial;
    }
}