/* 
  * {
    margin: 0;
    padding: 0;
}
body {
    background-image: linear-gradient(to right, rgba(0, 238, 255, 0), rgb(23, 107, 120));
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.left-container {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
}

.player-names {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-names p {
    font-size: 1.5rem;
    margin: 10px 0;
    color: aliceblue;
}

.input-container {
    margin: 20px;
}

.input-container input {
    padding: 10px;
    font-size: 1rem;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.input-container button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: darkslategray;
    color: aliceblue;
    border-radius: 5px;
    border: none;
}

.container {
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game {
    height: 60vmin;
    width: 60vmin;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5vmin;
}

.box {
    height: 18vmin;
    width: 18vmin;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
    font-size: 10vmin;
    color: chocolate;
   
}

#reset {
    padding: 1rem;
    font-size: 1.25rem;
    background-color: darkslategray;
    color: aliceblue;
    border-radius: 1rem;
    border: none;
}

#btn {
    padding: 1rem;
    font-size: 1.25rem;
    background-color: darkslategray;
    color: aliceblue;
    border-radius: 1rem;
    border: none;
}

#msg {
    color: darkred;
    font-size: 5vmin;
}

.msg-container {
    height: 99vmin;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4rem;
}

.hide {
    display: none;
} 
  */









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

body {
    background-image: linear-gradient(to right, rgba(0, 238, 255, 0), rgb(23, 107, 120));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    color: rgb(7, 7, 7);
    margin-bottom: 20px;
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.input-container input {
    padding: 10px;
    font-size: 1rem;
    margin: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 300px;
}

.input-container button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: darkslategray;
    color: aliceblue;
    border-radius: 5px;
    border: none;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-container button:hover {
    background-color: slategray;
}

.container {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.box {
    width: 100%;
    padding-bottom: 100%; /* Aspect ratio 1:1 */
    position: relative;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
    font-size: 2rem;
    color: chocolate;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.box:hover {
    background-color: lightgray;
}

#reset, #btn {
    padding: 1rem;
    font-size: 1.25rem;
    background-color: darkslategray;
    color: aliceblue;
    border-radius: 1rem;
    border: none;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#reset:hover, #btn:hover {
    background-color: slategray;
}

#msg {
    color:wheat;
    font-size: 2rem;
}

.msg-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    z-index: 10; 
    
}

.hide {
    display: none;
}

@media (max-width: 768px) {
    .box {
        font-size: 1.5rem;
    }

    #msg {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .box {
        font-size: 1.25rem;
    }

    #msg {
        font-size: 1.25rem;
    }

    .input-container button {
        padding: 10px;
    }
}  


