body {
    background-color: rgb(41, 42, 92);
    position: relative;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

#title {
    height: 80px;
    width: 1350px;
    border: 2px solid #ffffff;
    background-color: rgb(41, 42, 92);
    text-align: center;
    font-size: 70px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

#timer {
    height: 30px;
    width: 1350px;
}

#scrollingbox {
    left: 100px;
    height: 480px;
    width: 400px;
    background: radial-gradient(rgb(12, 42, 82), rgb(47, 78, 163));
    border: 2px solid #000000;
    border-radius: 30px;
    z-index: 999;
    overflow-y: scroll;
}

#maingamebox {
    height: 480px;
    width: 1000px;
    border-radius: 30px;
    border: 2px solid #000000;
    background: radial-gradient(rgb(12, 42, 82), rgb(47, 78, 163));
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
}

.littlebox {
    border-radius: 10px;
    margin-top: 10px;
    height: 140px;
    width: 360px;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    color: rgb(27, 37, 92);
    border: #000000 solid 1px;
    background: radial-gradient(rgb(189, 200, 202), rgb(142, 158, 201));
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#timerwrapper {
    display: flex;
    align-items: flex-end;
    width: 20px;
    height: 400px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    top: 160px;
    left: 20px;
}
  
#timerbar {
    width: 100%;
    height: 100%;
    background-color: red;
    border: #000000 solid 3px;
    border-radius: 20px;
    transition: height 0.3s linear;
    z-index: 999;
}

#score {
    margin-top: 5px;
    margin-left: 5px;
    height: 20px;
    width: 150px;
    background-color: rgb(200, 201, 142);
    border: #ffffff 2px solid;
    z-index: 999;
    position: fixed;
}

#overlayscreen {
    position: fixed;
    top: 120px;
    left: 300px;
    height: 400px;
    width: 750px;
    border-radius: 30px;
    background-color: rgb(41, 42, 92);
    border: 3px solid #ffffff;
    z-index: 9000;
    display: none;
}

#overlayscreen2 {
    position: fixed;
    top: 120px;
    left: 300px;
    height: 400px;
    width: 750px;
    border-radius: 30px;
    background-color: rgb(41, 42, 92);
    border: 3px solid #ffffff;
    z-index: 9000;
    display: block;
}

#menubutton {
    position: fixed;
    height: 60px;
    width: 230px;
    top: 370px;
    left: 370px;
    z-index: 9999;
    display: none;
}

#button2 {
    position: fixed;
    height: 60px;
    width: 230px;
    top: 370px;
    left: 750px;
    z-index: 9999;
    display: none;
}

#image1 {
    background-size: 100%;
    top: 104px;
    height: 480px;
    width: 950px;
    z-index: 10;
    position: fixed;
}

#hint {
    position: absolute;
    height: 80px;
    width: 80px;
    top: 490px;
    left: 875px;
    background-image: url("hint.png");
    background-size: 100%;
    z-index: 999;
}

.glow {
    position: fixed;
    animation: glow 1s ease-in-out infinite alternate;
    border-radius: 50%;
    box-shadow: 0 0 25px 15px rgba(255, 255, 0, 1);
    z-index: 10000;
}

    
@keyframes glow {
    from {
        box-shadow: 0 0 10px 5px rgba(255, 255, 0, 0.7);
    } to {
        box-shadow: 0 0 25px 15px rgba(255, 255, 0, 1);
    }
}

@keyframes shrinkOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}
  
@keyframes growIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
  
@keyframes fadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.fade-out {
  animation: fadeOut 0.3s forwards ease-in;
}

.fade-in {
  animation: fadeIn 0.3s forwards ease-out;
}


.shrink {
    animation: shrinkOut 0.3s forwards ease-in;
}
  
.grow {
    animation: growIn 0.3s forwards ease-out;
}  

#bodycontent {
    margin-top: 10px;;
    height: 450px;
    width: 1350px;
    display: flex;
    gap: 10px;
    bottom: 20px;
}

#grid {
    display: grid;
    grid-template-columns: repeat(10, 190px);
    grid-template-rows: repeat(3, 155px);
    gap: 5px;
    position: relative;
    left: 0;
    transition: left 0.1s linear;
    border-radius: 20px;
    border: 0px solid #000000;
    z-index: 999;
}


#grid div {
    width: 190px;
    height: 155px;
    border: 0px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    z-index: 999;
}

.Umbrella {
    background-image: url("umbrella.png");
    background-size: 100%;
    z-index: 999;
}
.Shell {
    background-image: url("shell.png");
    background-size: 100%;
    z-index: 999;
}
.Flower {
    background-image: url("flower.png");
    background-size: 100% 97%;
    z-index: 999;
}
.Dice {
    background-image: url("dice.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Phone {
    background-image: url("phone.png");
    background-size: 100% 95%;
    z-index: 999;
}
.Extinguisher {
    background-image: url("extinguisher.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Basketball {
    background-image: url("basketball.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Cone {
    background-image: url("trafficcone.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Target {
    background-image: url("target.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Books {
    background-image: url("books.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Shoes {
    background-image: url("shoes.webp");
    background-size: 100% 100%;
    z-index: 999;
}
.Pencil {
    background-image: url("pencil.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Comb {
    background-image: url("comb.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Perfume {
    background-image: url("perfume.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Shirt {
    background-image: url("shirt.webp");
    background-size: 100% 100%;
    z-index: 999;
}
.Teddy {
    background-image: url("teddy.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Fish {
    background-image: url("fish.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Cake {
    background-image: url("cake.webp");
    background-size: 100% 100%;
    z-index: 999;
}
.Crystal {
    background-image: url("crystal.png");
    background-size: 100% 100%;
    z-index: 999;
}
.Megaphone {
    background-image: url("megaphone.webp");
    background-size: 100% 100%;
    z-index: 999;
}
.Bottle {
    background-image: url("bottle.png");
    background-size: 100% 100%;
    z-index: 999;
}