#main {
  width: 100%;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("../img/background1.jpg") center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  z-index: 9;
  padding: 80px 0 60px 0;
}

html,
body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
}

#content-wrap {
}


/*--------------------------------------------------------------
# logout area
--------------------------------------------------------------*/
.logout-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}


.logout-panel .small-btn {
    padding: 10px 18px !important;
    font-size: 17px !important;
    margin: 4px !important;
}

.logout-btn {
    background: rgba(37, 99, 235, 0.22)!important;
    border: 2px solid rgba(255, 255, 255, 0.9)!important;
}

.logout-btn:hover {
    background: rgba(37, 99, 235, 0.35)!important;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.38)!important;
}

.delete-btn {
    background: rgba(220, 38, 38, 0.13)!important;
    border: 2px solid rgba(255, 255, 255, 0.9)!important;
}

.delete-btn:hover {
    background: rgba(220, 38, 38, 0.35)!important;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.45)!important;
}

.logout-box {
    width: fit-content !important;
    min-height: auto !important;
    padding: 12px 16px !important;
    margin: 0 !important;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    background: rgba(36, 33, 33, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}



/*--------------------------------------------------------------
# faded back container
--------------------------------------------------------------*/
.back-container {
  position: relative;       
  width: 90%;               
  max-width: 1300px;   
  min-height: 300px;        
  margin: 0 auto;           
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 75px 20px;

  background: rgba(30, 28, 28, 0.66);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  margin-top: 45px
}





/*--------------------------------------------------------------
# video
--------------------------------------------------------------*/
.video-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 10px 0;
  flex-wrap: wrap;
}


.video-wrapper {
  background: #111111c7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(116, 62, 29, 0.4);
  max-width: 900px;
  width: 120%;
  min-height:650px; 

}


#videoFrame {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 10px;
}



.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}



/* Video description section */
.card-videoDescription {
  margin-top: 15px;
  font-size: 16px;
  color: #eee;
  background-color: #222;
  padding: 12px 18px;
  border-left: 5px solid #ffffffe7;
  border-radius: 8px;
  text-align: left;
  min-width: 880px;     

}

#prevBtn.btn, #nextBtn.btn {
  all: unset;
}
.nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;        
  height: 70px;
  font-size: 30px;      
  background-color: rgba(53, 51, 51, 0.8);
  border: 2px solid white;
  border-radius: 50%;   
  color: #ffffff;
  font-weight: bold;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}


.nav-button:hover {
  background: linear-gradient(
    to right,
    rgba(34, 121, 235, 0.41) 0%,   /* light purple with 50% opacity */
    rgba(255, 255, 255, 0.57) 51%, /* soft orange with 45% opacity */
    rgba(122, 115, 115, 0) 100%  /* pinkish-orange at the end with 40% opacity */
  );
  transform: scale(1.3);
  color: #1f4e66;
  border: none; 
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}





/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 0px 0 50px 0;
}

h1 {
    font-size: 65px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}
p {
    font-size: 20px;
    color: #ffffff;
}


.top-menu {
    text-align: center;
    padding-bottom: 28px;
}



/*--------------------------------------------------------------
# button section
--------------------------------------------------------------*/

.btn {
    display: inline-block;
    padding: 14px 26px;
    margin: 8px;
    font-size: 21px;
    font-weight: 500;
    color: white;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.32);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition: all 0.3s ease;
}


.btn:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    transform: translateY(-2px) scale(1.03);
}

.button-description {
    color: white;
    font-size: 18px;
    text-align: left;
    margin-bottom: 35px;
    line-height: 1.6;
}


.description-text,
.description-list {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    font-size: 20px;      /* was probably around 20 */
    font-weight: 500;     /* slightly bolder */
    color: #f8fafc;       /* soft white */
    line-height: 1.8;
}

.description-list {
    margin-top: 20px;
    padding-left: 25px;
    line-height: 1.8;
    font-size: 20px;      /* was probably around 20 */
    font-weight: 500;     /* slightly bolder */
    color: #f8fafc;       /* soft white */
    line-height: 1.8;
}


/* NPC dashboard section */
.npc-dashboard {
    margin-top: 40px;
    margin-bottom: 60px;
}




