* {
    box-sizing: border-box;
}

:root {
    --card: rgb(23, 2, 69);
    --back: rgb(42, 71, 94);
    --red:  #ff5c57;
    --blue: #5DC1F2;
    --darkBlue: #1E3A8A;
}

body {
    font-family: "Mulish", Arial, sans-serif;
    margin: 0;
    background-color: var(--back);
    color: white;
}

header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    background-color: var(--card);
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
}

#games {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px, 1fr));
    grid-gap: 1rem;
    background-color: var(--back);
    margin: 2.2%;
}

#cards {
    display: grid;
    grid-template-columns: auto-fit,minmax(350px, 1fr);
    grid-gap: 1rem;
    background-color: var(--back);
    margin-top: 2.2%;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 2.2%;
}

#cards figure {    
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: left;
    color: white;
    background-color: rgb(23, 2, 69);
    border-radius: 25px;
    min-height: 300px;
    padding-top: 20px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 20px;
}

#games figure {    
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: left;
    color: white;
    background-color: rgb(23, 2, 69);
    border-radius: 25px;
    min-height: 300px;
    padding-top: 20px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 20px;
    max-width: 400px;
}

figure a {
    background-color: rgb(4, 92, 119);
    color: white;
    width: 120px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
}

.game_buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

figcaption {
    text-align: center;
}

.game-data-entry {
    width: 5ch;
}

.player-name {
    max-width: 5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-column {
    width: 5em;
}

form {
    margin: 1em;
}

#data-entry td {
    max-width: 5em;
}

.flash {
    background-color: rgb(98, 5, 5);
}

.row {
    display: flex;
    flex-direction: row;
}

.col {
    display: flex;
    flex-direction: column;
}

#hopen {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    font-size: 50px;
    margin: 0;
    padding: 0;
    color: white;
    width: fit-content;
}

.navbut {
    background-color: rgb(75, 75, 75);
    color: white;
    text-decoration: none;
    margin: 1px;
    padding: 2px 5px;
    border-radius: 10px;
    width: fit-content;
    height: fit-content;
    text-align: center; 
}

.ball {
    border: none;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    font-size: 35px;
}

.center {
    display: grid;
    justify-items: center;
}

#out {
    margin: 0;
}

#datahere {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px, 1fr));
    grid-gap: 1rem;
    background-color: var(--back);
    margin: 2.2%;
}

.dataCards {
    background-color: var(--card);
    padding: 30px;
    border-radius: 50px;
    width: fit-content;
    height: 175px;
}

.first {
    color: red;
}

h1 {
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: var(--card);
}

#cardN {
    display: flex;
    justify-content: center;
}

progress {
    margin-left: 5px;
}

.hide {
    display: none;
}

#wideLinks {
    display: none;
}

#remove {
    display: flex;
    justify-content: center;
}

.wide {
    width: fit-content;
}

#authBut {
    align-items: end;
}

#dataCardTitle p {
    margin-right: 4px;
}

.red {
    color: red;
}

@media screen and (min-width: 669px) {
    #wideLinks {
        display: block;
    }

    #ham {
        display: none;
    }

    .wide {
        width: 33vw;
    }
}

