@font-face {
    font-family: 'Custom';
    src: url('./sprites/ARCADECLASSIC.TTF');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal content */
.btn {
    /* background-color: rgb(243, 90, 29,0.8); Orange color */
    background-color:#12384E;
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px; /* Rounded corners */
    font-family: Custom; /* Pixelated font */
    font-size: x-large;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border: 2px solid #84C7EE;
}


.btn:hover {
    opacity: 0.8;
    border: 2px solid #f4f6f7;
}

/* .btn {
    background-color: rgb(243, 90, 29) !important;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    width: 150px;
    font-size: 20px;
    font-family: custom;
    text-align: center;
}

.btn:hover {
    opacity: 0.7;
} */

.select_mode_box {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0.25rem;
    border-color: #0077cc;
    border-style: solid;
    border-width: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

.twitter_image {
    width: 70px;
    height: 70px;
}

.twitter_title {
    font-family: custom;
    font-size: 3rem;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.mode_selection_title {
    font-size: 24px;
    font-family: custom;
    text-align: center;
}

.leaderboard_table {
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0.25rem;
    border-color: #0077cc;
    border-style: solid;
    border-width: 2px;
    overflow: hidden;
    width: 90%;
    height: 80%;
    display: flex;
    flex-direction: column;
}

.leaderboard_title {
    font-size: 2.2rem;
    font-family: custom;
    text-align: center;
}

.form_input {
    font-size: 17px;
    margin: 20px 10px;
    padding: 10px;
    width: -webkit-fill-available;
    background-color: rgba(0, 0, 0, 0.8);
    color: white !important;
    text-align: center;
    border: 1px solid white;
    border-radius: 0.25rem;
}

.create_room_box {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0.25rem;
    border-color: #0077cc;
    border-style: solid;
    border-width: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    width: 25%;
    margin: 15% auto
}

.player_joined_table {
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0.25rem;
    border-color: #0077cc;
    border-style: solid;
    border-width: 2px;
    overflow: hidden;
    width: 30%;
    height: 50%;
    display: flex;
    flex-direction: column;
    margin: 15% auto;
    color: white;

}

.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f44336;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9999;
}

.error-popup.fade-in {
    animation: fadein 0.5s;
}

.error-popup.fade-out {
    animation: fadeout 0.5s forwards;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


@media only screen and (max-width: 600px) {

    .modal-content {
        width: 50%;
    }
}