@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(48, 10, 10)
}

html {
    display: flex;
    justify-content: center;
    background-color: rgb(48, 10, 10);
}

#goals ul {
    list-style-type: none;
}


li::before {
    content: "⭐ ";
}

.small {
    font-size: small;
}

.x-small {
    visibility: hidden;
    font-size: x-small;
}


body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#grid {
    border: 4px solid;
    border-radius: 25px;
    background-color: antiquewhite;
    width: 75%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: auto 500px auto;
    grid-template-areas:
        'header header header header header header header header'
        'nav-container content content content content content content abdbar'
        'footer footer footer footer footer footer footer footer';
}

#grid>div {
    padding: 1.5rem;
}

#header {
    grid-area: header;
    text-align: left;
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid;
    border-radius: 25px 25px 0 0;
}

#nav-container {
    grid-area: nav-container;
    border-right: 4px solid;
}

#nav h2 {
    padding-bottom: 15px;
}

.navlink {
    padding-bottom: 10px;
}

#content {
    grid-area: content;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: bisque;
}

#content > div {
    width: 95%;
    border: 3px solid;
    border-radius: 25px;
    background-color: beige;
    margin: 1rem;
}

.content-header {
    padding: 1rem;
    border-bottom: 4px solid;
}

.content-content {
    padding: 1rem;
}

#abdbar {
    grid-area: abdbar;
    border-left: 4px solid;
}

#footer {
    grid-area: footer;
    text-align: center;
    border-radius: 0 0 25px 25px;
    border-top: 4px solid;
}

#fake-abd {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#fake-abd h4 {
    text-align: center;
}

#fake-abd-image {
    padding-bottom: 15px;
    width: 90%;
    height: 80%;
    border: 1px solid;
    background-color: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#face {

    background-color: yellowgreen;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 0;
    position: absolute
}

#eye-right {
    background-color: black;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 5px;
}

#eye-left {
    background-color: black;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
}

#smile {
    border: 1px solid black;
    border-color: transparent transparent black transparent;
    border-radius: 50%;
    height: 9px;
    width: 30px;
    top: 15px;
    position: absolute;
    top: 15px;
    left: 10px;
    z-index: 3;

}

#the-square {
    width: 90%;
    height: 50%;
    align-self: center;
    overflow-y: hidden;
    overflow-x: hidden;
}

#square-colors {
    height: 100%;
    width: 100%;
    animation: square 3s linear infinite;
    background-image: linear-gradient(90deg,
            red,
            orange,
            yellow,
            limegreen,
            cyan,
            blue,
            purple,
            violet);
}

@keyframes square {
    0% {
        filter: hue-rotate(0deg);
    }

    500% {
        filter: hue-rotate(180deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

#corner-icon {
    display: flex;
}

#corner-icon img {
    width: 100px;
    height: 100px;
}

#corner-icon p {
    align-self: flex-end;
    margin-left: 1rem;
}

#working {
    display: flex;
    flex-direction: column;
    align-items: center;
}


#working img {
    width: 100px;
    height: 100px;
}

#corner-tag {
    animation: corner-tag 0.5s linear infinite;
}

@keyframes corner-tag {
    0% {
        transform: translate(0, 2px);
    }

    50% {
        transform: translate(0);
    }

    100% {
        transform: translate(0, 2px);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: beige;

}

::-webkit-scrollbar-thumb {
    background: rgb(73, 31, 31);
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(112, 62, 62);
    cursor: pointer;
}

.big {
    font-size: x-large;
    font-weight: bolder;
}

#nav h2 {
    grid-area: nav-title;
}

#navlink {
    grid-area: navlink;
}

@media only screen and (max-width: 1400px) {
    #grid {
        width: 90%
    }    
}

@media only screen and (max-width: 800px) {
    html {
        background-color: rgb(48, 10, 10);
    }

    body {
        height: 90%;
        margin-top: 5%;
        margin-bottom: 5%;
    }

    #grid {
        width: 90%;
        display: flex;
        flex-direction: column;
    }

    #content {
        max-height: 500px;
        border-top: 4px solid;
        border-bottom: 4px solid;
    }

    #nav-container {
        border: none;
    }

    #nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            'nav-title nav-title nav-title nav-title'
            'navlink navlink navlink navlink';
    }

    #nav h2 {
        text-align: center;
    }

    .navlink {
        font-size: 0.80rem;
        text-align: center;
        align-self: center;
    }

    #abdbar {
        display: none;
    }

    #footer {
        border-top: none;
    }

    .x-small {
        visibility: visible;
    }
}

@media only screen and (max-width: 600px) {
    #grid {
        width: 100%;
    }

    h1 {
        font-size: 1.5rem;
    }
}