body {
    font-family: Arial, sans-serif;
    font-size: 28px;
    height: 100vh;
    margin: 0;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url(https://www.w3schools.com/Css/paper.gif);
}

h1.name  {
    /* Add a black text shadow with a small spread radius to create a border-like effect */
    text-shadow: 0 0 3px black;
    display: flex;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.game-container p {
    margin: 0;
    padding: 0;
    font-size: 0.8em;
}

.modal-body p {
    margin: 0;
    padding: 0;
    font-size: 13px;
    text-align: justify;
}

ul li {
    font-size: 13px;
    text-align: left;
}

.container {
    text-align: center;
}

.input-container {
    margin-bottom: 20px;
}

input[type="text"] {
    padding: 10px;
    font-size: 1em;
    width: 100%;
}

button {
    padding: 10px 20px;
    font-size: 1.2em;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Hide the game container initially */
.game-container {
    text-align: center;
    display: none;
}

#colorText {
    text-shadow: 0 0 3px black;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Add styling for the color grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    grid-template-rows: repeat(3, 120px);
    gap: 10px;
}

.color-block {
    border: 1px solid black;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    cursor: pointer;
}


body.swal2-no-backdrop .swal2-container .swal2-modal {
/*    box-shadow: 0 0 0 rgba(0,0,0,0) !important;*/
    font-size: calc(1em + 2vw + 1vh);
}

.combo {
    text-shadow: 0 0 3px black !important;
    padding: 0 !important;
}

#bonusDisplay {
    background-color: gold;
    padding: 0 3px 0 5px;
    border: 1px solid black;
}

#hint {
    display: inline-block;
    padding: 0 10px;
    font-size: 0.8em;
    background-color: #initial;
    color: #initial;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
}

#freeze {
    color: blue;
}

#slow {
    color: green;
}

#fast {
    color: red;
}

.carousel-inner {
    margin: auto;
    width: 80%;
}

.bg-dark {
    opacity: 0.5;
}

/* Add zoomIn animation */
.zoomIn {
  animation: zoomIn 0.3s;
}

.zoomOut {
    animation: zoomOut 0.3s;
}

/* Define the zoomIn animation */
@keyframes zoomIn {
  from {
    transform: scale(0.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes zoomOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.1);
    opacity: 0;
  }
}



/* Add responsiveness for smaller screens */
@media (max-width: 320px) {
    body {
        font-size: 15px;
    }

    .color-grid {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);  
    }
    .carousel-control-prev {
        left: -4%;
    }

    .carousel-control-next {
        right: -4%;
    }
}

@media (min-width: 321px) and (max-width: 767px) {
    body {
        font-size: 20px;
    }

    .color-grid {
        grid-template-columns: repeat(3, 23vw);
        grid-template-rows: repeat(3, 15vh);  
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body {
        font-size: 25px;
    }

    .color-grid {
        grid-template-columns: repeat(3, 26vw);
        grid-template-rows: repeat(3, 17vh);  
    }
}


