

.icon {
    height:32px;
}

/* SUBJECT-CHOOSE */

.main {
    background-color: #f8f9fa;
    display: flex;
    height: 90vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    transition: all 0ms ;
}
.blur {
    filter: blur(5px);
    /* AQUI VA LO SKIBIDI D POINTER EVENTS */
    transition: all 0ms ;
}


.header {
    margin-top: 1rem;
    text-align: center;
}

.thin-text {
    font-family: 'Poppins', serif;
    font-size: 16px;
    font-weight: 100;
    color: #6c757d;
    letter-spacing: 1px;
}
.bold-text {
    margin-top: -0.5rem;
    font-family: 'Poppins', serif;
    font-size: 2em;
    font-weight: 600;
    color:#1d3557;
}
.header::after {
    content: '';
    display: block;
    width: 400px; /* Width of the line */
    height: 4px; /* Thickness */
    background: linear-gradient(135deg, #457b9d, #1d3557); /* 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: 70%;
}
.main-container-student {
    align-items: start;
    margin-top: 3rem;
    height: 200px;
}

/* 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;
    gap: 1.5rem;
    margin: 2rem;
    padding: 1rem 0rem;
    width: 600px;
    height: 200px;
    justify-content: center;
    align-items: center;
    bottom: 3rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button-box {
    background-color: #073F8C; /* Elegant muted blue */
    color: #f1faee;
    text-align: center;
    padding: 15px 10px;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 0.75rem; /* Rounded edges */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    cursor: pointer;
    transition: all 300ms ease-in-out;
    width: 150px;
}
  
  .button-box:hover {
    background-color: #a8dadc; /* Lighter blue */
    color: #1d3557;
    transform: scale(1.05);
}

/* STUDENT ACTIVITIES */

.activities, .activities-expand {
    display: flex;
    position: relative;
    align-items: center;
    width: 1000px;
    border: 1px solid black;
    border-radius: 1rem;
    background-color: #f0f0f0;
    border-color: #D1D5DB;
    height: fit-content;
    padding: 8px 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin: 1rem  0rem;
}
.activities.recommended-section{
    /* ✅ Enable smooth scrolling */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    white-space: nowrap; /* Prevent wrapping */

    /* ✅ Hide scrollbar (cross-browser) */
    -ms-overflow-style: none;  /* IE & Edge */
    scrollbar-width: none;  /* Firefox */

    height: 325px;
}
.activities.homework-section {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    white-space: nowrap; /* Prevent wrapping */

    /* ✅ Hide scrollbar (cross-browser) */
    -ms-overflow-style: none;  /* IE & Edge */
    scrollbar-width: none;  /* Firefox */

    height: 325px;
}
.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;
}

.homework-expand {
    position: relative;
    
}
.homework-expand .homework-heading {
    position: absolute;
    width: 1290px;
    top: -80px;
    left: -4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.activities-expand {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: start;
    inset: 0;
    margin: auto;
    max-height: 500px;
    min-height: 500px;
    width: 1300px;
    top: 7rem;
    z-index: 2;
    pointer-events: all; 
}
.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: 1;
    pointer-events: none;
}
.main.blured {
    pointer-events: none;
}

.close-icon {
    position: absolute;
    right: -3rem;
    top: -3.55rem;
    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, #457b9d, #1d3557); /* 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;
}

.select-homework:hover, .select-recommended:hover {
    transform: scale(1.05);
}

.due-homework, .teacher-homework, .subject-homework {
    flex: 1;
}
.name-homework {
    flex: 3;
    white-space: normal;
}
.homework-display {
    display: flex;
    border: 1px solid black;
    width: auto;
    height: fit-content;
    max-height: 75px;
    padding: 1rem;
    margin: 0.5rem;
    margin-bottom: 0rem;
    justify-content: space-between;
    gap: 0.5rem;
    border-color: #D1D5DB;
    background-color: #CCE1FF;
    border-radius: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    color: #333333;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;  
}

.homework-piece:hover {
    background-color: #AACDFF;
}

.homework-heading {
    font-weight: 600;
    color: white;
    background-color: #306CBF;
    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: #306CBF;
    color: white;
    border: 1px solid transparent;
}
.expand-homework.btn:hover {
    background-color: #2C63B0;
    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;
    justify-content: space-evenly;
    position: relative;
    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;
    width: 235px;
    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 */

}
.recommended-subject {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}
.recommended-img {
    width: 120px;
    height: 120px;
    border-radius: 20rem;
}
.recommended-topic {
    margin-bottom: 1rem;
    white-space: normal;
}
.recommended-display:hover {
    background-color: white;
    transition: 50ms all ease-in-out;
}
.recommended-img-math {
    width: 110px;
    height: 110px;
    margin-bottom: 0.5rem;
}
.maths {
    color: #DBBF1D;
}
.biology {
    color: green;
}
.chemistry {
    color: orange;
}
.physics {
    color: purple
}





