@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2&family=Roboto&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #5d5b6a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.gameContainerrr {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.containerrr {
    display: grid;
    grid-template-rows: repeat(3, minmax(80px, 10vw));
    grid-template-columns: repeat(3, minmax(80px, 10vw));
    font-family: 'Roboto', sans-serif;
    position: relative;
    gap: 2px;
    background-color: #5d5b6a;
}

.boxxx {
    border: 2px solid #ffffff;
    font-size: clamp(2rem, 8vw, 4rem);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.boxxx:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

.info {
    font-size: 22px;
}

.gameInfo {
    padding: 20px;
    font-family: 'Baloo Bhaina 2', cursive;
    text-align: center;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.gameInfo h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    color: white;
    background: transparent;
}

.imgbox img{
    width: 0;
    transition: width 1s ease-in-out;
}

.br-0{
    border-right: 0;
}

.bl-0{
    border-left: 0;
}

.bt-0{
    border-top: 0;
}

.bb-0{
    border-bottom: 0;
}

#reset {
    margin: 15px 0;
    padding: 10px 25px;
    background: #f3e7f9;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Baloo Bhaina 2';
    font-size: 1rem;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    background: #e6d4f0;
}

.line{
    background-color: black;
    height: 3px;
    width: 0;
    position: absolute;
    background-color: #ffffff;
    transition: width 1s ease-in-out;
}

@media screen and (max-width: 768px) {
    .gameContainerrr {
        flex-direction: column;
        gap: 20px;
    }

    .containerrr {
        grid-template-rows: repeat(3, minmax(60px, 25vw));
        grid-template-columns: repeat(3, minmax(60px, 25vw));
    }

    .gameInfo {
        width: 100%;
        max-width: 400px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .containerrr {
        grid-template-rows: repeat(3, minmax(50px, 30vw));
        grid-template-columns: repeat(3, minmax(50px, 30vw));
    }

    .boxxx {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .gameInfo h1 {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    #reset {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}
