.youtubePlayer{
    width: 400px;
    height: 300px;
}

@media (max-width: 1205px) {
.youtubePlayer {
    width: 800px; /* Adjust height for smaller screens */
}
}
@media (max-width: 1133px) {
.youtubePlayer {
    width: 750px; /* Adjust height for smaller screens */
}
}

@media (max-width: 1024px) {
.youtubePlayer {
    width: 700px; /* Adjust height for smaller screens */
}
}
@media (max-width: 989px) {
.youtubePlayer {
    width: 500px; /* Adjust height for smaller screens */
}
}

@media (max-width:733px) {
.youtubePlayer {
    width: 400px; /* Adjust height for smaller screens */
}
}

@media (max-width:576px) {
.youtubePlayer {
    width: 300px; /* Adjust height for smaller screens */
}
}

/* search bar starts */
#searchModal {
    position: fixed;
    z-index: 1050;
    left: 0; top: 0; width: 100vw; height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
#searchModal .modal-content {
    position: absolute;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0, 98, 255, 0.95); 
    display: flex;
    justify-content: center;
    align-items: center;
}
#searchModal .s004 {
    border-radius: 8px;
    padding: 32px 28px;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#closeSearchModal.search-close-btn {
    font-size: 2rem;
    background: rgba(0, 70, 255, 0.95); 
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 2;
}
@keyframes modalZoomIn {
0% {
    transform: scale(0.7);
    opacity: 0;
}
100% {
    transform: scale(1);
    opacity: 1;
}
}
#searchModal .modal-content {
    position: absolute;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0, 98, 255, 0.95); 
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
}
#searchModal.show .modal-content {
    animation: modalZoomIn 0.25s cubic-bezier(.4,2,.6,1) forwards;
}

/* search bar end */

table {
    width: 100%;
    border-collapse: collapse;
}
tr,li {
    text-align: left;
}
th, td {
    padding-left: 10px; 
    padding-right: 10px; 
}
.resource-row {
    display: none; /* Hide rows with the 'hidden' class */
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.education-resources {
    position: relative; /* Set the parent container to relative position */
}

.resource-title {
    display: inline-block; /* Display the title and button on the same line */
    margin-right: auto; /* Pushes the title to the left */
}

/*#showMoreButton {
    /*position: absolute; /* Position the button absolutely within the parent */
    /*top: 0; /* Align the button to the top */
    /*text-align: right; /* Align the button to the right */
/*}*/
.round {
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
}

.round:hover {
    background-color: #04AA6D;
    color: black;
}

.previous {
    background-color: #f1f1f1;
    color: black;
}

.next {
    background-color: #f1f1f1;
    color: black;
}

.round {
    border-radius: 50%;
}


/*form*/


/* Set a style for all buttons */
.LoginButton {
    background-color: #04AA6D;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

button:hover {
    opacity: 0.8;
}

/* Extra styles for the cancel button */
.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

/* Center the image and position the close button */
.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

img.avatar {
    width: 40%;
    border-radius: 50%;
}

.LoginContainer {
    padding: 16px;
}

span.psw {
    float: right;
    padding-top: 16px;
}




.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
from {-webkit-transform: scale(0)} 
to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
from {transform: scale(0)} 
to {transform: scale(1)}
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
span.psw {
    display: block;
    float: none;
}
.cancelbtn {
    width: 100%;
}
}

.dropdown {
    position: relative;
    display: inline-block;
}


.login-form {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
border: 1px solid #ccc;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
padding: 20px;
text-align: center;
z-index: 1000;
animation: growAndFadeIn 0.5s forwards;
opacity: 0; /* Start transparent for fade-in effect */
}

.account-types {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.account-type {
    display: flex;
    align-items: center;
    margin: 0 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.account-type img {
    width: 50px; /* Adjust the image size as needed */
    height: auto;
    margin: 0 10px; /* Space between text and image */
}

.account-type:hover {
    transform: scale(1.05);
}

@keyframes growAndFadeIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}


    
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: red; /* Change color on hover */
}

/* Close animation */
@keyframes shrinkAndFadeOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

.separator {
    width: 1px; /* Thickness of the line */
    height: 60px; /* Adjust height as needed */
    background-color: #ccc; /* Color of the line */
    margin: 0 20px; /* Space between the line and the account types */
}
@media screen and (max-width: 483px) {
#showMoreButton{
    font-size: 60%;
    width: 25%;
}
}

