.container-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: center;
    width: 100%;
    margin-top: 20px;
}
.card {
    background-color: #ffffff;
    margin-top: 5vh;
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: none;
}
.card img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid #ffffff;
}
.card h2 {
    color: #333333;
}
.card p {
    color: #666666;
}
.card, .quote {
    top: 10px;
    left: 10px;
    max-width: 70vh;
    max-height: 50vh;
    font-size: 24px;
    color: #ff6347;
}
.blue-card {
    background-color: #b7b7b7;
    color: #ffffff;
    transform: rotate(-10deg);
}
.blue-card .quote {
    color: #ffffff;
}
.blue-card img {
    border: 4px solid #4682b4;
}
.quote {
    color: #ffffff;
}
.black-card img {
    border: 4px solid #333333;
}
.header {
    text-align: center;
    margin-bottom: 20px;
    z-index: 1;
}
.header h1 {
    color: #333333;
    margin: 0;
}
.header p {
    color: #666666;
    font-size: 18px;
}
.card.active {
    display: block; 
}

.button-heighter{
    min-height: 15vh;
    min-width: 15vh;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10vh;
}



.tab-button {
    cursor: pointer;
    padding: 10px;
    margin: 5px 0;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.tab-button.active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.navbar{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.explain-red{
    color: red;
}

html, body {
    height: 100%;
    margin: 0;
}

.animated-text {
    position: relative;
    font-size: 24px;
    color: #333;
    text-align: center;
    display: inline-block;
}

.line-svg {
    width: 100%; 
    height: 20px; 
    left: 0;
}

.line-path {
    fill: none;
    stroke: red;
    stroke-width: 7;
    stroke-dasharray: 200; 
    stroke-dashoffset: 500; 
    animation: draw-curved-line 2s ease-in-out forwards;
}

@keyframes draw-curved-line {
    to {
        stroke-dashoffset: 0; 
    }
}

.font-twoem{ 
    font-size: 2em; 
}
.numerable-list{
    display: flex;
    flex-direction: column;
}

.numerable-list li{
    list-style-type: disc;
}

.numerable-list li::marker{
    color:red;
}

#righted{
    text-align: right;
    font-size: 3em;
}

.text-about{
    margin-top: 2vh;
    display: flex;
    flex-direction: column;
}

#highter{
    font-size: 2em;
}

.under-text-line {
    position: relative;
    display: inline-block;
}

.under-text-line::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    background: red; 
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-animation 3s forwards;
    z-index: -1;
}

@keyframes underline-animation {
    to {
        transform: scaleX(1);
    }
}

.button {
    background-color: var(--electric);
    font-family: Poppins, sans-serif;
    font-size: .8em;
    font-weight: 600;
    line-height: 1;
    transition: all .3s cubic-bezier(.215,.61,.355,1);
    display: flex;
    box-shadow: 0 5px #000;
}

.button.nav-button:hover {
    box-shadow: none;
    transform: none;
}

.button:hover {
    box-shadow: none;
    transform: translateY(5px);
}

.logo {
    display: flex;
    color: white;
    justify-content: center;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.animated-header {
    background: #dc3545;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 10px;
    min-width: 100%;
    min-height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.centr{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}
.answer-options {
    margin: 15px 0;
}

.option {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.option input[type="radio"] {
    display: none;
}

.option label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 40%;
    background-color: white;
}

.option input[type="radio"]:checked + label::before {
    border-color: red;
    background-color: red;
}

.option input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
}

.first-message{
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: right;
    max-width: 100vh;
}

.content-container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    min-height: 30vh;
}

.image-container{
    display: flex;
    justify-content: center;
    min-height: 40vh;
    min-width: 40vh;
    max-width: 40vh;
    max-height: 40vh;
}

#black-to-white{
    animation: white-text 3s forwards;
}

.font-welcome{
    font-size: 3.5em;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    align-content: center;
    z-index: 99;
}

