* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

hr {
    margin: 20px;
}

/* Navbar/Header */

.navbar {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    font-family: Courier, Courier New, sans, sans-serif;
    box-shadow: 0 6px 20px 0 rgb(0 0 0);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#navbar__title {
    margin-left: 10px;
}

#navbar__name {
    font-size: 1.7em;
    font-weight: bold;
}

#navbar__game {
    margin-top: -7px;
    font-size: 0.8em;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__item__submenu__items {
    visibility: hidden;
    list-style: none;
    position: absolute;
    text-align: left;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgb(0 0 0 / 20%);
    z-index: 1;
    transition: all 0.1s ease;
}

.navbar__item__submenu:hover .navbar__item__submenu__items {
    visibility: visible;
}

.navbar__submenu__links {
    text-decoration: none;
    padding: 15px 40px 15px 23px;
}

.navbar__submenu__links a {
    text-decoration: none;
    color: black;
}

.navbar__submenu__links:hover {
    background-color: lightgrey;
    transition: all 0.3s ease;
}

.navbar__links {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar__links:hover {
    text-decoration: underline;
}

@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 25vh;
        z-index: -1;
    }

    .navbar__menu.active {
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 990;
    }

    #navbar__logo {
        padding-left: 25px;
    }

    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: lightgray;
        display: block;
        cursor: pointer;
    }

    .navbar__item {
        width: 100%;
        height: 100%;
    }

    .navbar__item__submenu {
        width: 100%;
        height: 100%;
    }

    .navbar__links {
        text-align: center;
        width: 100%;
    }

    .navbar__item__submenu__items {
        width: 100%;
        text-align: center;
    }

    #mobile-menu {
        position: absolute;
        top: 28%;
        right: 7%;
        transform: translate(5%, 20%);
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* General Layout Main */

.main {
    padding: 2rem 0;
    font-family: sans-serif;
    position: relative;
}

.main__container {
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: 90%;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
}

.main__title {
    align-items: center;
    justify-content: center;
    display: flex;
    text-align: center;
    flex-direction: column;
}

.alerts_banner {
    align-items: center;
    justify-content: center;
    display: flex;
    text-align: center;
}

.content-box {
    padding: 10px 40px;
    border-radius: 20px;
    background: #00000033;
}

.filter-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
}

@media screen and (max-width: 1300px) {
    .content-box {
        width: 100%;
        display: inline-grid;
    }
}

@media screen and (max-width: 960px) {
    .main__container {
        padding: 0 16px;
    }

    .content-box {
        width: 75%;
        display: inline-grid;
    }
}

.table-border {
    border-top: 5px solid lightgrey;
    grid-column: 1 / 12;
    border-radius: 20px;
}

.table-border-between {
    border-top: 1px solid lightgrey;
    grid-column: 1 / 12;
}

@media screen and (max-width: 600px) {
    .content-box {
        width: 90%;
        display: inline-grid;
    }
}

/* Shared page layouts and overview cards */

.centered-row {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.centered-row--start {
    align-items: flex-start;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 24px 0;
}

.responsive-list {
    width: 35%;
    min-width: 0;
}

.overview-card {
    display: grid;
    grid-template-areas: 'title' 'date';
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: start;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #00000033;
    color: black;
    text-decoration: none;
    overflow-wrap: anywhere;
    min-width: 0;
}

.overview-card--link:hover {
    background: #00000066;
    color: black;
}

.overview-card--premeeting {
    position: relative;
}

.overview-card--premeeting:has(.premeeting-card-link:hover),
.overview-card--premeeting:has(.premeeting-card-link:focus-visible) {
    background: #00000066;
}

.premeeting-card-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}

.overview-card--premeeting .card-actions,
.overview-card--premeeting .overview-card__meta a {
    position: relative;
    z-index: 2;
}

.meeting-details-input {
    width: 100%;
    min-width: 0;
    resize: vertical;
}

.premeeting-details {
    grid-template-areas: none;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
}

.premeeting-details dd {
    white-space: pre-wrap;
}

.overview-card__title {
    grid-area: title;
    font-weight: bold;
    font-size: 14pt;
}

.overview-card__meta {
    grid-area: date;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.detail-nav,
.detail-nav__previous,
.detail-nav__next {
    display: flex;
    align-items: center;
}

.detail-nav {
    justify-content: center;
    flex-wrap: wrap;
}

.detail-nav__previous {
    justify-content: flex-start;
}

.detail-nav__next {
    justify-content: flex-end;
}

.detail-summary,
.detail-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.detail-summary {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.detail-section a {
    text-decoration: none;
}

.participant-card {
    padding: 10px;
    text-align: center;
    background: #00000033;
    border-radius: 10px;
    width: 220px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.participant-card:hover {
    background: #00000066;
    transition: all 0.3s ease;
}

.form-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.form-panel {
    padding: 10px;
    background: #00000033;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 50%;
}

.panel-heading {
    font-weight: bold;
    font-size: 14pt;
    float: left;
}

@media screen and (max-width: 960px) {
    .responsive-list {
        width: 100%;
    }

    .form-panel {
        width: 100%;
    }

    .centered-row {
        flex-wrap: wrap;
    }
}

/* Comments */

.comments-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16pt;
    font-weight: bold;
    text-decoration: underline;
}

.comment-box {
    padding: 10px;
    background: #00000033;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 75%;
    position: relative;
}

.comment-author-link {
    text-decoration: none;
    color: #000000DD;
}

.comment-author-link:hover {
    color: #00000088;
}

.comment-content {
    padding: 10px;
    margin-top: 20px;
}

.escape-linebreak {
    white-space: pre-line;
}

.no-comments {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.comments {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.comment-box-dates {
    float: right;
    font-size: 8pt;
}

.comment-box-ref {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 8pt;
}

.comment-box-ref a {
    color: #000000DD;
}

.comment-box-ref a:hover {
    color: #00000088;
}

@media screen and (max-width: 960px) {
    .comment-box {
        width: 90%;
    }
}

/* Grids & Detailpages */

.participants-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    grid-gap: 10px;
    margin-top: 10px;
}

@media screen and (max-width: 540px) {
    .participants-grid {
        grid-template-columns: 1fr;
    }
}

.match-grid {
    display: grid;
    grid-template-columns: 4fr 1fr 2fr 1fr;
    grid-gap: 10px;
    margin-top: 10px;
}

.match-grid-cell {
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 540px) {
    .match-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Footer */

footer {
    width: 100%;
    bottom: 0;
}

.footernav {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 900;
    font-family: Courier, Courier New, sans, sans-serif;
}

.footer__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
    color: yellow;
}

.footer__items {
    padding: 0 1rem;
    cursor: default;
}

.footer__links {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
}

.footer__links:hover {
    color: yellow;
    transition: all 0.3s ease;
}

.footer-last-online {
    color: yellow;
    font-size: 15px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
}

.lastonline-links {
    color: white;
    text-decoration: none;
}

.lastonline-links:hover {
    color: yellow;
    transition: all 0.3s ease;
}

@media screen and (max-width: 600px) {
    .footernav {
        height: 175px;
    }

    .footer__menu {
        display: grid;
    }

    .footer__items {
        padding: 3px;
    }
}

.bio-content {
    padding: 10px;
    margin-top: 20px;
}

/* Confetti */

#confetti-container {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: skyblue;
    opacity: 0.8;
    animation: fall linear infinite;
    border-radius: 2px;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}