.image-scroll-container {
    overflow-x:hidden;         /* Enable horizontal scrolling */
    white-space: nowrap;      /* Prevent wrapping */
}

.row2 {
    display: flex;            /* Use flexbox for horizontal layout */
}

.resource-row{
    flex-wrap: flex;     
}
@media (max-width: 764px) {
    .image-scroll-container {
        overflow-x:auto;         /* Enable horizontal scrolling */
        white-space: nowrap;      /* Prevent wrapping */
    }

    .row2 {
        flex-wrap: nowrap;    /* Prevent wrapping in smaller screens */
    }
    .resource-row{
        flex-wrap: nowrap;    /* Prevent wrapping in smaller screens */
    }
}

:root{
    --card-w: clamp(260px, 55vw, 560px);
    --card-h: calc(var(--card-w) * 9 / 16);
    --radius: 12px;
    --shadow-main: 0 16px 48px #0008, 0 2px 12px #000a;
    --shadow-side: 0 10px 32px #0007, 0 2px 8px #0009;
    --easing: cubic-bezier(.22, .61, .36, 1);
    --dur: 560ms;
    --bg: #18181b;
    --fg: #fff;
}

.wrap{ max-width: min(1200px, 96vw); margin: 56px auto; padding: 0 12px; }
.title{ margin: 0 0 18px; font-weight: 700; letter-spacing: .2px; opacity: .9; }

.switcher{ position: relative; height: calc(var(--card-h) + 40px); display: grid; place-items: center; }
.stage{
    position: relative; width: var(--card-w); height: var(--card-h);
    perspective: 1400px; perspective-origin: 50% 50%; isolation: isolate;
}

.card{
    position: absolute; top: 50%; left: 50%;
    width: var(--card-w); height: var(--card-h);
    border-radius: var(--radius); overflow: hidden; background:#000;
    transform-style: preserve-3d; will-change: transform, filter, opacity;
    transition:
    transform var(--dur) var(--easing),
    filter var(--dur) var(--easing),
    opacity var(--dur) var(--easing),
    box-shadow var(--dur) var(--easing);
    box-shadow: var(--shadow-side); cursor: pointer;
}
.card .thumb, .card .player{
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border: 0; display: block;
}
.card .player{ opacity: 0; pointer-events: none; transition: opacity 220ms var(--easing); }
.card .thumb{ opacity: 1; transition: opacity 220ms var(--easing); }

.card[data-pos="0"]{ box-shadow: var(--shadow-main); }
.card[data-pos="0"] .player{ opacity: 1; pointer-events: auto; }
.card[data-pos="0"] .thumb{ opacity: 0; }

.card::after{
    content:""; position: absolute; inset: 0;
    background: radial-gradient(180% 100% at 50% 50%, #0000 40%, #0003 65%, #0007 100%);
    pointer-events: none; opacity: .0; transition: opacity var(--dur) var(--easing);
}
.card[data-pos="0"]::after{ opacity: .25; }

.card[data-pos="-1"]:hover,
.card[data-pos="1"]:hover{
    transform: translate(-50%, -50%) translateX(var(--tx)) translateZ(var(--tz)) rotateY(var(--ry)) scale(calc(var(--scale) + 0.04));
    box-shadow: 0 16px 48px #409eff55, var(--shadow-side);
    filter: brightness(1.02) saturate(1.02);
}
/* Preloader */
#preloader{
    position: fixed; inset: 0; z-index: 9999;
    display: grid; place-items: center;
    transition: opacity 420ms var(--easing), visibility 420ms var(--easing);
    background-color: #f0f0f0;
}
.spinner{
    width: 42px; /*height: 42px;*/ border-radius: 999px;
    border: 3px solid #ffffff2e; border-top-color: var(--bg);
    animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }