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

body {
    font-family: Inter, Arial, sans-serif;
}

body::-webkit-scrollbar {
    width: 15px;
}

body::-webkit-scrollbar-track {
    background-color: #212121;
}

body::-webkit-scrollbar-thumb {
    background-color: #575757;
    border: 3px solid #212121;
    border-radius: 20px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #6b6b6b;
}

#main-header {
    display: flex;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #212121;
    color: #FFFFFF;
    box-shadow: 0 5px 10px 0 #0000001e;
    padding: min(30px, 8%) min(40px, 5%);
    z-index: 99;
}

#main-header a {
    display: flex;
    align-items: center;
    width: fit-content;
    color: #606060;
    text-decoration: none;
    transition: color 0.1s ease-out;
}

#main-header a:hover {
    color: #2AEA73;
}

#main-header a:hover .material-symbols-outlined {
    transform: translateX(-5px);
}

#main-header a .material-symbols-outlined {
    font-size: 0.8rem;
    margin-right: 5px;
    transition: transform 0.05s ease-in-out;
}

#main-header a span {
    font-size: 0.8rem;
}

#main-header h1 {
    font-family: Commissioner, Arial, sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    margin-top: 10px;
    margin-right: 20px;
}

#main-header img {
    width: 40px;
}

#main-header object svg path {
    fill: #2AEA73;
}

main {
    padding: 135px min(50px, 5%) 40px min(50px, 5%);
}

main section {
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
}

main h2 {
    font-size: 1.8rem;
    margin-top: 40px;
}

main ul {
    margin: 20px 0 0 20px;
    line-height: 25px;
}

main p {
    text-align: justify;
    text-indent: 40px;
    line-height: 25px;
    margin-top: 20px;
}

main a {
    color: #13ad4e;
    font-weight: 500;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2AEA73;
    padding: 30px;
}

footer img {
    width: 40px;
    margin-right: 15px;
}

footer div {
    display: flex;
    align-items: center;
    width: fit-content;
}

footer div#footer-credits-container a {
    color: #000000;
    text-underline-offset: 3px;
    font-weight: 600;
}

footer div#footer-links-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 40px;
}

footer div#footer-links-container a {
    color: #00000071;
    text-decoration: none;
}

footer div#footer-links-container a:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 5px;
}

footer div#footer-icons-container {
    gap: 15px;
}

footer i {
    font-size: 1.8rem;
    color: #000000;
} 

footer div#footer-icons-container a {
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.1s ease-in-out;
}

footer div#footer-icons-container a:hover {
    background-color: #00000028;
}

#about-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1000px;
    height: 80vh;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    animation: about-dialog-fadeup 0.2s ease-out;
}

body.dark #about-dialog {
    background-color: #181818;
    color: #FFFFFF;
}

body.light #about-dialog {
    background-color: #ffffff;
    color: #181818;
}

#about-dialog::backdrop {
    background-color: #00000091;
    backdrop-filter: blur(3px);
}

#about-dialog header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    padding: 20px 20px;
}

body.dark #about-dialog header {
    background-color: #131313;
}

body.light #about-dialog header {
    background-color: #e2e2e2;
}

#about-dialog header h1 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    margin: 0 0 0 10px;
}

#about-dialog #close-icon {
    width: 35px;
    height: 35px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 300;
    transition: background-color 0.075s ease-out,
                color 0.075s ease-out;
}

body.dark #about-dialog #close-icon {
    color: #ffffff3a;
}

body.light #about-dialog #close-icon {
    color: #0000003a;
}

body.dark #about-dialog #close-icon:hover {
    background-color: #2b2b2b;
    color: #FFFFFF;
}

body.light #about-dialog #close-icon:hover {
    background-color: #cfcfcf;
    color: #181818;
}

#about-dialog-content {
    overflow-y: auto;
    height: calc(100% - 83px);
    padding: min(40px, 5%) min(50px, 5%);
}

#about-dialog-content::-webkit-scrollbar {
    width: 16px;
}

#about-dialog-content::-webkit-scrollbar-button {
    display: none;
}

body.dark #about-dialog-content::-webkit-scrollbar-thumb {
    background: #2c2c2c;
    border-radius: 8px;
    border: 4px solid #181818;
}

body.light #about-dialog-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 8px;
    border: 4px solid #FFFFFF;
}

#about-dialog h1 {
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 600;
    text-align: start;
    margin: 60px 0 20px 0;
}

#about-dialog div h1:first-of-type {
    margin: 0px 0 20px 0;
}

#about-dialog p {
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 200;
    text-align: justify;
    text-indent: 40px;
    line-height: 1.8rem;
    margin: 0;
}

body.light #about-dialog p {
    font-weight: 300;
}

#about-dialog #gif-container {
    position: relative;
}

#about-dialog img {
    display: block;
    width: 400px;
    border-radius: 10px;
    margin: 30px auto 0 auto;
    box-shadow: 0 5px 15px 0 #00000042;
    filter: brightness(0.2);
}

#about-dialog img:hover {
    filter: none;
}

#about-dialog img:hover + #gif-message {
    display: none;
}

#about-dialog #gif-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Inter, Arial, sans-serif;
    font-size: clamp(1rem, 5vw, 1.6rem);
    font-weight: 500;
    text-align: center;
    color: #FFFFFF;
    pointer-events: none;
}

#about-dialog a {
    text-underline-offset: 4px;
}

body.dark #about-dialog a {
    color: #2AEA73;
}

body.light #about-dialog a {
    color: #13ad4e;
    font-weight: 400;
}

#about-dialog #about-end-line {
    width: 100%;
    height: 3px;
}

body.dark #about-dialog #about-end-line {
    background-color: #2AEA73;
}

body.light #about-dialog #about-end-line {
    background-color: #13AD4E;
}

@keyframes about-dialog-fadeup {
    from {
        transform: translate(-50%, calc(-50% + 70px));
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Privacy Policy Media Query */

@media screen and (width <= 350px) {
    main {
        padding-top: 160px;
    }
}

@media screen and (width <= 480px) {
    footer {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    footer div#footer-links-container {
        position: static;
        transform: none;
    }
}