:root {
    --main-color: #0000fe;
    --main-font: "Gotham Bold";
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Top Progress Bar - Fixed at top */
.bmwp-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #ecf0f1;
    z-index: 1000;
}

.bmwp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color));
    width: 0%;
    transition: width 0.5s ease;
}

/* Main container - Full viewport */
.bmwp-quiz-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 4px; /* Account for progress bar */
    min-height: calc(100vh - 4px);
}

/* Quiz content container */
#bmwp-quiz-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 100vh;
}

/* Single question container - Full screen */
.bmwp-single-question {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bmwp-single-question:before {
    content: "";
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 5px;
    background: var(--main-color);
    z-index: 1;
}

.bmwp-single-question:after {
    content: "";
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 5px;
    border-top: 5px dashed var(--main-color);
    z-index: 1;
}

/* Question card - Prominent and clean */
.bmwp-question-card {
    background: white;
    background-image: url("../img/paper-bg.jpg");
    background-size: cover;
    border: 1px solid #f1f3f4;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    justify-content: center;
}

/* Blue corner triangles */
.top-left-triangle {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 140px solid var(--main-color);
    border-bottom: 140px solid transparent;
    z-index: 1;
}

.top-right-triangle {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 120px solid var(--main-color);
    border-bottom: 120px solid transparent;
    z-index: 1;
}

.bottom-left-triangle {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-right: 120px solid transparent;
    border-bottom: 120px solid var(--main-color);
    z-index: 1;
}

.bottom-right-triangle {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-bottom: 120px solid var(--main-color);
    z-index: 1;
}

/* Question content */
.bmwp-question-content {
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bmwp-question-content p {
    position: relative;
    font-family: var(--main-font);
    font-size: 3vw;
    line-height: 1.4;
    color: var(--main-color);
    max-width: 85%;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
    padding: 2%;
}

.top-left-dot {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--main-color);
    border-radius: 100%;
    z-index: 1;
}

.top-left-dot:before {
    content: "";
    position: absolute;
    bottom: 100%;
    height: 3vh;
    width: 2px;
    background: transparent;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
}

.top-left-dot:after {
    content: "";
    position: absolute;
    right: 100%;
    top: 10px;
    height: 2px;
    width: 3vh;
    background: transparent;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
}

.top-right-dot {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--main-color);
    border-radius: 100%;
    z-index: 1;
}

.top-right-dot:before {
    content: "";
    position: absolute;
    bottom: 100%;
    height: 3vh;
    width: 2px;
    background: transparent;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
}

.top-right-dot:after {
    content: "";
    position: absolute;
    left: 100%;
    top: 10px;
    height: 2px;
    width: 3vh;
    background: transparent;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
}

.bottom-left-dot {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--main-color);
    border-radius: 100%;
    z-index: 1;
}

.bottom-left-dot:before {
    content: "";
    position: absolute;
    top: 100%;
    height: 3vh;
    width: 2px;
    background: transparent;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
}

.bottom-left-dot:after {
    content: "";
    position: absolute;
    right: 100%;
    top: 10px;
    height: 2px;
    width: 3vh;
    background: transparent;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
}

.bottom-right-dot {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--main-color);
    border-radius: 100%;
    z-index: 1;
}

.bottom-right-dot:before {
    content: "";
    position: absolute;
    top: 100%;
    height: 3vh;
    width: 2px;
    background: transparent;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
}

.bottom-right-dot:after {
    content: "";
    position: absolute;
    left: 100%;
    top: 10px;
    height: 2px;
    width: 3vh;
    background: transparent;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
}
/* Question buttons */
.bmwp-question-buttons {
    padding: 40px;
    display: flex;
    gap: 10vw;
    justify-content: center;
    border-top: 1px solid #ecf0f1;
}

/* Button styles */
.bmwp-btn {
    border: 3px solid var(--main-color);
    border-radius: 8vw;
    padding: 2vw 4vw;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    outline: none;
    font-family: var(--main-font);
    font-size: 3vw;
    box-shadow: 6px 10px 0px var(--main-color);
    background-color: white;
    color: var(--main-color);
}