@keyframes white-text{
    0% {
        color: black;
    }
    100%{
        color: white;
    }
}

a{
    color: white;
    text-decoration: none !important;
}

.handbookimg{
    max-width: 250px;
    max-height: 250px;
    margin-right: 7vh;
}

.navbar-brand {
    padding-left: 25px;
    text-align: center;
    min-height: 50px;
    min-width: 100px;
    align-content: center;
    font-size: 24px;
}

.container.im{
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    max-width: 100%;
}

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

.important {
    color: red;
    font-size: 15px;
}

.animated-main {
    flex: 1;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.animated-main.rev {
    text-align: right;
}

footer.animated-footer {
    text-align: center;
    min-height: 50px;
    width: 100%;
    background-color: #d1a2ff; /* Light gradient color */
    background-image: linear-gradient(135deg, #80DEEA 10%, #d1a2ff 100%);
    border-top: 1px solid #ccc;
    padding: 10px 0;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out;
    margin-top: auto;
}


ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

li {
    list-style: none;
}


.btn-select-course, .btn-select-task{
    min-width: 30vh;
    min-height: 50px;
    transition: all 0.3s cubic-bezier(.215,.61,.355,1);
    margin: 5px;
    color: white;
    background-color: red;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2vh;
    box-shadow: 0 5px #000;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

.btn-primary,
.btn-danger,
.btn-course {
    min-width: 120px;
    /* transition: all 0.3s cubic-bezier(.215,.61,.355,1); */
    margin: 5px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px #000;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}


.math-bg{
    background-image: url('../static/math.png');
    background-size: 650px; 
    background-position: bottom left; 
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

.joystick-bg{
    background-image: url('../static/joystick..png');
    background-size: 650px; 
    background-position: bottom right; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
}

.btn-primary {
    background-color: #ffffff;
    color: black;
    border-color: transparent;
}

.btn-primary:hover {
    background-color: #8e8e8e;
    box-shadow: none;
    border-color: transparent;
    /* transform: translateY(5px); */
}


.btn-primary:active {
    background-color: #ffffff;
    /* transform: scale(0.95); */
}

.btn-danger {
    background-color: red;
}

.btn-danger:hover, .btn-select-course:hover {
    box-shadow: none;
    z-index: 1;
    background-color: white;
    color: black;
    border-color: white;
    /* transform: translateY(5px); */
}

.btn-danger:active {
    background-color: #900;
    /* transform: scale(0.95); */
}

.flex-enum {
    display: flex;
    flex-direction: column;
}

.btn-course {
    background-color: #fa8669;
}

.btn-course:hover {
    background-color: #fc7351;
    box-shadow: none;
    /* transform: translateY(5px); */
}


video{
    max-height: 80vh;
    max-width: 80vh;
}

.flex-content {
    display: flex;
    flex: 1;
    width: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    max-width: 250px;
    padding: 10px;
    background-color: #f8f9fa;
    border-right: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 1;
    padding: 20px;
    z-index: 99;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-button {
    width: 100%;
    padding: 10px;
    background-color: #000000;
    color: white;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 5px;
}

.tab-button:hover {
    background-color: #141c25;
    transform: scale(1.05);
}

.tab-button.active {
    background-color: #2b2b2b;
    font-weight: bold;
    transform: scale(1.1);
}

.tab-content {
    display: none;
}

.impt{
    font-weight: 600;
}

aside p {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    color: #000000;
    margin-top: 10px;
    text-align: justify;
}

.navbar-toggler {
            background-color: transparent;
            border: none;
            cursor: pointer;
        }

        .navbar-toggler:focus {
            outline: none;
        }

        .navbar-toggler-icon {
            background-image: url('data:image/svg+xml,%3csvg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3e%3cpath stroke="rgba(0, 0, 0, 0.5)" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/%3e%3c/svg%3e');
            width: 40px;
            height: 40px;
            transition: transform 0.3s ease;
        }

        .navbar-toggler.collapsed .navbar-toggler-icon {
            transform: rotate(90deg);
        }

        .navbar-collapse {
            transition: height 0.3s ease;
            overflow: hidden;
        }

        .navbar-nav {
            flex-direction: row;
            text-align: center;
        }

        .navbar-nav .nav-item {
            margin-top: 10px;
        }

.profile-content{
    display: flex;
    font: 1.7em "Fira Sans", sans-serif;
    gap: 5vh;
}
.purchases{
    font-size: 2em;
}
.profile-info h1{
    font-size: 2em;
}

.profile-image{
    border-radius: 10px;
    border: 5px solid;
    border-color: red;
    max-width: 300px;
    max-height: 300px;
}

.payment-card {
            display: flex;
    justify-content: center;
            flex-direction: column;
            margin: auto;
            background-color: #ffffff;
            padding: 30px;
            border-radius: 10px;
            max-width: 500px;   
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        }
        .payment-card img {
            display: block;
    margin-left: auto;
    margin-right: auto;
            width: 100%;
            max-height: 250px;
            max-width: 250px;
            height: auto;
            border-radius: 10px 10px 0 0;
            margin-bottom: 20px;
        }
        .payment-method {
            margin-bottom: 20px;
        }
        .btn-submit {
            width: 100%;
            padding: 12px;
            background-color: #ff0000;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .btn-submit:hover {
            background-color: #b30000;
        }

.show-answers{
    display: flex;
    flex-direction: row;
}

.separator {
            width: 100%;
            height: 2px;
            background-color: #ccc;
            margin: 20px 0;
        }

.separator-min {
            width: 50%;
            height: 1px;
            background-color: #dddbdb;
            margin: 20px 0;
        }

.type-payment p{
    text-align: center;
}

.type-payment{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-content: center;
}

.form-check{
    display: flex;
    flex-direction: column;
    max-width: 500px;
    align-content: center;
    justify-content: center;
    text-align: center;
}

.form-check input{
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 150px;
    text-align: center;
}

.form-payment{
    display: flex;
    flex-direction: column;
    background-color: aqua;
}

aside {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    
}

.tasks{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

main {
    flex: 1;
    
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    
}

.task-image {
    margin: 20px 0;
    text-align: center;
}

.task-image img {
    max-width: 70%;
    max-height: 70%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.task-image img:hover {
    transform: scale(1.02);
}

.url-text{
    font-size: 25px;
    color: coral;
}

.video-view {
        max-width: 60%;
        height: auto;
    }

#fullpage {
  display: none;
  position: absolute;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: contain;
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-color: black;
}

/* Ensure videos scale properly */
.video-view {
    max-width: 100%;
    height: auto;
}

.results{
    display: flex;
    flex-direction: column;
}

.results-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    list-style-type: none;
}

.results-list li {
    margin-bottom: 10px;
}

.results-list li span {
    display: block;
}

.results-list li .correct {
    color: green;
}

.results-list li .incorrect {
    color: red;
}

.mobile-only {
        display: none;
    }

    .question-box {
        background: #ffffff;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .question-box:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

    .question-box h3 {
        color: #2c3e50;
        font-size: 1.2rem;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .question-text {
        font-size: 1.2em;
        line-height: 1.6;
        margin: 20px 0;
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 8px;
        white-space: pre-wrap;
    }

    .question-text p {
        margin-bottom: 1em;
    }

    .question-text strong {
        font-weight: 600;
        color: #2c3e50;
    }

    .question-text em {
        font-style: italic;
        color: #34495e;
    }

    .question-text code {
        background-color: #e9ecef;
        padding: 2px 4px;
        border-radius: 4px;
        font-family: monospace;
    }

    .question-text pre {
        background-color: #f1f3f5;
        padding: 15px;
        border-radius: 6px;
        overflow-x: auto;
        margin: 1em 0;
    }

    .question-text blockquote {
        border-left: 4px solid #dee2e6;
        margin: 1em 0;
        padding-left: 1em;
        color: #6c757d;
    }

    .answer-input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
        margin-bottom: 15px;
    }

    .answer-input:focus {
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        outline: none;
    }

    .submit-btn {
        background: #3498db;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 8px;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: block;
        margin: 20px auto;
        min-width: 200px;
    }

    .submit-btn:hover {
        background: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

    .results-summary {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 30px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .results-summary h2 {
        color: #2c3e50;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .results-summary p {
        color: #34495e;
        font-size: 1.2rem;
        font-weight: 500;
    }

    .correct {
        color: #27ae60;
        font-weight: 500;
        padding: 10px;
        background: rgba(39, 174, 96, 0.1);
        border-radius: 6px;
        margin-top: 10px;
    }

    .incorrect {
        color: #e74c3c;
        font-weight: 500;
        padding: 10px;
        background: rgba(231, 76, 60, 0.1);
        border-radius: 6px;
        margin-top: 10px;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .correct, .incorrect {
        animation: fadeIn 0.5s ease-out;
    }

    @media (max-width: 768px) {
        .question-box {
            padding: 15px;
        }

        .answer-input {
            padding: 10px;
        }

        .submit-btn {
            width: 100%;
            margin: 15px 0;
        }
    }

@media(min-width:1024px){
    li{
        text-align: left;
    }
}

@media(max-width: 1000px){
    .btn-primary{
        min-width: 70px;
    }
    .btn-course{
        min-width: 70px;
    }
}

@media (max-width: 650px) {
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    .sidebar{
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }
    .mobile-only {
        display: flex;
        display: block;
        justify-content: center;
    }
    .container-cards{
        flex-direction: column;
        justify-content: center;
    }
    .card{
        font-size: 1em;
    }
    .content-container{
        flex-direction: column;
    }

    .mobile-only img{
        max-width: 250px;
        max-height: 250px;
    }
    
    .math-bg{
        background-size: 0px;
    }
    .math-bg:hover{
        background-size: 0px;
    }
    
    .joystick-bg{
        background-size: 0px;
    }
    .joystick-bg:hover{
        background-size: 0px;
    }
    
    .flex-header {
        flex-direction: column;
        align-items: center;
    }
    .font-welcome{
        font-size: 3em;
    }
    .nav-item {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    .animated-main {
        padding: 10px;
    }

    footer.animated-footer {
        width: 100%;
    }
     .flex-task {
        flex-direction: column;
        align-items: center;
    }
    .task-image {
        max-width: 100%;
        height: auto;
    }
    .btn-primary{
        min-width: 100px;
    }
    .btn-course{
        min-width: 100px;
    }
    .flex-content{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .card{
        max-width: 37vh;
    }
    .email{
        font-size:15px;
    }
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.9;
    text-decoration: none;
}

.nav-list {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item .btn {
    color: white;
    background: transparent;
    border: 2px solid white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none !important;
}

.nav-item .btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.nav-item .btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.nav-item .btn-course {
    background: white;
    color: #dc3545;
}

.nav-item .btn-course:hover {
    background: transparent;
    color: white;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.burger-line {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .burger-menu {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #dc3545;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        right: 0;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item .btn {
        width: 100%;
        text-align: center;
    }

    .burger-menu.active .burger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
}

.logo-mobile {
    display: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
    justify-content: center;
}

.close-icon {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.close-menu:hover .close-icon {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .close-menu {
        display: block;
    }
    .logo-mobile {
        display: flex;
    }
}

.registration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    background: #f8f9fa;
}

.registration-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
}

.registration-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.login-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.login-form .form-group {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

.login-form .form-group:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.registration-header {
    text-align: center;
    margin-bottom: 2rem;
    grid-column: 1 / -1;
}

.registration-header h1 {
    color: #dc3545;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.registration-header p {
    color: #666;
    font-size: 1rem;
}

.registration-form .form-group {
    margin-bottom: 1.5rem;
}

.registration-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.registration-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.registration-form .form-control:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.registration-form .form-text {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
    text-align: center;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    color: #333;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #dc3545;
    background-color: #dc3545;
}

.terms-link {
    color: #dc3545;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.btn-register {
    width: 300px;
    padding: 0.75rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-content: center;
    text-align: center;
}

.btn-register:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-register:active {
    transform: translateY(0);
}

.registration-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    grid-column: 1 / -1;
}

.registration-footer p {
    color: #666;
    margin: 0;
}

.login-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-danger p {
    margin: 0;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .registration-card {
        max-width: 500px;
    }
    
    .registration-form,
    .login-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .registration-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .registration-header h1 {
        font-size: 1.75rem;
    }
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.form-actions .custom-control {
    text-align: center;
}

.form-actions .btn-register {
    width: 300px;
}

.terms-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.terms-container .custom-control {
    text-align: center;
}

.submit-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.submit-container .btn-register {
    width: 300px;
}

.btn-select-task {
    min-width: 30vh;
    min-height: 50px;
    transition: all 0.3s cubic-bezier(.215,.61,.355,1);
    margin: 5px;
    color: white;
    background-color: red;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2vh;
    box-shadow: 0 5px #000;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-select-task:hover {
    box-shadow: none;
    transform: translateY(5px);
}

.btn-select-task:disabled,
.btn-select-task[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-select-task:disabled:hover,
.btn-select-task[disabled]:hover {
    box-shadow: none;
    transform: none;
}

.theory-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.theory-section .question-box {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    margin-bottom: 30px;
}

.theory-section .question-text {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
}

.theory-section .submit-btn {
    background-color: #28a745;
    margin-top: 30px;
}

.theory-section .submit-btn:hover {
    background-color: #218838;
}

.image-option {
    margin: 10px 0;
}

.image-option input[type="radio"] {
    display: none;
}

.image-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.image-option label:hover {
    border-color: #ff0000;
}

.image-option input[type="radio"]:checked + label {
    border-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
}

.option-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 10px;
}

.option-text {
    text-align: center;
    font-size: 14px;
    color: #333;
}

.text-option {
    margin: 5px 0;
}

.text-option input[type="radio"] {
    display: none;
}

.text-option label {
    display: block;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-option label:hover {
    border-color: #ff0000;
}

.text-option input[type="radio"]:checked + label {
    border-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.1);
}

video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    video {
        width: 100%;
        max-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    video {
        max-height: 250px;
    }
}

/* Стили для контейнера с видео */
.task-video-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

/* Стили для контролов видео */
video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
}

video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
}

.task-file {
    margin: 15px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 2px solid #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.task-file::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%);
}

.task-file h4 {
    margin: 0 0 15px 0;
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.file-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    border: 2px solid #dc3545;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.file-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.file-link:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.4);
    border-color: #c82333;
}

.file-link:hover::before {
    left: 100%;
}

.file-link:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    background: linear-gradient(135deg, #bd2130 0%, #a71e2a 100%);
}

.file-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3), 0 4px 8px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .task-file {
        margin: 10px 0;
        padding: 15px;
    }
    
    .task-file h4 {
        font-size: 16px;
    }
    
    .file-link {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 180px;
    }
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    overflow: hidden;
}

.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.modal-content img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220, 53, 69, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid #ffffff;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-modal:hover {
    color: #ffffff;
    background-color: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.close-modal:active {
    transform: scale(0.95);
}

.close-modal:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 10px;
    }
    
    .modal-content img {
        max-width: 100%;
        max-height: 90%;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .clickable-image:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .modal-content img {
        max-height: 85%;
    }
    
    .close-modal {
        top: 5px;
        right: 10px;
        font-size: 25px;
        width: 35px;
        height: 35px;
    }
}

.task-image {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.task-image img {
    max-width: 70%;
    max-height: 70%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.clickable-image::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.clickable-image:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .task-image img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .clickable-image::after {
        font-size: 10px;
        padding: 3px 6px;
    }
}
