html {
    scroll-behavior: smooth;
}

body {
    margin: 0 1em;
    font-family: "Source Sans", sans-serif;
}

#wrapper {
    background: white;
    max-width: 1000px;
    padding: 2em;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    background: #fff1f1;
    padding: 2px 5px;
    border-radius: 5px;
}

.subtitle {
    line-height: 140%;
}


/** intro **/

.flex {
    display: flex;
}

#intro.flex {
    column-gap: 1.5em;
}

#writeup {
    width: 60%;
}

#writeup img {
    width: 100%;
}

#sidebar {
    width: 35%;
    text-align: center;
}

#sidebar a {
    color: var(--dark);
    text-decoration: 2px solid var(--bgpink) underline;
    transition: 0.2s;
    &:hover {
        color: var(--blue);
    }
}

.box {
    padding: 1em;
    margin: 1em auto;
    border: var(--silhouette) 1px dashed;
    width: fit-content;
    border-radius: 10px;
}

#current .box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.5em;
    row-gap: 0.5em;
}

#testi img {
    max-width: 100%;
}

#quotes {
    font-family: "Source Serif";
    column-count: 2;
    column-gap: 1em;
}

#quotes div {
    background: var(--pale);
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 10px;
}

.truther {
    text-align: right;
    font-style: italic;
    color: var(--dustyrose);
}

/** actual roster **/

.desc { /* for the section descriptions */
    max-width: 800px;
    margin: 0 auto;
}

.profiles { /* for the hall of fame */
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap: 1em;
}

.bcard {
    width: calc(50% - 1em);
    padding: 1em;
    background: rgb(255,250,250);
    border: var(--dustyrose) 1px solid;
    display: flex;
    column-gap: 1em;
    border-radius: 10px;
}

.bcard h3 {
    margin: 0.5em 0;
}

.btext {
    width: 100%;
    max-height: 200px;
    background: white;
    overflow: auto;
    padding: 0 0.5em;
    border: var(--silhouette) 1px solid;
    border-radius: 10px;
}

.bprof {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.bprof > img,
#current img { /** all images in profiles + current **/
    max-width: 85px;
    margin-top: 10px;
    object-fit: scale-down;
    border-radius: 50px;
}

.bprof > img[title] {
    border: 3px solid var(--vibrant);
    transition: 0.3s;
    &:hover {
        border: 3px solid var(--blue);
    }
}

#legacy .bprof,
#rotation .bprof { /** specifically for legacy and rotation **/
    max-width: 100px;
    padding: 0 0.5em;
    border: var(--silhouette) 1px solid;
    border-radius: 10px;
    line-height: 120%;
    &:hover {
        background: rgb(255,245,245);
    }
}

.bprof .special {
    font-size: 0.8em;
}

@media only screen and (max-width:800px) {

    #wrapper {
        padding: 1em;
    }

    #intro.flex {
        flex-wrap: wrap;
    }

    .flex {
        justify-content: space-around;
    }

    #writeup, #sidebar {
        width: 100%;
    }

    #quotes {
        column-count: 1;
    }

    #main .bcard {
        width: 100%;
        flex-wrap: wrap;
    }

    .bprof {
        margin: 0 auto;
    }

    .btext {
        max-height: none;
    }
}