/* CLOSE */

.main.close {
    display: none;
}
.subject.close {
    display: none;
}
.vertical.close {
    opacity: 0;
}
/* CLASS CHOOSER */

.options-display {
    display: flex;
    align-items: flex-start; /* Prevent stretching */
    flex-direction: column;
    align-items: center;
}
.homework-settings {
    display: flex;
    max-height: 0;
    overflow: hidden;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
}
.homework-settings.open {
    max-height: 1000000px;
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    height: auto;
    overflow: visible;
}
.class-display {
    display: flex;
    flex-direction: column;
    height: fit-content;
    margin: 2rem 1rem;
    border: 0px solid #007BFF; /* Blue border around the topic list */
    border-radius: 1.5rem; /* Rounded corners */
    padding: 20px;
    background-color: white; /* Light gray background for contrast */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    align-items: center;
    padding: 1rem 2rem;
}
.class-display.close {
    display: none;
}
.class-intro {
    color: #6c757d;
    font-size: 1rem;
    display: flex;
}
.open-class {
    display: flex;
    border: 1px solid black;
    border-radius: 1.2rem;
    align-items: center;
    background-color: #ffffff;
    margin-top: 1rem;
    width: 400px;
    height: 2.65rem;
    position: relative;
    padding: 1rem 2rem;
    justify-content: space-between;
    transition: all 300ms ease-in-out;
}
.open-class.open {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.choose-class {
    max-height: 0px;
    overflow: hidden;
    transition: all 300ms ease;
    height: auto;
    margin-bottom: 1rem;
    width: 100%;
}
.choose-class.open {
    display: flex;
    max-height: 400px;
    flex-direction: column;
    transition: all 300ms ease-in-out;
    height: fit-content;
    margin-bottom: 0rem;
}
.years {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.year {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 3px 3rem;
    justify-content: space-between;
    border: 1px solid black;
}
.year.open {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.class-arrow.rotate {
    transform: rotate(-180deg);
}
.last-year{
    margin-bottom: 0px;
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
}
/* CLASSES */

.classes{
    max-height: 0px;
    overflow: hidden;
}
.classes.open {
    max-height: 230px;
}
.class {
    border: 1px solid black;
    margin-top: -1px;
    padding: 0.5rem
}
.last-class {
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
}
.class:hover {
    background-color: #F0F0F0;
    transition: 50ms all ease-in-out;
}
.arrow-class.rotate {
    transform: rotate(-180deg);
}

.btn-create-paper.confirm-class.btn-2 {
    margin-top: 1rem;
}

.btn-create-paper.confirm-class.btn-2.close {
    display: none;
}

/*

Homework code section

*/

.schoolUserCodeContainer {
    width: 50%;
    padding: 20px;

    margin-top: 20px;
    margin-bottom: 20px;

    transform: translate(50%, 0);

}

.password-container h5 {
    font-size: 1.1rem;
}

.password-container h5 b{
    font-size: 1.4rem;
}

/* DROP DOWN */

.dropdown {
    display: flex;
    justify-content: center;
}

.dropdown-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: fit-content;
    border: 1px solid transparent;
    background-color: white;
    border-radius: 2rem;
    padding: 20px;
    padding-top: 0px;
    top: 130px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.dropdown-container.hidden {
    display: none;
}
.plan-info {
    display: flex;

}

.dropdown-button {
    background-color: #fbbf24;
    color: white;
    font-weight: bold;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown-button:hover {
    background-color: #f59e0b;
}

.dropdown-content {
    width: 300px;
    margin-top: 5px;
    padding: 10px;
}

.dropdown-box {
    padding: 10px;
    text-align: center;
}

.dropdown-box h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.dropdown-box ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    text-align: left;
}

.dropdown-box li {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 5px 0;
    color: #555;
}

.checkmark {
    color: green;
    font-weight: bold;
    margin-right: 8px;
}

.crossmark {
    color: red;
    font-weight: bold;
    margin-right: 8px;
}

.upgrade-btn {
    width: 100%;
    text-decoration: none;
}

.dropdown-close {
    transform: translate(-55px, 85px);
}

/* Hide dropdown by default */
