body {
    height: 100%;
    min-height: 100vh;
}

.learn {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.learn .image {
    width: 100%;
    border-radius: 10px;
    height: 200px;
    object-fit: cover;
}
.leavels-container {
    gap: 20px;
    display: flex;
}

.leavels-container .level {
    margin-top: 10px;
    padding: 15px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(221, 221, 221);
    border-image: initial;
    border-radius: 8px;
    background: white;
    transition: 0.2s;
    color: black !important;
}
.line {
    width: 2px;
    height: 100%;
    background-color: #ebebeb;
}

#quiz-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 10px;

    padding: 30px;
    position: relative;
}

.screen {
    display: none;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}
.screen h1 {
    font-size: 32px;
}
.screen p {
    text-align: start;
}
.screen .btn {
    border-radius: 9999px;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

/* Timer styles */
.timer-container {
    margin-bottom: 20px;
}

#timer-bar {
    height: 10px;
    background: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

#timer-progress {
    height: 100%;
    width: 100%;
    background: #00c851;
    transition: width 1s linear;
}

#timer-text {
    text-align: right;
    font-weight: bold;
    color: #333;
}

/* Quiz styles */
.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.question {
    font-size: 1.3em;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover {
    border-color: var(--secondary-color);
}

.option.correct {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.option.incorrect {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.option:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.feedback.contaniner {
    padding: 15px;
}
.feedback {
    margin: 20px 0;
    border-radius: 8px;
}

.feedback.correct {
    background: #e8f5e9;
    color: var(--success);
}

.feedback.incorrect {
    background: #ffebee;
    color: #c62828;
}

.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Results styles */
.stats {
    margin: 30px 0;
}

.stats div {
    margin: 10px 0;
    font-size: 1.1em;
}

.stats span {
    font-weight: bold;
}

/* Header Styles */

.header {
    max-width: 560px;
    width: fit-content;
    display: flex;
    gap: 5px;
    background-color: #fbfbfb;
    border-radius: 15px;
    padding: 5px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.header .header-item {
    padding: 10px 20px;
    background-color: #ebebeb;
    border-radius: 10px;
}
.header .line {
    height: 15px;
    width: 1px;
    background: #ddd;
}

.time-option {
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-option:hover {
    background: #f0f0f0;
}

.time-option.active {
    background: var(--secondary-color);
    color: white;
}

/* Quiz Content Layout */
.quiz-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.timer-container {
    width: 100%;
    margin-bottom: 10px;
}

.quiz-body {
    padding: 0 20px;
}

/*

----------------------|
user profile


*/
.profile-editor-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #fbfbfb;
    border-radius: 8px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10%;
    width: 10%;
    border-radius: 50%;
    font-size: 50px;
}

.profile-field {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.profile-field:last-child {
    border-bottom: none;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.edit-icon {
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.edit-icon:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.edit-mode {
    margin-top: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/*
questions page */

.questions-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}
.questions-container input[type="radio"] {
    display: none;
}

.questions-container input[type="radio"]:checked + label {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}
.questions-container label {
    margin-top: 10px;
    padding: 15px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(221, 221, 221);
    border-image: initial;
    border-radius: 8px;
    background: white;
    transition: 0.2s;
}
.questions-container label:hover {
    border-color: var(--secondary-color);
}
.questions-container .image {
    width: 100%;
    max-width: 350px;
    height: 150px;
    object-fit: contain;
}
.questions-container .btn {
    background-color: rgb(115, 187, 179) !important;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.answer.correct {
    margin-top: 10px;
    padding: 15px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(143, 247, 46);
    border-image: initial;
    border-radius: 8px;
    background: white;
    transition: 0.2s;
}
.answer {
    margin-top: 10px;
    padding: 15px;
    border-width: 2px;
    border-style: solid;
    border-image: initial;
    border-radius: 8px;
    background: white;
    transition: 0.2s;
}
.correct {
    border-color: rgb(143, 247, 46);
}
.not-correct {
    border-color: rgb(236, 57, 25);
}
/* Learn offence container */
/* Container for the whole offence UI */

.learn-offence {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 30px;
    padding: 0 20px;

    width: 100%;
}

/* Offence List */
.learn-offence .list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.learn-offence .input-group {
    width: 90%;
}

/* Offence Card Base */
.offence-card {
    background-color: #f4f4f4;
    padding: 12px 16px;
    border-left: 5px solid #999;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Hover effect */
.offence-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Offence Content Wrapper */
.offence-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Level Badge */
.level {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    font-weight: bold;
    padding: 4px 0;
    border-radius: 3px;
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Details Text */
.details {
    flex-grow: 1;
    font-size: 0.95rem;
    color: #333;
    text-align: left;
    word-break: break-word;
    padding-left: 8px;
}

/* --- Custom Categories --- */

/* First (Low - Green) */
.offence-card.first {
    background-color: #e6fef4;
    border-left-color: #10b981;
}
.offence-card.first .level {
    background-color: #10b981;
}

/* Second (Medium - Yellow) */
.offence-card.second {
    background-color: #fff9db;
    border-left-color: #facc15;
}
.offence-card.second .level {
    background-color: #facc15;
}

/* Third (High - Red) */
.offence-card.third {
    background-color: #ffe4e6;
    border-left-color: #fb7185;
}
.offence-card.third .level {
    background-color: #fb7185;
}

/* Default (Grey - Unknown or Others) */
.offence-card.default {
    background-color: #f4f4f4;
    border-left-color: #999;
}
.offence-card.default .level {
    background-color: #666;
}

.profile-editor-container .btn {
    width: 100%;
    color: white;
}
