::-webkit-scrollbar {
        width: 8px;
        height: 8px;
        }

::-webkit-scrollbar-track {
        background-color: #e4e4e4;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        border: 1px solid #ccc;
        }

::-webkit-scrollbar-thumb {
        -webkit-border-radius: 10px;
        border-radius: 10px;
        background: #e4e4e4;
        border: 1px solid #aaa;
        }

h1, h2, h3, h4, h5, h6 {
    margin: 0.2em;
}

ul {
    padding-inline-start: 1em;
    margin-top: 0.3em;
}

img {
        width: 100%;
}

hr {
    border: 1px solid #d67f6f;
}

a {
    color: #d67f6f;
}

table {
    width: 100%;
        border-collapse: collapse;
    }
    td {
        padding: 0.4em;
    }
    td:first-child {
        font-style: italic;
        color: #c45950;
    }
    td:last-child {
        text-align: right;
    }
    tr {
        border-bottom: 1px solid #ffca67;
    }
    tr:last-child {
        border-bottom: none;
    }

body {
    margin: 2em auto;
    height: fit-content;
    background-image: url("/img/bg.webp");
    background-size: cover;
    background-repeat: no-repeat;
}

main {
    margin: 2em auto;
    display: grid;
    padding: 1em;
    height: auto;
    width: 800px;
    grid:
    [row1-start] "header header" auto [row1-end]
    [row2-start] "nav nav" auto [row2-end]
    [row3-start] "gall gall" auto [row3-end]
    [row4-start] "comp buff" auto [row4-end]
    [row5-start] "staff staff" auto [row5-end]
    [row6-start] "footer footer" auto [row6-end]
    / 2fr 1fr; 
    gap: 1em;
}

main > * {
    border: 3px solid #d67f6f;
    color: #a85748;
    background-color: #F6E9D6;
    background: linear-gradient(0deg,#ebb0b0 0%, #eeddc3 50%);
    padding: 0.5em;
    border-radius: 5px;
    corner-shape: scoop;
}

header {
    grid-area: header;
    height: fit-content;
    background: #F6E9D6;
    background: linear-gradient(0deg,#F6E9D6 60%, #ebb0b0 100%);
}

nav {
    grid-area: nav;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    border: none;
    background: none;
}

nav > * {
    border: 3px solid #d67f6f;
    color: #d67f6f;
    background-color: #F6E9D6;
    padding: 1px;
    border-radius: 5px;
    corner-shape: scoop;
    border: 20px solid transparent;
    border-image: url(img/rose.png) 70 round;
    border-image-outset: 5px;
    transition: 1s;
}

nav > *:hover {
    background-color: #ebb0b0;
    font-weight: bold;
    letter-spacing: 3px;
}

.comp {
    grid-area: comp;
    display: grid;
    padding: 1em;
    height: auto;
    grid:
    [row1-start] "fc name tag" 2em [row1-end]
    [row2-start] "fc server ." 2em [row2-end]
    [row3-start] "fc sp sp" 10px [row3-end]
    [row4-start] "fc seek focus" auto [row4-end]
    [row5-start] "info info info" auto [row5-end]
    / 1fr auto 1fr;
    .fc {
        grid-area: fc;
    }
    .name {
        grid-area: name;
    }
    .tag {
        grid-area: tag;
    }
    .server {
        grid-area: server;
        text-indent: 1em;
    }
    .sp {
        grid-area: sp;
        margin-top: -0.6em;
        hr {
            width: 90%;
        }   
    }
    .focus {
        grid-area: focus;
        margin-top: 0.5em;
        img {
            height: 30px;
            width: auto;
        }
    }
    .seek {
        grid-area: seek;
        margin-top: 0.5em;
        margin-right: 2em;
        img {
            height: 30px;
            width: auto;
        }
    }
    .info {
    grid-area: info;
    font-size: 1em;
    text-indent: 2em;
    margin: -1em auto;
}

    .info > p::first-letter {
    font-size: 1.3em;
    font-weight: bold;
    background-color: #d67f6f;
    color: #F6E9D6;
    padding: 2px;
    margin-right: 3px;
}
}

.buff {
    grid-area: buff;
}

.staff {
    grid-area: staff;
    border: none;
    background: none;
    h5, h6 {
        text-align: center;
    }
    figure {
        border: 3px solid #d67f6f;
        color: #a85748;
        background-color: #ebb0b0;
        border-radius: 5px;
        corner-shape: scoop;
        margin: 0.2em;
        padding: 1em;
        width: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    img {
        width: 100px;
        border-radius: 100px;
        border: 3px solid #d67f6f;
        justify-self: center;
    }
    div {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        gap: 1em;
        width: 100%;
    }
}

footer {
    grid-area: footer;
    text-align: center;
    background: #ebb0b0;
}

@media only screen and (max-width: 800px) {
    body {
        margin: 0.5em;
    }

    main {
        width: 90vw;
        display: block;
    }

    main > * {
        margin-top: 1em;
    }

    nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .staff {
        div {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
        figure {
            justify-self: center;
            width: 130px;
        }
    }
    }

}