@font-face {
    font-family: din;
    /*header font*/
    src: url(../fonts/DIN\ Condensed/DIN-Bold.ttf);

}

@font-face {
    font-family: chap;
    /*basic text font*/
    src: url(../fonts/Chaparral\ Pro\ Light/Chaparral\ Pro\ Light.otf);
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: chap;
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    color: var(--main-text-color);
    display: grid;
    grid-template-columns: 20% 60% 20%;
    grid-template-rows: 20% 60% 20%;
    grid-template-areas:
        "menu t tr"
        /*t=top, b=bottom, l=left, r=right*/
        "menu middle r"
        "menu b br";
}

#menu {
    grid-area: menu;
    position: relative;
}

.hamburger {
    position: absolute;
    z-index: 1;
    cursor: pointer;
}

.navslide {
    transition: 0.25s;
    transform: translateX(100%);
}

#navbar {
    transition: 0.25s;
    background-color: var(--menu-bg);
    position: absolute;
    top: 0%;
    left: -100%;
    height: 100%;
    width: 100%;
}

#navbar ul {
    display: flex;
    flex-direction: column;
    ;
    height: 100%;
    padding-top: 4rem;
    padding-inline-start: 20px;
    padding-inline-end: 20px;
    margin: auto;
    -webkit-box-sizing: border-box;
    /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;
    /* Firefox, other Gecko */
    box-sizing: border-box;
    /* Opera/IE 8+ */
}

a {
    text-decoration: none;
    color: var(--main-text-color);
}

/*instead of bigger text, add a little underline that slides in from the left*/
#navbar ul li:hover {
    transition: 0.1s;
    font-size: 1.75rem;
}

#navbar ul li {
    transition: 0.25s;
    font-weight: bold;
    font-size: 1.5rem;
    font-family: din;
    color: var(--main-text-color);
    display: flex;
    align-items: center;
    padding-left: 20px;
    margin-top: 10px;
    height: 4rem;
    list-style: none;
    cursor: pointer;
}

#melinks {
    font-weight: bold;
    font-size: 2rem;
    font-family: din;
    color: var(--main-text-color);
    display: flex;
    align-items: center;
    padding-left: 20px;
    margin-top: auto;
    margin-bottom: 20px;
    height: 4rem;
}

#melinks i {
    padding: 5px;
    cursor: pointer;
    margin-left: 20px;
}

#main {
    width: 100%;
    grid-area: t/middle/b;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pledgebox {
    height: 60%;
    width: 100%;
    margin: auto auto;
}

/*Pledge*/
#pledgecontainer {
    height: 80%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    font-weight: bold;
}

#thepledge,
#typebox {
    width: 80%;
    margin-bottom: 10px;
    text-align: center;
}

#thepledge {
    font-family: din;
    font-size: 3rem;
}

/*fix typebox style*/
#typebox {
    font-family: chap;
    height: 2rem;
    font-size: 1.5rem;
}

#buttonofshame {
    font-size: 1.2rem;
    cursor: pointer;
}

#popup {
    position: absolute;
    display: none;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #9e9e9e55;
}

#shame,
#submit {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 50%;
    height: 50%;
    background-color: rgb(47, 47, 47);
    border: 2px solid var(--main-text-color);
    border-radius: 15px;
    color: var(--main-text-color);
    z-index: 2;
    font-size: 1.5rem;
}

#shamespan {
    font-size: 3rem;
}

#elapsedtime,
#submitbox {
    text-align: center;
    display: block;
    height: 20%;
}

/*Leaderboard*/
#boardwrapper {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#boardheader {
    font-family: din;
    font-size: 3rem;
    margin-bottom: 4%;
    text-align: center;
}

#disclaimer {
    font-size: 0.75rem;
}

#boardcontainer {
    border-radius: 20px;
    font-family: din;
    font-size: 2rem;
    width: 100%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/*scrollbar*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--main-text-color);
    border-radius: 15px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

::-webkit-scrollbar-corner {
    background: #181818;
    border-radius: 15px;
}

#board {
    height: 90%;
    width: 100%;
    overflow-y: scroll;
}

#labelcontainer {
    height: 10%;
    width: 100%;
    margin-right: 10px;
}

.boardlabels {
    display: flex;
    flex-direction: row;
    margin: 10px;
    height: 80%;
    border: 2px solid var(--main-text-color);
    border-radius: 15px;
}

.boarditem {
    display: flex;
    flex-direction: row;
    margin: 5px 10px 5px 10px;
    /*trbl*/
    height: 9.5%;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--main-text-color);
}

.boardcat,
.labelcat {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.numcat {
    width: 10%;
}

.namecat {
    width: 40%;
}

.timecat,
.wpmcat {
    width: 25%;
}

#loadercontainer {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loader {
    width: 60px;
    height: 60px;
    border: 8px solid var(--menu-bg);
    border-top: 8px solid var(--main-text-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#extra {
    grid-area: tr / r / br;   
    width: 100%;
    height: 100%;
}

#refresher {
    position: relative;
    top: 17.5%;
    font-size: 2rem;
    padding: 5px;
    cursor: pointer;
}