* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background-color: #f0f8ff;
    height: 30vw;
}

header {
    /* max-height: 30vw; */
    font-size: medium;
    text-align: center;
    background-color: rgb(125, 187, 242);
    padding: 1vw;
}

.level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10vw;
    background-color: rgb(165, 205, 240);
    padding: 3px;
    font-size: medium;
}

.comp{
    padding: 0.5vw;
    border: 1px solid black;
    border-radius: 5px;
    background-color: rgb(62, 147, 190);
    color: white;
    font-size: 1vw;
    cursor: pointer;
}

.comp:hover{
    padding: 0.6vw;
    border-radius: 7px;
    transition: 0.3s ease;
    background-color: #4fc2e9;
}

.try {
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-bottom: 0;
    background-color: rgb(213, 246, 246);
    flex-wrap: wrap;
}

.Matrix {
    margin-top: 10px;
    margin-bottom: 2px;
}

.hor {
    display: flex;
    
}

.box {
    color: #000;
    width: 10vw;
    height: 10vw;
    margin-right: 2%;
    margin-bottom: 2%;
    border-radius: 10px;
    border: solid black 2px;
    font-size: 8vw;
    cursor: pointer;
    background-color: white;
    transition: 0.3s ease;
}

.box:hover{
    width: 10.2vw; 
    height: 10.2w;
    margin-right: 1.5%;
    background-color: lightgray;
}

footer {
    background-color: rgb(125, 187, 242);
    text-align: center;
    padding: 2vw;
    margin-top: 0;
    font-size: 1vw;
}

.rst{
    margin-top: 11vw;
    background-color: rgb(225, 4, 4);
    margin-left: 5rem;
    width: 10vw;
    height: 10vw;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: solid black 2px;
    font-size: 1.5vw;
    cursor: pointer;
    transition: 0.3s ease;
}
.rst:hover{
    width: 10vw; 
    height: 10vw;
    margin-right: 1.5%;
    background-color: lightgray;
}
.flex {
    z-index: 1000;
    position: fixed; /* Full page overlay */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
}

.result {
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.win {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.new {
    padding: 10px 25px;
    font-size: 16px;
    background-color: #90eee0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.new:hover {
    background-color: #66d2c8;
}

.result:hover {
    transform: scale(1.02);
}
