/* general TODO*/
html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* add box-sizing so width calculations are stable */
*,
*::before,
*::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, a, button {
    font-family: 'Noto Sans';
}

h2{
    font-size: 30px;
}

p{
    font-family: "Noto Sans";
    word-break: break-word;
}

a{
    text-decoration: none;
    color:rgb(49, 58, 75);
    font-weight: 550;
    font-size: 22px;
}



/* Body */
body{
    background-color: #1c2739;
    background-image:
        repeating-linear-gradient(
            45deg,
            #232f42 0 1px,
            transparent 1px 50px
        ),
        repeating-linear-gradient(
            -45deg,
            #232f42 0 1px,
            transparent 1px 50px
        );
    background-size: 100px 100px;
    background-position: 0 0, 50px 50px;

    color: rgb(0, 0, 0);

    /* keep main 4% padding from top*/
    padding: 4% 0 0 0;

    min-height: 100vh;  
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: linear-gradient(
        to top,
        #768ba0 0%,     
        #a0b2c4 10%,     
        #d3e3f3 50%,
        #ffffff 100%  
    );
    height: 50px;
    width: 100%;
    display: grid;
    align-items: center;
    grid-template-columns: 0.2fr 1fr;
    grid-template-rows: 1fr;
    padding: 0 20px;
}

header img {
    height: 44px;
    width: auto;
}

nav {
    display: grid;
    grid-auto-flow: column;
    gap:20px;
    align-items: center;
}

nav a {
    text-align: center;
    text-decoration: none;
    font-weight: 650;
    padding: 0 20px; /* bigger click area */

    background: rgba(49, 58, 75,0.12);
    border: 2px solid rgb(49, 58, 75);
    border-radius: 4px;
}

@media (max-width: 1300px) {
    nav {
        gap: 10px;
    }
    nav a {
        font-size: 18px;
        padding: 0 12px;
    }
    header img{
        height: 36px;
    }
    header{
        padding: 0 10px;
    }
}

@media (max-width: 900px) {
    nav {
        gap: 5px;
    }
    nav a {
        font-size: 14px;
        padding: 0 5px;
    }
    header img{
        height: 24px;
    }
    header{
        padding: 0 5px;
    }
}

@media (max-width: 650px) {
    header{
        grid-template-columns: 1fr;
        height: 80px;
        gap: 10px;
        padding: 0 10px;
    }
    header img{
        display: none;
    }
    nav {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    nav a {
        padding: 0 15px;
    }
}

nav a:hover{
    border-color: rgba(235,115,23,0.9);
    background: rgba(235,115,23,0.06);
    color: rgb(235, 115, 23);
    transform: translateY(-1px);
}
nav a:focus-visible{
    background-color: rgb(252, 255, 50);
    border-color: rgb(255,253,121);
    box-shadow: 0 0 0 4px rgba(255,253,121,0.22);
}
nav a:active{
    border-color: rgba(95, 239, 29,0.9);
    background: rgba(95, 239, 29,0.06);
    color: rgb(95, 239, 29);
    background-color: transparent;
    transform: translateY(+1px);
}



/* Main */
main {
    flex: 1 1 auto;
    width: min(1152px, 70%);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto; /* default to 1 row */
    justify-content: center;
    margin: 0px auto;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10vh;
}



/* Footer */
footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: 50px;
    background-color: #354f6b;
    font-size: 18px;
    color: rgb(255, 255, 255);
    text-align: center;
}

#footer-policy {
    margin-left: 200px;
}

footer a{
    color: rgb(226, 255, 64);
    font-size: 18px;
}

footer a:hover{
    color: rgb(6, 255, 6);
    font-size: 18px;
    text-decoration: underline;
}

footer img{
    height: 38px;
    width: 38px;
}

footer img:hover{
    filter: brightness(60%) saturate(140%) hue-rotate(50deg);
}

#footer-discord {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#footer-discord p {
    margin: 0;
    font-size: 17px;
}

@media (max-width: 800px){
    #footer-discord p {
        display: none;
    }
    #footer-discord {
    margin-right: 5px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    }
    #footer-policy {
    margin-left: 43px;
    }
}

@media (max-width: 405px){
    footer {
        height: 65px;
    }
}