@import "bmc_styles.css";
@import "rotate_styles.css";

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.logo {
    position: absolute;
    top: 2vh;
    left: 0.5vw;
    width: 13vw;
    height: auto;
}

.nav {
    position: absolute;
    top: 0.52vw;
    right: 1.04vw;
}
.nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.04vw;
    font-size: 0.83vw;
    font-weight: bold;
    transition: color 0.3s;
}
.nav a:hover {
    color: #007BFF;
}

#score {
    font-size: 1.25vw;
    font-weight: bold;
    margin-top: 5vw;
    color: #03dac6;
}

#quiz-container {
    display: flex;
    flex-direction: column; 
    margin-top: 5vh;
    background: #1e1e1e;
    padding: 1.0vw;
    border-radius: 0.62vw;
    box-shadow: 0 0.42vw 1.25vw rgba(0, 0, 0, 0.5);
    max-width: 50vw;
    width: 100%;
    text-align: left;
}

.question-container {
    margin-bottom: 1.04vw;
    font-size: 0.94vw;
    font-weight: normal;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.52vw;
}

.option {
    background: #2c2c2c;
    padding: 0.52vw;
    border-radius: 0.62vw;
    box-shadow: 0 0.21vw 0.62vw rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.94vw;
    color: #ffffff;
}

.option.selected {
    background-color: #42a5f5;
    color: #ffffff;
}

.option input {
    display: none;
}

#submit-button {
    margin-top: 1.04vw;
    padding: 0.52vw 1.04vw;
    font-size: 0.83vw;
    color: #ffffff;
    background-color: #6200ea;
    border: none;
    border-radius: 0.42vw;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#submit-button:hover {
    background-color: #3700b3;
}

#submit-button:disabled {
    background-color: #444444;
    cursor: not-allowed;
}

.navigation-buttons {
    margin-top: 1.04vw;
    display: flex;
    justify-content: space-between;
    max-width: 50vw;
    width: 90%;
}

.navigation-buttons button {
    padding: 0.52vw 1.04vw;
    font-size: 0.83vw;
    color: #ffffff;
    background-color: #6200ea;
    border: none;
    border-radius: 0.42vw;
    cursor: pointer;
}

.navigation-buttons button:hover {
    background-color: #3700b3;
}

.navigation-buttons button:disabled {
    background-color: #444444;
    cursor: not-allowed;
}

#result {
    margin-top: 1.04vw;
    font-size: 0.94vw;
    font-weight: bold;
    max-width: 50vw;
    width: 100%; /* Matches quiz container width */
    padding: 1.0vw;
    background-color: #2c2c2c;
    border-radius: 0.62vw;
    box-shadow: 0 0.21vw 0.62vw rgba(0, 0, 0, 0.4);
    display: none; /* Hidden by default for unanswered questions */
}

#result .line1 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.52vw;
}

#result.correct .line1 {
    color: #03dac6; /* Green for correct answers */
}

#result.incorrect .line1 {
    color: #cf6679; /* Red for incorrect answers */
}

#result .line2 {
    text-align: left;
    font-weight: normal;
    line-height: 1.5;
}
.box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10.42vw;
    height: 5.21vw;
    background-color: #1E1E1E;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 0.94vw;
    font-weight: bold;
    border-radius: 0.52vw;
    border: 0.10vw solid #4b85ab;
    transition: background-color 0.3s, border-color 0.3s;
}
.box:hover {
    background-color: #007BFF;
    border-color: #0056b3;
}

.container {
    text-align: center;
    padding: 1.04vw;
    background: #1e1e1e;
    box-shadow: 0 0.21vw 0.42vw rgba(0, 0, 0, 0.5);
    border-radius: 0.52vw;
    max-width: 20.83vw;
    margin: 1.04vw;
}
        
.stars {
    display: flex;
    cursor: pointer;
}

.star {
    font-size: 1.5vw;
    color: gray;
}

.star.filled {
    color: gold;
}

.rating-container {
    position: absolute;
    right: 5.21vw;
    top: 18.0vw;
    transform: translateY(-50%);
    text-align: left;
    font-size: 1vw;
}

.rating-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.52vw;
}

.rating-label {
    grid-column: 1;
}

.stars {
    grid-column: 2;
}

#rateButton {
    grid-column: 3;
    justify-self: start;
    margin-left: 0.52vw;
    background-color: #4b85ab;
    color: white;
    border: none;
    padding: 0.26vw 0.52vw;
    border-radius: 0.26vw;
    cursor: pointer;
    font-size: 0.6vw;
}
