a {
    color: unset;
    text-decoration: none;
}
body {
    background-color: black;
    color: white;
    padding: 1rem;
    max-width: 816px;
    margin: auto;
    position: relative;
}
h2, h3 {
    margin: 0 0 1rem;
}
header {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid white;
}
header a {
    display: inline-block;
    padding: 0.5rem 1rem;
}
header a[href]:hover {
    color: black;
    background-color: white;
}  
header a:not([href]) {
    color: gray;
}
header a.active {
    border: 1px solid white;
    margin-bottom: -1px;
    border-bottom: 1px solid black;
}
table {
    border-collapse: collapse;
    width: 100%;
}
td, th {
    padding: 0.25rem 0.5rem;
    border: 1px solid white;
}
th {
    text-align: left;
    background-color: #404040;
}
.menu {
    z-index: 998;
}
.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    height: 100%;
    width: 100%;
}
.header .container label,
.header .container input[type=checkbox] {
    display: none;
}
.header .container label {
    cursor: pointer;
    position: relative;
    height: 40px;
    width: 50px;
    text-decoration: none;
    margin: 16px;
    border-radius: 5px;
    background-color: black;
    border: 1px solid white;
}
.header .container label::before,
.header .container label::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 20px;
    height: 2px;
    background-color: white;
}
.header .container label::after {
    top: 26px;
}
.header .container label:hover,
.header .container label:active,
.header .container input[type=checkbox]:checked ~ label {
    background-color: white;
    color: black;
}
.header .container label:hover::before,
.header .container label:hover::after {
    background-color: black;
}
.flex {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.section {
    padding: 1rem;
    background-color: #1d1e1f;
    border-radius: 5px;
    border: 1px solid white;
    margin-bottom: 1rem;
    max-width: 100%;
}
.flex > .section {
    flex: 1;
}
.button {
    padding: 0.5rem;
    border: 1px solid white;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    display: inline-block;
    max-width: fit-content;
    margin: 1rem 0 0;
}
.button:hover {
    background-color: white;
    color: black;
    cursor: pointer;
}
.form-group {
    margin: 0 0 1rem;
    display: flex;
}

.form-input {
    padding: 2px;
    width: 100%;
}
#msg {
    padding: 0.5rem;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 0 1rem;
    border-radius: 5px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    z-index: 999;
}
#msg.error {
    background-color: red;
}
#msg.success {
    background-color: green;
}
table.ranked tbody tr:nth-child(2) {
    color: gold;
}
table.ranked tbody tr:nth-child(3) {
    color: silver;
}
table.ranked tbody tr:nth-child(4) {
    color: goldenrod;
}
.grid-item {
    width: 250px;
    margin-bottom: 16px;
}
.grid-item.portrait {
    height: 333px;
}
.grid-item.landscape {
    height: 188px;
}
.grid-item.v-portrait {
    height: 445px;
}
.grid-item.v-landscape {
    height: 141px;
}
.grid-item img,
.grid-item video {
    width: 100%;
}
.login-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 33% !important;
    position: relative;
}
.stats-container,
.login-form {
    flex-grow: 1;
}
.button.active {
    background-color: white;
    color: black;
}
.option-date {
    width: 100px;
    flex-grow: 1;
}
.options-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.options-container.event {
    margin-bottom: 0;
}
.options-container.event .rsvp-container {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}
.rsvp-container a {
    margin: 0 0.5rem 0 0;
}
#date-scheduler {
    flex: 0 0 33%;
    position: relative;
}
.section.rsvp-section {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(50% - 3rem);
}
.button-container {
    display: flex;
    flex-direction: column;
    margin: -1rem 0 1rem;
}
hr {
    width: 100%;
}
input[type="date"] {
    height: calc(100% - 1rem - 4px);
}
.attendance-admin {
    display: flex;
    flex-direction: column;
    max-height: 12rem;
    flex-wrap: wrap;
}
.attendance-entry {
    width: 33%;
}
#admin-date-option-update {
    min-height: 4rem;
}
#admin-add-date-option {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#admin-add-date-option #game_night {
    padding: 10px;
    width: 100%;
}
#admin-add-date-option .button {
    margin-top: 0;
}
.mobile-only {
    display: none;
}
.sswp {
    width: 10px;
    height: 10px;
    display: block;
    margin: auto;
}
@media (max-width: 767px) {
    .flex {
        flex-direction: column;
    }
    .flex > .section {
        flex: 1 !important;
        overflow-x: auto;
        width: calc(100% - 32px);
    }
    .grid-item {
        width: calc(100% - 32px);
    }
    .grid-item img,
    .grid-item video {
        display: block;
        margin: auto;
        width: 250px;
    }
    .attendance-admin {
        max-height: 18rem;
    }
    .attendance-entry {
        width: 50%;
    }
    .header .container {
        justify-content: space-between;
    }
    .header .container label {
        display: inline-flex;
    }
    .header .container .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-flow: column;
        background-color: black;
        justify-items: flex-start;
        align-items: flex-start;
    }
    .header .container input[type=checkbox]:checked ~ .menu {
        display: flex;
        border: 1px solid white;
    }
    .header .container input[type=checkbox]:checked ~ .menu a {
        justify-content: flex-start;
        width: calc(100% - 32px);
        padding: 16px;
    }
    .header a.active {
        border: none;
        color: goldenrod;
        font-weight: 700;
    }
    .header .container input[type=checkbox]:checked ~ label::before,
    .header .container input[type=checkbox]:checked ~ label::after {
        background-color: black;
    }
    .mobile-only {
        display: block;
    }
    #admin-add-date-option {
        flex-direction: column;
    }
    #admin-add-date-option input,
    #admin-add-date-option div,
    #admin-add-date-option .button {
        margin-top: 16px;
    }
    #admin-add-date-option #game_night {
        margin: 0;
    }
    #admin-add-date-option #date_option {
        padding: 10px;
    }
}