/* General styles */
body{
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}
.gameTitle{
    color: #04AA6D;
    padding-top: 10%;
}
input{
    font-size: 3.5em;
    text-align: center;
    margin: 0.5%;
    border-radius: 10px;
    border-style: solid;
}
button{
    border-radius: 10px;
    color: white;
    background-color: #04AA6D;
    font-size: xx-large;
    padding: 2%;
    border-style: none;
    margin-top: 1%;
}
div.home {
    position: relative;
    top: 30%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.popup{
    position: absolute;
    z-index:41;
    top: 5%;
    left:45%; 
    padding: 2%;
    background-color: rgb(54, 69, 79);
    color: white;
    border-radius: 10px;
    font-size: 2em;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: none;
}
.bottom{
    top:20%;
    left: 40%;
}

html, body, #preGame {
    height: 100%;
}

#copied{
    /* These are technically the same, but use both */
    overflow-wrap: break-word;
    word-wrap: break-word;

    -ms-word-break: break-all;
    /* This is the dangerous one in WebKit, as it breaks things wherever */
    word-break: break-all;
    /* Instead use this non-standard one: */
    word-break: break-word;
}

#list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 50vw;
    margin: 0 auto;       /* center horizontally */
    box-sizing: border-box;
    padding: 0 10px;
}

/* Each keyboard row gets its own grid */
#list .keyboard-row {
    display: grid;
    grid-gap: 6px;
    justify-content: center;
    width: 100%;
}

/* First row: 10 letters (QWERTYUIOP) */
#list .row-1 {
    grid-template-columns: repeat(10, 1fr);
}

/* Second row: 9 letters (ASDFGHJKL) */
#list .row-2 {
    grid-template-columns: repeat(9, 1fr);
    padding-left: 5%;
    padding-right: 5%;
}

/* Third row: 7 letters (ZXCVBNM) */
#list .row-3 {
    grid-template-columns: repeat(7, 1fr);
    padding-left: 10%;
    padding-right: 10%;
}

/* Individual key styling */
.key {
    background-color: #d3d6da;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 12px 0;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}
/* Mobile Styles */
@media (max-width: 768px) {
    input{
        font-size: 2.2em;
        text-align: center;
        margin: 0.5%;
        border-radius: 10px;
        border-style: solid;
    }
    #popup{
        left:20%; 
    }
    .bottom{
        top:20%;
        left: 10%;
    }
    
}
