* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --border-color-grey: #E3DFD6;
    --dark-yellow-one: #FAB818;
    --purple-color-one: #5635D7;
    --shadow-color-one: #E3DFD6;
    --light-text-color: #FFFFFF;

}

h1, h2, button, h5, h3{
    font-family: 'BAGOTA LOS', sans-serif;
}


p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.8rem, 0.747rem + 0.281vw, 1rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.2rem, 1.042rem + 0.842vw, 1.8rem);
}

h5, button {

    font-size: clamp(1rem, 0.947rem + 0.281vw, 1.2rem);
}


h1 {
    font-size: clamp(1.5rem, 1.171rem + 1.754vw, 2.75rem);
}

.moviequiz-section, .question-container, .start-site, .options-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moviequiz-section {
    justify-content: center;
    width: 100vw;
    gap: 1rem;
    padding: 1rem;
}

.question-container, .options-container {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color-grey);
    height: 100%;
}

.question-container {
    background-color: var(--dark-yellow-one);
    justify-content: flex-start;
    position: relative;
}

.start-site, .play-site {
    width: 100%;
    padding: 1rem;
    text-align: center;
    color: white;
    text-shadow: var(--purple-color-one) 2px 2px 2px;
    visibility: visible;
    z-index: 10;
}

.play-site {
    gap: 1rem;
}

.logo-box {
    width: 40%;
    margin-bottom: 5rem;
}

.logo-box img {
    width: 100%;
}

.quiz-title {
    margin-bottom: 2rem;
}

.start-button button {
    border: 1px solid var(--purple-color-one);
    background-color: var(--purple-color-one)  ;
    box-shadow: var(--shadow-color-one) 0 8px 16px;
    padding: 0.8rem 2rem;
    border-radius: 1rem;
    color: var(--light-text-color);
    text-shadow: var(--dark-yellow-one) 1px 1px;
}

.options-container {
    background-color: var(--purple-color-one);
    justify-content: center;
    padding: 0 1rem;
}

.options-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1rem;
    justify-items: center;
    padding: 10px;
}

.options {
    border: 8px solid var(--dark-yellow-one);
    width: 100%;
}

.start-card {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    position: relative;
}

.start-card img {
    width: 100%;
}

.start-card h1 {
    z-index: 10;
    position: absolute;
    padding: 1rem;
    color: var(--purple-color-one);
}

.playsite-header{
    display: flex;
    justify-content: center;

}
/*disabled*/
.options.disabled{
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
    transform: scale(0.95);
    transition: all 0.3s ease;
}



.play-site {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    position: absolute;
    visibility: hidden;
    z-index: -1;
    height: 100%;
}

.playsite-header {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.logo-box2 {
    width: 20%;
}

.logo-box2 img {
    width: 100%;
}

.question-holder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid var(--purple-color-one);
    background-color: var(--light-text-color);
    border-radius: 15px;
    margin: 1rem;
    width: inherit;
    padding: 0.2rem;
}

/*dynamic Questions being showed*/
.question-header {
    color: var(--purple-color-one);
    text-shadow: none;
    margin-bottom: 10px;
}

.question-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 1rem;
}

.choices {
    color: black;
    text-shadow: none;
    border: 2px solid var(--dark-yellow-one);
    border-radius: 10px;
    height: 100%;
    padding: 0.5rem;
}

.choices-div {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    height: fit-content;
    padding: 0.2rem;
}

.not-choice {
    pointer-events: none;
    opacity: 0.3;
    cursor: not-allowed;
    border: 10px solid red;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

#startButton2 {
    display: flex;
    gap: 0.2rem;
}

/*player info*/

.player-info , .stat-container {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    width: 100%;
}

.player-info {
    flex-direction: column;
}

.stat-container {
    justify-content: space-between;
}

.stat-div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-id {
    display: flex;
    flex-direction: row;
    background-color: #FFFFFF;
    color: var(--purple-color-one);
    text-shadow: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}


.stat-container h5 {
    color: var(--purple-color-one);
    text-shadow: none;
}

/*.modal-answer, .modal-wrong-answer {*/
/*    visibility: hidden;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    position: fixed;*/
/*    z-index: 20;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    transition: width 4s ease-in-out;*/
/*}*/

.modal-answer, .modal-wrong-answer {
    visibility: hidden;
    opacity: 0;
}
.modal-answer, .modal-wrong-answer, .modal-alert {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 500;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    padding: 1rem;
    transition: opacity 0.5s ease; /* Smooth transition for opacity */
}

.modal-alert {
    visibility: hidden;
}

.modal-answer.visible, .modal-wrong-answer.visible {
    visibility: visible;
    opacity: 1;
}



.modal-alert-text {
    background-color: #FFFFFF;
    border: 2px solid var(--purple-color-one);
    border-radius: 15px;
    padding: 1rem;
}

.modal-content {
    width: 50vw;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.modal-content img {
    width: 100%;
}

/*modal congratulations*/
.modal-congratulations {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 30; /* Ensures it is above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity for a dim effect */
    justify-content: center; /* Center modal horizontally */
    align-items: center; /* Center modal vertically */
}

.modal-congratulations.visible {
    display: flex; /* Shows the modal */
}

.modal-message {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease; /* Optional fade-in effect */
}

.modal-message h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #333;
}

.modal-message p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.modal-message button {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#newGameButton {
    background-color: #28a745; /* Green */
    color: #fff;
}

#newGameButton:hover {
    background-color: #218838;
}

#exitGameButton {
    background-color: #dc3545; /* Red */
    color: #fff;
}

#exitGameButton:hover {
    background-color: #c82333;
}

#closeModal {
    background-color: #007bff; /* Blue */
    color: #fff;
}

#closeModal:hover {
    background-color: #0056b3;
}

/* Optional fade-in animation for the modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@media screen and (min-width: 1100px) {
    .moviequiz-section {
        width: 100%;
        flex-direction: row;
    }

     .options-container, .question-container {
        width: 45vw;
        height: 110vh;
    }

    .modal-content {
        width: 35vw;
    }

}
