* {
    font-family: "Gugi", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    color:white;
    background-image: linear-gradient(to bottom, #1f1f1f 10%, #1d1d1d 20%, #000000 50%);
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    color: white;
}

.title-container h1 {
    font-size: 4em;
    margin: 0;
}

p {
    font-size: 1rem;
    color: gray;
}

.button-container {
    flex: 1;
    box-sizing: border-box;
    padding: 0px 10px 10px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; 
    grid-template-rows: 1fr 60px; 
    gap: 10px;
    width: 100%;
    height: 100%;
}

/* #player-container {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
} */

#start {
    width: 100%;
    height: 100%;
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

#multGame {
    width: 100%;
    height: 100%;
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

#multPrivateGame {
    width: 100%;
    height: 100%;
    grid-column: 5 / 7;
    grid-row: 1 / 2;
}

.upper-row p {
    margin: 5px 0 0 0;
    font-size: 14px; /* Adjust the size of the subtext */
    color: #cccccc; /* Slightly different color for subtext */
}

.upper-row p:first-of-type {
    margin-top: 10px; /* Add some space between the main text and the subtext */
}

#addGame {
    width: 100%;
    height: 100%;
    grid-column: 1 / 4;
    grid-row: 2 / 3;
}

#ranking {
    width: 100%;
    height: 100%;
    grid-column: 4 / 6;
    grid-row: 2 / 3;
}

#form {
    width: 100%;
    height: 100%;
    grid-column: 6 / 7;
    grid-row: 2 / 3;
}

button {
    flex: 1;
    height: 100%;
    cursor: pointer;
    background-color: #1B1B1B;
    border: 2px solid white;
    color: white;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    background-color: white;
    color: black;
}

#start {
    font-size: 2em;
}

#multGame {
    font-size: 2em;
}

#multPrivateGame {
    font-size: 2em;
}

#addGame {
    font-size: 1em;
}

#ranking {
    font-size: 1em;
}



.profile-container {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    display: none
}

.profile-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.card {
    display: none;
    position: absolute;
    top: 70px;
    right: 10px;
    width: 200px;
    background-color: black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid white;
    border-radius: 5px;
    transition: 0.3s;
}

.card p {
    color: white;
}

.card-content {
    padding: 15px;
}

#logout-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#logout-button:hover {
    background-color: #c00;
    color: white;
}

.login-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 10px;
}

#custom-signin {
    display: flex;
}

#addGame i {
    font-size: 1.2rem;
}
#ranking i {
    font-size: 1.2rem;
}
#form i {
    font-size: 1.2rem;
}

/* Mobile styles (for narrow screens) */
@media only screen and (max-width: 768px), 
       only screen and (max-device-width: 768px),
       only screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .title-container {
        flex: 1;
    }
    .title-container h1 {
        font-size: 3em;
        margin: 0;
    }
    .button-container {
        overflow-x: auto;
        padding: 10px;
        padding-bottom: 100px;
        gap: 10px;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr; /* Define your grid layout */
        grid-template-rows: 2fr 1fr 1fr;
        gap: 10px;
        width: 100%;
        aspect-ratio: 1; /* Keep the aspect ratio 1:1 */
        height: auto; /* Allow height to adjust based on the aspect ratio */
        box-sizing: border-box;
    }
    
    #start {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    #multGame {
        grid-column: 2 / 4;
        grid-row: 1 / 2;
    }
    
    #multPrivateGame {
        grid-column: 1 / 2;
        grid-row: 2 / 4;
    }

    #addGame {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        font-size: 1rem;
    }
    
    #ranking {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
        font-size: 1rem;
    }
    
    #form {
        grid-column: 2 / 4;
        grid-row: 3 / 4;
        font-size: 1rem;
    }

    button {
        border: 2.5px solid white;
        color: white;
        border-radius: 10px;
        transition: 0.3s;
    }

    .upper-row p {
        display: none;
    }

    .lower-row span {
        display: none;
    }



}