/*--------------------------------------------------------------
# NPC list section
--------------------------------------------------------------*/



/* transparent glass box */
.npc-card {
    background: rgba(255, 255, 255, 0);   /* transparent white */
    border: 2px solid white;                  /* white border */
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);               /* glass blur effect */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.npc-card-image {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 95px;
    height: 95px;
    object-fit: cover;

    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
}

.npc-card .npc-title {
    padding-right: 120px;
}

.npc-dashboard .btn {
    display: inline-block;
    padding: 14px 26px;
    margin: 8px;
    font-size: 17px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

/* title text */
.npc-title {
    font-size: 23px;
    font-weight: 550;
    margin-bottom: 25px;
    color: white;
    text-align: left;
}

/* action button row */
.actions {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* make links white */
.actions a {
    color: #dddddd !important;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
}

/* hover effect */
.actions a:hover {
    color: #dddddd !important;
    text-decoration: underline;
}

/* student text */
.student-list {
    margin-top: 20px;
    font-size: 20px;
    color: white;
    text-align: left;
}

/* strong label */
.student-list strong {
    color: white;
}



.student-list {
    color: #f08a16ea !important;
    margin-top: 10px;
}

.actions .btn {
    color: rgb(160, 44, 44);
}




/*--------------------------------------------------------------
# toggle button section
--------------------------------------------------------------*/

.npc-collapse-container {
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.toggle-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 24px;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
}

#toggleNpcBtn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.toggle-btn:hover {
    background: rgba(255,255,255,0.1);
}

.npc-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}


.npc-filter-box{
    width:100%;
    max-width:900px;
    margin:0 auto 26px auto;
    text-align:center;
}

.npc-filter-box input{
    width:550px;
    max-width:90%;
    height:52px;
    padding:0 20px;
    border:2px solid rgba(255,255,255,.35);
    border-radius:8px;
    background:rgba(255,255,255,.08);
    color:#ffffff;
    font-size:17px;
    font-weight:700;
    outline:none;
    box-sizing:border-box;
}

.npc-filter-box input::placeholder{
    color:rgba(255,255,255,.65);
}

.npc-filter-box input:focus{
    border-color:#ffffff;
    background:rgba(255,255,255,.12);
}

.npc-search-count{
    margin-top:10px;
    color:rgba(255,255,255,.75);
    font-size:14px;
    font-weight:700;
}

.npc-card.hidden-by-search{
    display:none !important;
}





/*--------------------------------------------------------------
# Shared Authentication CSS - learner and teacher login/registration
--------------------------------------------------------------*/

* {
    box-sizing: border-box;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
}

.auth-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.learner-auth-page {
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url("../img/background2.jpg") center center / cover no-repeat fixed;
}

.teacher-auth-page {
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url("../img/background1.jpg") center center / cover no-repeat fixed;
}

.auth-card {
    width: 100%;
    max-width: 540px;
    padding: 45px;
    color: #fff;
    background: rgba(30, 28, 28, 0.66);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-title {
    margin: 0 0 35px;
    color: #fff;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
}

.auth-group {
    margin-bottom: 20px;
}

.auth-group label {
    display: block;
    margin-bottom: 9px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.auth-group input,
.auth-group select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    color: #fff;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    outline: none;
    transition: 0.2s ease;
}

.auth-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-group input:focus,
.auth-group select:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.auth-help {
    min-height: 20px;
    margin-top: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.auth-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 13px 24px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: 0.3s ease;
}

.auth-button:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    transform: translateY(-2px) scale(1.02);
}

.auth-button-full {
    width: 100%;
}

.auth-status {
    min-height: 20px;
    margin-top: 18px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.auth-divider {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-footer {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 17px;
    line-height: 1.6;
}

.auth-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.auth-footer a:hover {
    opacity: 0.75;
}

@media (max-width: 600px) {
    .auth-page {
        padding: 25px 15px;
    }

    .auth-card {
        padding: 35px 24px;
    }

    .auth-title {
        font-size: 32px;
    }

    .auth-actions {
        flex-direction: column;
    }

    .auth-actions .auth-button {
        width: 100%;
    }
}