*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    height: 100%;
}


body{
    font-family: 'Montserrat', serif;

}

main{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(240, 237, 237);
    background: url('./assets/ccnlogo.png') no-repeat fixed center / cover;
    background-color : none;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}



a {
    color: #b55d5d;
    text-decoration: none;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6a00, #ee0979);
    left: 0;
    bottom: -3px;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

a:hover::after {
    transform: scaleX(1);
}


.game-quiz-container{
    width: 40rem;
    height: 30rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border-radius: 30px;
}

.inner-container {
    width: 100%;
    height: 100%;
    background-color: lightgray;
    border-radius: 30px;
    padding: 2rem; /* Can be adjusted based on border width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.game-details-container{
    width: 80%;
    height: 4rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.game-details-container h1{
    font-size: 1.2rem;
}

.game-question-container{
    width: 80%;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid darkgray;
    border-radius: 25px;
}

.game-question-container h1{
    font-size: 1.1rem;
    text-align: center;
    padding: 3px;
}

.game-options-container{
    width: 80%;
    height: 12rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.game-options-container span{
    width: 45%;
    height: 3rem;
    border: 2px solid darkgray;
    border-radius: 20px;
    overflow: hidden;
}
span label{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    font-weight: 600;
    color: rgb(22, 22, 22);
}

span label:hover{
    -ms-transform: scale(1.12);
    -webkit-transform: scale(1.12);
    transform: scale(1.12);
    color: white;
}

input[type="radio"] {
    position: relative;
    display: none;
}


input[type=radio]:checked ~ .option {
    background: #E1C700;
}

.next-button-container{
    width: 60%;
    height: 5.5rem;
    display: flex;
    justify-content: center;
}
.next-button-container button{
    width: 8rem;
    height: 2.6rem;
    border-radius: 10px;
    background: none;
    color: rgb(25, 25, 25);
    font-weight: 600;
    border: 2px solid gray;
    cursor: pointer;
    outline: none;
}
.next-button-container button:hover{
    background: linear-gradient(to right, #007A33, #E1C700, #B22222);
}

.modal-container{
    display: none;
    position: fixed;
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    -webkit-animation: fadeIn 1.2s ease-in-out;
    animation: fadeIn 1.2s ease-in-out;
}

.modal-content-container{
    height: 20rem;
    width: 25rem;
    background-color: rgb(43, 42, 42);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border-radius: 25px;
}

.modal-content-container h1{
    font-size: 1.3rem;
    height: 3rem;
    color: lightgray;
    text-align: center;
}

.grade-details{
    width: 15rem;
    height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.grade-details p{
    color: white;
    text-align: center;
}

.modal-button-container{
    height: 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-button-container button{
    width: 10rem;
    height: 2rem;
    background: none;
    outline: none;
    border: 1px solid rgb(252, 242, 241);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 20px;
}
.modal-button-container button:hover{
    background-color: rgb(83, 82, 82);
}

.ccn-logo-container {
    background-color: none;
    width: 4.5em;
    border-radius: 1.8em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7em 1.8em;
    /* Adding responsiveness */
    max-width: 100%; /* Ensures it doesn't overflow */
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

#timer {
    position: relative;
    font-size: 1.2em;
    color: #333;
    /* Adding responsiveness */
    font-size: 1em; /* Smaller font size for smaller screens */
}

.ccn-text {
    color: white;
    font-size: 1.2em;
    /* Adding responsiveness */
    font-size: 1em; /* Smaller font size for smaller screens */
}

/* Media Queries for mobile responsiveness */
@media screen and (max-width: 768px) {
    .ccn-logo-container {
        width: 3.5em; /* Adjust logo container size on smaller screens */
        padding: 0.5em 1.5em; /* Adjust padding */
    }

    #timer {
        font-size: 1em; /* Slightly smaller font size for mobile */
    }

    .ccn-text {
        font-size: 1em; /* Adjust font size for better readability on mobile */
    }
}

@media screen and (max-width: 480px) {
    .ccn-logo-container {
        width: 3em; /* Further adjust logo size for very small screens */
        padding: 0.4em 1.2em; /* Adjust padding for small screens */
    }

    #timer {
        font-size: 0.9em; /* Reduce font size further for smaller screens */
    }

    .ccn-text {
        font-size: 0.9em; /* Make text smaller on very small screens */
    }
}



.game-quiz-container {
    --border-width: 15px;
    --radius: 34px;
  
    position: relative;
    border-radius: var(--radius);
    border: var(--border-width) solid transparent;
  }
  
  .game-quiz-container::before {
    content: " ";
    position: absolute;
    inset: calc(var(--border-width) * -1);
    z-index: -1;
    border: inherit;
    border-radius: inherit;
    background-image: conic-gradient(from var(--angle), #007A33 80%, #E1C700 88%, #B22222 92%, #007A33 100%);
    background-origin: border-box;
    -webkit-mask:
      linear-gradient(to right, #007A33, #E1C700, #B22222) content-box,
      linear-gradient(to right, #007A33, #E1C700, #B22222);  
    mask: linear-gradient(to right, #007A33, #E1C700, #B22222),
          linear-gradient(to right, #007A33, #E1C700, #B22222);
    -webkit-mask-clip: content-box, border-box;  
    mask-clip: content-box, border-box;
    -webkit-mask-composite: xor;  
    mask-composite: exclude;
    animation: spin 3s linear infinite;
  }
  
  @supports not (background: paint(something)) {
    .game-quiz-container::before {
  background-image: conic-gradient(#007A33 80%, #E1C700 88%, #B22222 92%, #007A33 100%);    
    }
  }
  
  .game-quiz-container:hover::before {
    animation-play-state: paused;
  }
  
  @property --angle {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0turn;
  }
  
  @keyframes spin {
    to {
      --angle: 1turn;
    }
}

@media(min-width : 300px) and (max-width : 350px){
    .game-quiz-container{
        width: 90%;
        height: 80vh;
     }
     .game-details-container h1{
        font-size: 0.8rem;
     }

     .game-question-container{
        height: 6rem;
     }
     .game-question-container h1{
       font-size: 0.9rem;
    }

    .game-options-container span{
        width: 90%;
        height: 2.5rem;
    }
    .game-options-container span label{
        font-size: 0.8rem;
    }
    .modal-content-container{
        width: 90%;
        height: 25rem;
    }

    .modal-content-container h1{
        font-size: 1.2rem;
    }
}

@media(min-width : 350px) and (max-width : 700px){
   .game-quiz-container{
       width: 90%;
       height: 80vh;
    }
    .game-details-container h1{
        font-size: 1rem;
    }

    .game-question-container{
        height: 8rem;
    }

    .game-question-container h1{
        font-size: 0.9rem;
     }

    .game-options-container span{
        width: 90%;
    }
    .modal-content-container{
        width: 90%;
        height: 25rem;
    }
    .modal-content-container h1{
        font-size: 1.2rem;
    }
}



@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
  }

  @-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }