:root {
    --off-text: rgb(161, 161, 161);
}

body {
    margin: 0;
    background-color: rgb(40 40 42);
    overflow-x: hidden;
}

header {
    background-color: #708090;
    width: 100%;
    padding: 20px 0px;
    box-shadow: 0px 5px 5px #191919;
    font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
}

header h1 {
    color: white;
    padding-left: 20px;
}

.center {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    align-content: center;
    width: 100%;
    position: relative;
    /* top: -90px; */
    font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

.headerRight {
    float: right;
    color: white;
    position: relative;
    top: -120px;
    padding-top: 50px;
    padding-bottom: 20px;
    width: 200px;
    margin: 0;
    z-index: 11;
    background-color: #708090;
}
.headerRight:hover {
    cursor: pointer;
    background-color: #424b53;
    z-index: 11;
}


.headerRight img {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 100%;
    padding: 10px;
}

.flex {
    display: flex;
}

.padded {
    padding-top: 20px;
}

#pageTitle:hover {
    cursor: pointer;
}

#usernameOut {
    position: relative;
    top: 0px;
    left: 0px;
}

#userMenu {
    background-color: white;
    border: 2px solid gray;
    border-radius: 10%;
    text-align: center;
    position: absolute;
    display: block;
    top: -140px;
    z-index: 10;
    width: 200px;
    transition: top 0.25s linear;
}
#userMenu div {
    color: black;
    text-decoration: none;
    padding: 10px;
    margin: 4px 0px;
}
#userMenu div:hover {
    background-color: lightgray;
    cursor: default;
}

#message {
    display: flex;
    justify-content: center;
}

#message div {
    background: rgb(200, 200, 200);
    border-radius: 4px;
    position: absolute;
    top: 50px;
    padding: 20px;
    font-size: 20px;
    font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    animation: word 1s ease-out;
    z-index: 998;
}

/* This page stuff */

.page {
    background-color: rgb(55, 55, 57);
    display: flex;
    padding: 20px;
    margin: 20px;
    color: white;
    border-radius: 10px;
    /*overflow-wrap: wrap;*/
}

#players {
    padding-right: 15px;
    display: flex;
    flex-direction: column;
}

.player {
    display: flex;
    padding: 20px;
}
.player h1 {
    padding-left: 10px;
}
.player:hover {
    background-color: rgb(48, 48, 50);
    cursor: pointer;
}

.indent {
    position: relative;
    left: 20px;
}

.tile {
    background-color: rgb(41, 41, 58);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.tile svg {
    padding-right: 10px;
}

.tile-large {
    background-color: rgb(41, 41, 58);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
.tile-large table {
    border-collapse: collapse;
}
.tile-large tr:not(:last-child){
    border-bottom: white 1px solid;
}
.tile-large td:last-child {
    padding: 10px;
}

.player-card {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

.stat {
    background-color: rgb(55, 55, 57);
    display: flex;
    padding: 20px;
    color: white;
    border-radius: 10px;
    width: fit-content;
    gap: 10px;
    flex: 1 1 calc(20% - 20px);
    text-wrap: nowrap;
    /*overflow-wrap: wrap;*/
}

.symbol {
    padding: 10px;
    background-color: rgb(238, 238, 238, 0.2);
    color: rgb(238, 238, 238);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.symbol-blue {
    background-color: rgb(44, 162, 255, 0.2);
    color: rgb(44, 162, 255);
}

.symbol-red {
    color: rgb(249, 65, 68);
    background-color: rgb(249, 65, 68, 0.2);
}

.symbol-orange {
    color: rgb(255, 135, 0);
    background-color: rgb(255, 135, 0, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    color: var(--off-text);
}

.stat-value {
    font-size: 20px;
}

.stat-list {
    flex: 1 1 calc(50% - 20px);
    margin: 0px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-list-line {
    background-color: var(--off-text);
    width: calc(100% + 20px);
    height: 1px;
    position: relative;
    left: -10px;
}

.stat-list-item {
    display: flex;
    justify-content: space-between;
}

.stat-list-item-name {
    color: var(--off-text);
}

@media screen and (max-width: 600px) {
    .page {
        width: 85%;
    }

    .player {
        padding: 10px;
        padding-right: 35px;
        margin: 10px;
        align-items: center;
    }
    .player img {
        width: 60%;
        height: 60%;
    }
    .player h1 {
        font-size: 80%;
    }

    #words {
        font-size: 80%;
        overflow-x: scroll;
        width: 300px;
    }
    #words div {
        width: 100%;
    }
}