

.icon {
    height:32px;
}

/* SUBJECT-CHOOSE */

.blur {
    filter: blur(5px);
    /* AQUI VA LO SKIBIDI D POINTER EVENTS */
    transition: all 0ms ;
}

.thin-text {
    font-family: 'Poppins', serif;
    font-size: 16px;
    font-weight: 100;
    color: var(--grey);
    letter-spacing: 1px;
}
.bold-text {
    margin-top: -0.5rem;
    font-family: 'Poppins', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--dark-text-col);
}
.header::after {
    content: '';
    display: block;
    width: 400px; /* Width of the line */
    height: 4px; /* Thickness */
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end)); /* Gradient line */
    margin: 13px auto 0; /* Centered below the text */
    border-radius: 2px; /* Slightly rounded edges */
  }
  
  /* Animation (Optional) */
  .header-section {
    animation: fadeInUp 1s ease-in-out; /* Smooth fade-in effect */
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
.main-container {
    justify-content: center;
    align-items: center;
    display: flex;
    height: fit-content;
    width: 100%;
    padding: 0px 20px;
    box-sizing: border-box;
}

/* USER PLAN */
.user-plan-text {
    font-size: 1rem;
    position: absolute;
    transform: translate(170px, -10px);
    font-weight: 400;
}
.user-plan-icon {
    position: absolute;
}   .user-plan-icon.free{
    width: 190px;
    height: 90px; /* height: 18%;  for other ones*/
    transform: translate(60px, -50px) rotate(-36deg); /* transform: translate(100px, -100px) rotate(-30deg); */
}   .user-plan-icon.premium {
    width: 60px;
    height: 54px;
    transform: translate(110px, -105px) rotate(30deg); 
}   .user-plan-icon.premium-2 {
    width: 80px;
    height: 72px;
    transform: translate(246px, 0px) rotate(30deg); 
    z-index: 2;
}   .user-plan-icon.premium-stamp {
    width: 170px;
    height: 153px;
    transform: translate(100px, -65px) rotate(58deg);
}   .user-plan-icon.premium-stamp-gold {
    width: 170px;
    height: 153px; 
    transform: translate(-250px, -75px) rotate(-42deg);
}   .user-plan-icon.hidden {
    display: none;
}

.box-container {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    margin: 2rem;
    padding: 1rem 0rem;
    width: min(1000px, 92vw);
    height: 105px;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vw, 80px);
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 8px var(--shadow-color);
    overflow: hidden;
}

.subjects-background-video {
    position: absolute;
    top: -100px;
    left: -350px;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind other content */
    transform: scale(0.45);
    opacity: 0.7;
}   .activities-background-video {
    position: absolute;
    top: -150px;
    left: -370px;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind other content */
    transform: scale(0.27);
    opacity: 0.5;
}
.background-video {
    filter: brightness(var(--video-filter-brightness));
    transition: filter 0.5s ease;
}
body.dark-mode .subjects-background-video,  body.dark-mode  .activities-background-video{
    opacity: 1;
}
body.dark-mode .background-video{
    filter: invert(0.8);
}

/* STUDENT ACTIVITIES */

.activities-container, .activities-expand {
    display: flex;
    position: relative;
    align-items: center;
    width: 1000px;
    border: 1px solid var(--color-gray-border);
    border-radius: 1rem;
    height: 300px;
    padding: 8px 5px;
    box-shadow: 0 4px 8px var(--shadow-color);
    box-sizing: border-box;
    margin-top: 1rem;
    overflow: hidden;
}   .activities {
    display: flex;
    position: relative;
    align-items: center;
    width: 100%;
    height: 100%;
}
.activities.recommended-section, .activities.homework-section {
    width: 100%;
    height: 100%;

    /* ✅ Hide scrollbar (cross-browser) */
    -ms-overflow-style: none;  /* IE & Edge */
    scrollbar-width: none;  /* Firefox */
}
.activities.recommended-section{
    /* ✅ Enable smooth scrolling */
    overflow-x: hidden;
    overflow-y: hidden;

}
.activities.homework-section {


    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}
.activities::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}



.homework, .recommended {
    display: flex;
    width: 100%;
    height: 100%;
}
.homework {
    flex-direction: column;
    transform: translateX(0px);
    transition: all 300ms ease;
    gap: 6px;
    overflow-y: scroll;
    scrollbar-gutter: auto; /* modern way to avoid layout jump */
}
.recommended {
    overflow-y: hidden;
    overflow-x: hidden;
}
/* Track (background) */