.bmwp-btn-news:hover,
.bmwp-btn-fake:hover,
.bmwp-btn-restart:hover {
    background-color: var(--main-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: none;
}

.bmwp-btn:active {
    transform: translateY(0);
}

/* Selected button state */
.bmwp-btn.selected {
    background-color: #1d0fff !important;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 254, 0.3) !important;
}

/* Results section - Full screen */
.bmwp-quiz-results {
    position: fixed;
    top: 4px; /* Account for progress bar */
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.bmwp-results-content {
    text-align: center;
    max-width: 1170px;
    padding: 40px;
}

.bmwp-quiz-results h2 {
    color: var(--main-color);
    margin-bottom: 40px;
    font-size: 3vw;
    font-family: var(--main-font);
    text-transform: uppercase;
}

/* Circular score display */
.bmwp-score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(#3498db 0deg, #3498db 0deg, #ecf0f1 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
}

.bmwp-score-circle::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: white;
    border-radius: 50%;
}

.bmwp-score-circle span {
    font-size: 2vw;
    font-weight: 700;
    color: var(--main-color);
    position: relative;
    z-index: 1;
    font-family: var(--main-font);
}

.bmwp-score-text {
    font-size: 0.8vw;
    color: var(--main-color);
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: var(--main-font);
}

.bmwp-score-breakdown {
    font-size: 1vw;
    color: var(--main-color);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Fade animations */
.bmwp-fade-out {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease;
}

.bmwp-fade-in {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

/* Landing Page Styles */
.bmwp-landing-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    background-image: url("../img/paper-bg.jpg");
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.bmwp-landing-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bmwp-landing-content {
    text-align: center;
    position: relative;
    padding: 60px 40px;
    max-width: 90%;
}

.bmwp-landing-title {
    font-family: var(--main-font);
    font-size: 4vw;
    color: var(--main-color);
    margin-bottom: 60px;
    line-height: 1.3;
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%230000FEFF' stroke-width='3' stroke-dasharray='6%2c 20' stroke-dashoffset='11' stroke-linecap='square'/%3e%3c/svg%3e");
    padding: 3%;
}

.bmwp-landing-title:before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-color: var(--main-color);
    border-radius: 50%;
    z-index: 1;
}

.bmwp-landing-title:after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: var(--main-color);
    border-radius: 50%;
    z-index: 1;
}

.bmwp-start-quiz-btn {
    border: 3px solid var(--main-color);
    border-radius: 8vw;
    padding: 3vw 6vw;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: var(--main-font);
    font-size: 2.5vw;
    box-shadow: 6px 10px 0px var(--main-color);
    background-color: white;
    color: var(--main-color);
    font-weight: bold;
}

.bmwp-start-quiz-btn:hover {
    background-color: var(--main-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 8px 12px 0px rgba(0, 0, 254, 0.7);
}

.bmwp-start-quiz-btn:active {
    transform: translateY(0);
    box-shadow: 3px 5px 0px var(--main-color);
}

/* Hide quiz content initially */
.bmwp-quiz-container.hidden {
    display: none;
}

/* Hide top progress bar initially */
.bmwp-top-progress.hidden {
    display: none;
}

img.bmwp-landing-image {
    max-height: 65vh;
}

/* Responsive design */
@media (max-width: 768px) {
    .bmwp-quiz-container {
        padding: 15px;
    }

    .bmwp-question-card {
        min-height: 350px;
        border-radius: 15px;
    }

    .bmwp-question-card::before,
    .bmwp-question-card::after {
        border-width: 30px;
    }

    .bmwp-question-content {
        padding: 50px 25px 30px;
    }

    .bmwp-question-content p {
        font-size: 1.3rem;
    }

    .bmwp-question-buttons {
        padding: 30px 25px;
        flex-direction: column;
        gap: 15px;
    }

    .bmwp-btn {
        width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
    }

    .bmwp-results-content {
        padding: 30px 20px;
    }

    .bmwp-quiz-results h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .bmwp-score-circle {
        width: 150px;
        height: 150px;
        margin-bottom: 25px;
    }

    .bmwp-score-circle span {
        font-size: 2rem;
    }

    .bmwp-score-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .bmwp-question-content {
        padding: 40px 20px 25px;
    }

    .bmwp-question-content p {
        font-size: 1.1rem;
    }

    .bmwp-question-card::before,
    .bmwp-question-card::after {
        border-width: 25px;
    }

    .bmwp-quiz-results h2 {
        font-size: 1.7rem;
    }

    .bmwp-score-circle {
        width: 120px;
        height: 120px;
    }

    .bmwp-score-circle span {
        font-size: 1.6rem;
    }

    .bmwp-score-text {
        font-size: 1.1rem;
    }

    .bmwp-score-breakdown {
        font-size: 1rem;
    }
}

/* Animation for quiz completion */
@keyframes bmwp-slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bmwp-quiz-results.show {
    animation: bmwp-slideIn 0.6s ease;
}

/* Animation for score circle */
@keyframes bmwp-scoreReveal {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.bmwp-score-circle.animate {
    animation: bmwp-scoreReveal 0.8s ease 0.3s both;
}
