p {
    margin: 0px;
}

table {
    border-collapse: separate!important;
    border-spacing: 0 5px!important;
    width: 100%;
    font-family: 'Montserrat', sans-serif !important;
}

th {
    color: var(--nerdle-black);
    padding: 10px;
}

th:first-child,
td:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

th:last-child,
td:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

td {
    padding: 10px;
    font-size: 24px;
}

th:nth-child(1) {
    width: 10%;
}

th:nth-child(2) {
    width: 50%;
}

td:not(:nth-child(2)) {
    text-align: center;
}

.player td {
    background-color: var(--nerdle-grey);
    color: var(--nerdle-white);
}

.red td {
    background-color: var(--nerdle-red);
}

.green td {
    background-color: var(--nerdle-green);
}

.gold td {
    background-color: #E5B80B;
    color: black
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    background-color: var(--nerdle-green);
    color: white!important;

    padding: 10px;
}

.footer .content {
    margin-top: 0px;
}

.game-time {
    color: var(--nerdle-red);
    font-family: "Quicksand", sans-serif;
    font-weight: 600;
}

.loading {
    position: fixed;
    background-color: var(--nerdle-white);
    inset: 0;
    z-index: 99;
}

.loading-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-icon {
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
}

#game-name {
    background-color: #00000045; 
    padding: 5px 10px; 
    border-radius: 5px; 
    font-size: 1.5em; 
    display: inline-block;
    text-align: center;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

#game-description {
    padding: 5px 10px; 
    border-radius: 5px; 
    font-size: 1em; 
    display: inline-block;
    text-align: center;
    color: black;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}
#footer-text {
    color: white!important; 
    display: flex; 
    flex-direction: row;
    align-items: center; 
    justify-content: space-between;
}

.settings {
    padding: 20px;
    background-color: var(--nerdle-grey);
    border-radius: 5px;
    margin-top: 20px;
}

.settings-game-mode {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.settings-join-link {
    color: white!important;
}

.settings p {
    margin: 0px;
}

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

@media screen and (max-width: 500px) {
    td {
        font-size: 14px;
    }

    td, th {
        padding: 5px;
    }

    #footer-text {
        flex-direction: column;
    }

    #game-code {
        margin-top: 10px;
    }

    #game-code-wrapper,
    #game-code {
        width: 100%;
    }

    .settings-game-mode {
        flex-direction: column;
    }
}

@media screen and (max-width: 375px) {
    th,
    td {
        font-size: 12px;
        width: 100%;
        padding: 5px;
    }
}