.homework-expand {
    position: relative;
    margin-right: -4px;
}
.activities-expand .homework-heading {
    position: absolute;
    width: 1300px;
    top: -80px;
    box-shadow: 0 4px 8px var(--shadow-color);
    z-index: 10;
    align-self: center;
}
.activities-expand {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    inset: 0;
    margin: auto;
    max-height: 500px;
    min-height: 500px;
    width: 1300px;
    top: 7rem;
    z-index: 2;
    pointer-events: all; 
    overflow: visible;
    background-color: var(--navbar-bg);
}
.activities-expand.hidden {
    display: none;
}

.main.blured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px); /* Adjust blur strength */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    z-index: 2;
    pointer-events: none;
}
.main.blured {
    pointer-events: none;
}

.close-icon.icon {
    position: absolute;
    right: -3rem;
    top: -68px;
    width: 26px;
    height: 26px;
}
.close-icon:hover {
    transform: scale(1.05);
}




.select-container {
    position: relative;
    height: 60px;
    width: 500px;
    justify-content: center;
    align-items: center;
}
.select {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}
.select::after{ 
    position: absolute;
    content: '';
    display: block;
    width: 160px; /* Width of the line */
    height: 4px; /* Thickness */
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end)); /* Gradient line */
    margin: 13px auto 0; /* Centered below the text */
    border-radius: 2px; /* Slightly rounded edges */
    bottom: 0px;
    transform: translateX(-125px);
    transition: all 600ms ease;
}
.select.underline-homework::after{
    width: 160px; /* Width of the line */
    transform: translateX(125px);
    transition: all 600ms ease;
}
  

.select-homework, .select-recommended {
    display: flex;
    padding: 1rem;
    font-size: 1.25rem;
    width: 170px;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    height: 60px;
    color: var(--dark-text-col)
}

.select-homework:hover, .select-recommended:hover {
    transform: scale(1.05);
}

.due-homework, .class-homework, .subject-homework {
    display: flex;
    flex: 2;
}
.due-homework {   /* the due date and the container of the due date is the same */
    justify-content: center;
}
.name-homework {
    display: flex;
    flex: 5;
    white-space: normal;
}
.homework-display {
    display: flex;
    width: auto;
    height: fit-content;
    max-height: 75px;
    padding: 0.75rem 1rem;
    margin-bottom: 0rem;
    background-color: var(--color-table-item);
    border-radius: 0.5rem;
    letter-spacing: 1px;
    color: var(--black);
    overflow: hidden;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px var(--shadow-color);
    flex-shrink: 0;  
    word-wrap: break-word;
}

.homework-piece:hover {
    background-color: var(--color-table-item-hover);;
    cursor: pointer;
}

.homework-heading {
    font-weight: 600;
    color: var(--white);
    background-color: var(--color-light-blue);
    font-size: 1rem;
    margin-top: 0rem;

}
.subject-homework {
    display: flex;
    gap: 10px;
}
.expand-homework.btn {
    position: absolute;
    height: fit-content;
    width: fit-content;
    padding: 0.85rem;
    top: 90px;
    right: -360px;
    border-radius: 0.5rem;
    background-color: var(--color-light-blue);
    color: var(--white);
    border: 1px solid transparent;
}
.expand-homework.btn:hover {
    background-color: var(--color-primary);
    transform: scale(1.05);
    transition: 200ms all ease-in-out;
}
.expand-homework.btn.hidden {
    display: none;
}

.recommended.hidden div, .homework.hidden div{
    display: none;
}
.recommended.hidden, .homework.hidden {
    flex: 0;
}   .recommended.hidden {
    transform: translateX(300px); 
}   .homework.hidden {
    transform: translateX(-300px);
}

.recommended.hidden .select-recommended, .homework.hidden .select-homework {
    display: flex;
}


/* RECOMMENDED DISPLAY */
.recommended {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-evenly;
    transform: translateX(0); /* Initial position */
    transition: transform 300ms ease; /* Transition the transform property */
}
.recommended-display {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid transparent;
    height: fit-content;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0.5rem -0.2rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    padding: 0.5rem;    
    flex-shrink: 0;      /* ✅ FIX: Prevent shrinking */
    width: 250px;

}
.recommended-subject {
    display: flex;
    flex-direction: column;
}
.recommended-img {
    width: 120px;
    height: 120px;
    border-radius: 20rem;
}
.recommended-topic {
    display: flex;
    text-align: center;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    white-space: normal;
    color: var(--black)
}
.recommended-display:hover {
    background-color: var(--color-gray-light);
    transition: 50ms all ease-in-out;
}
.recommended-img-math {
    width: 110px;
    height: 110px;
    margin-bottom: 0.5rem;
}
.maths {
    color: var(--yellow);
}
.biology {
    color: var(--green);
}
.chemistry {
    color: var(--orange);
}
.physics {
    color: var(--purple)
}





/* CLOSE */

.main.close {
    display: none;
}
.subject.close {
    display: none;
}
.vertical.close {
    opacity: 0;
}
/* CLASS CHOOSER */