body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}
.name_place {
    display: flex;
    justify-self: center;
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.name_place:focus {
    outline: none;
    border-color: #15b300;
    box-shadow: 0 0 10px rgba(21, 179, 0, 0.3);
    background-color: #f0fff0;
}

.name_place::placeholder {
    color: #999;
    font-style: italic;
}
#start_btn{
    display: flex;
    justify-self: center;
    width: fit-content;
    padding: 12px;
    margin-top: 20px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    overflow: hidden;
}
#start_btn:hover{
     background: #15b300;
    transform:scale(1.02) translateY(-2px);
     box-shadow: 0 2px 8px rgba(208, 132, 0, 0.8);
     overflow: hidden;
}
.start_test{
    text-decoration: none;
    color: white;
}

#timer {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    border: 2px solid transparent;
    font-size: 30px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(7, 233, 18, 0.871);
    border-radius: 8px;
    background-color: #fff;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.question-block {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #1dc0dd;
    border-radius: 8px;
    background: #f7f7f7;
}
.question-block:hover{
    box-shadow: 0 8px 20px rgba(72, 9, 9, 0.7);
    z-index: 2;
}

.option {
    display: block;
    margin: 8px 0;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid black;
}

.option input {
    margin-right: 10px;
}

.option.correct {
    background: #d4edda;
    border-color: #28a745;
}

.option.wrong {
    background: #f8d7da;
    border-color: #dc3545;
}
.option:hover{
    transform: translate(5px);
    box-shadow: 0 2px 8px rgba(26, 10, 202, 0.8);
}
.option.selected {
    outline: 2px solid #ffa500;  
}
.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover {
    background: #15b300;
    transform:scale(1.05) translateY(-4px);
     box-shadow: 0 2px 8px rgba(208, 132, 0, 0.8);
}
.quiz-form.submitted .option,
.quiz-form.submitted .option input,
.quiz-form.submitted .option span {
    pointer-events: none !important;
    cursor: default !important;
}
.quiz-form.submitted .option:hover {
    background-color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}
.score-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.negative-marking-note {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
}

.score-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.score-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.stat-item.correct {
    border-left-color: #27ae60;
}

.stat-item.wrong {
    border-left-color: #e74c3c;
}

.stat-item.skipped {
    border-left-color: #f39c12;
}

.stat-item.final-score {
    border-left-color: #9b59b6;
    font-weight: bold;
}

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
}

.links , .go_back {
    margin-top: 25px;
    text-align: center;
}

.links a,.go_back {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.links a:hover, .go_back:hover {
    background: #78840f;
    transform:scale(1.02) translateY(-3px);
     box-shadow: 5px 2px 8px rgba(122, 10, 202, 0.8);
}
