@import url("https://fonts.googleapis.com/css2?family=Lato:wght@700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --global-bg: rgb(21, 21, 41);
}
.flex {
  display: flex;
}
.invert {
  filter: invert(1);
}
* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  scroll-behavior: auto;
}
/* Prevent horizontal scrolling */
html, body {
  overflow-x: hidden;
  background-color:rgb(21, 21, 41); 
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: rgb(21, 21, 41); /* Match your site's dark background */
}

::-webkit-scrollbar-thumb {
  background-color:rgb(27, 33, 50);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(31, 38, 57); /* Slightly lighter on hover */
}

/* Firefox */
body {
  scrollbar-width: thin;
  scrollbar-color: rgb(27, 33, 50) rgb(21, 21, 41); /* thumb track */
}

.logo img {
  width: 94px;
}
.hamburger {
  display: none;
  justify-content: flex-start;
}
.close {
  display: none;
}
.name {
  display: none;
}
.container {
  display: flex;
  background-color: var(--global-bg);
}

.container .left {
  width: 20%;
  padding: 10px;
}
.header {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  /* margin: 10px; */
  align-items: center;
}
.left .logo {
  display: flex;
  height: 85px;
  /* border: 2px solid yellow; */
  justify-content: center;
  align-items: center;
}
.logo span {
  color: aqua;
  font-weight: bolder;
  font-size: 20px;
}
.left .home,
.left .Pyp,
.left .books,
.left .notes {
  display: flex;
  margin: 5px;
  color: #b9bfd0;
  height: 35px;
  border-radius: 13px;
  padding: 10px;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  font-size: large;
  cursor: pointer;
}
.left .home:hover,
.left .Pyp:hover,
.left .books:hover,
.left .notes:hover {
  background-color: rgb(39, 50, 70);
  /* transform: scale(1.05); POP effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.container .right {
  width: 80%;
  /* height: 100vh; */
  display: flex;
  /* border: 2px solid green; */
  /* margin: 60px 0 0 0; */
  flex-direction: column;
}

.hello {
  width: 100%;
  height: 8vh;
  /* border: 2px solid white; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: aliceblue;
  font-size: larger;
  font-weight: bolder;
}
.right .content {
  width: 100%;
  /* border: 2px solid aqua; */
  background-color: rgb(27, 33, 50);
  border-radius: 40px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  /* align-items: center; */
  overflow-y: auto;
  scroll-behavior: smooth;
}

.right .content::-webkit-scrollbar {
  display: none;
}

.pyq-section {
  margin: 50px;
  padding: 20px;
  /* background-color:rgb(34, 46, 63); dark background */
  border-radius: 12px;
}

.pyq-section h2 {
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
}

.pyq-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pyq-card {
  background-color: #2a2f45;
  color: white;
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 8px;
}

.pyq-card:hover {
  background-color: #394060;
  transform: scale(1.05); /* POP effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.sub-name {
  text-align: center;
}
.pyq-card svg {
  filter: invert(1);
}
.Books {
  margin: 20px 50px;
  padding: 20px;
  background-color: rgb(34, 46, 63);
  border-radius: 12px;
  overflow-y: auto;
  min-height: 315px;
}
.book-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.book-card img {
  width: 180px;
  height: 230px;
  cursor: pointer;
}
.book-header {
  display: flex;
  flex-direction: wrap;
  justify-content: space-between;
  align-items: center;
}

.viewBtn {
  /* padding: 5px 10px; */
  font-size: 18px;
  cursor: pointer;
  color: rgb(111, 187, 252);
  background-color: none;
  cursor: pointer;
  font-weight: bold;
}
.viewBtn:hover {
  transform: scale(1.05);
}
.Books h2 {
  color: white;
  margin-bottom: 20px;
}
.bookHeader {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}
.Books h3 {
  color: white;
  margin-bottom: 20px;
  font-weight: 100;
}
.book:hover {
  background-color: #394060;
  transform: scale(1.05); /* POP effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.subject-interface {
  height: 100vh;
  padding: 20px;
  margin: 20px;
}
.subject-interface h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.subject-interface p {
  font-size: 1.2rem;
}
.subject-interface button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: small;
}
.subject-interface button:hover {
  background-color: #0056b3;
}

.questions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.qcards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 15px;
}
.q-card {
  background-color: #2a2f45;
  color: white;
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 8px;
}
.q-card:hover {
  /* background-color: #394060; */
  background-color: aqua;
  color: black;
  transform: scale(1.05); /* POP effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}
.subject-interface h2,
p {
  color: #ffff;
}
/* Previous year paper interface. */
.pyp {
  margin: 50px;
  padding: 20px;
  background-color: rgb(34, 46, 63);
  border-radius: 12px;
  color: white;
  overflow-y: auto;
  min-height: 500px;
}
.pyp-header {
  display: flex;
  flex-direction: wrap;
  justify-content: space-between;
  align-items: center;
}
.pyp h2 {
  font-size: 24px;
  margin-top: 10px;
  margin-bottom: 20px;
  text-decoration: solid;
}

.sem {
  display: flex;
  justify-content: space-between;
}

.sem1,
.sem2 {
  width: 48%;
  padding: 10px;
}

.head h3 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: white;
}

.pyp-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.pyp-card {
  background-color: #2a2f45;
  color: white;
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  padding: 8px;
  text-align: center;
  overflow: hidden; /* hides the overflow */
  text-overflow: ellipsis; /* adds "..." when overflow occurs */
  max-width: 100%;
}

.pyp-card:hover {
  /* background-color: #394060; */
  background-color: aqua;
  color: black;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}
.viewBtn-pyp {
  font-size: 18px;
  cursor: pointer;
  color: rgb(111, 187, 252);
  background-color: none;
  cursor: pointer;
  font-weight: bold;
}
.viewBtn-pyp:hover {
  transform: scale(1.05);
}
.Notes {
  margin: 50px;
  padding: 20px;
  background-color: rgb(34, 46, 63);
  border-radius: 12px;
  color: white;
  overflow-y: auto;
  min-height: 500px;
}
.Notes .notesHeader {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}
.viewBtn-Notes {
  font-size: 18px;
  cursor: pointer;
  color: rgb(111, 187, 252);
  background-color: none;
  cursor: pointer;
  font-weight: bold;
}
.viewBtn-Notes:hover {
  transform: scale(1.05);
}
.Notes h2 {
  /* display: flex; */
  margin: 30px;

  /* flex-direction: column; */
}
.notesCards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 15px;
}
.notesCard {
  background-color: #2c324e;
  color: white;
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  padding: 8px;
  text-align: center;
  overflow: hidden; /* hides the overflow */
  text-overflow: ellipsis; /* adds "..." when overflow occurs */
  max-width: 100%;
  /* font-weight:400; */
}
.notesCard:hover {
  background-color: aqua;
  color: black;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.back-button {
  background-color: #007bff;
  color: #ffff;
  border: none;
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 5px;
}
.back-button:hover {
  background-color: #0056b3;
}
.footer {
  background-color: rgb(21, 21, 41);
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.8rem;
  margin-top: 40px;
  border-top: 1px solid #333;
}

.footer .footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer .description {
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer .credits strong {
  color: #fff;
}

@media (max-width: 1250px) {
  .left {
    background-color: var(--global-bg);
    position: absolute;
    left: -100%;
    transition: all -3s;
    z-index: 1;
    width: 385px;
    padding: 0;
  }
  .right .content {
    width: 122%;
  }
  .hello {
    width: 122%;
    height: 10vh;
    justify-content: space-between;
    padding: 10px;
  }
  .pyq-card {
    width: 110px;
    height: 80px;
  }
  .book-card img {
    width: 128px;
    height: 180px;
    cursor: pointer;
  }
  .Books {
    min-height: 290px;
  }
  .pyp {
    min-height: 400px;
  }
  .pyp h2 {
    font-size: 22px;
  }
  .pyp-card {
    background-color: #2a2f45;
    color: white;
    width: 140px;
    height: 90px;
  }
  .notesCard {
    width: 100px;
    height: 50px;
  }
  .notes .notesHeader {
    padding: 5px;
  }
  .hamburger {
    display: block;
  }
  .close {
    display: block;
  }
  .container .left {
    width: 30vw;
    padding: 10px;
  }
  .name {
    display: block;
    color: aqua;
    width: 80px;
  }
}
@media (max-width: 580px) {
  
  .left {
    background-color: var(--global-bg);
    position: absolute;
    left: -100%;
    transition: all -3s;
    z-index: 1;
    width: 45vw;
    padding: 10px;
  }
  .left .logo {
    display: flex;
    height: 75px;
  }
  .logo img {
    width: 80px;
  }
  .logo span {
    color: aqua;
    font-weight: bolder;
    font-size: 14px;
  }
  .container .left {
    width: 45vw;
    padding: 10px;
  }
  .right .content {
    height: auto;
    overflow-y: auto;
  }
  .hello {
    width: 122%;
    height: 10vh;
    font-size: medium;
    justify-content: space-between;
    padding: 10px;
  }
  .pyq-card {
    width: 95px;
    height: 75px;
    font-size: 14px;
  }
  .book-card img {
    width: 135px;
    height: 165px;
    cursor: pointer;
  }
  .Books {
    min-height: 290px;
    margin: 10px 25px;
  }
  .pyq-section {
    margin: 40px;
    padding: 30px;
    border-radius: 12px;
    }
  .pyp {
    margin: 25px;
    padding: 15px;
    min-height: 350px;
  }
  .pyp h2 {
    font-size: 20px;
  }
  .pyp-card {
    background-color: rgb(42, 47, 69);
    color: white;
    width: 120px;
    height: 78px;
  }
  .pyp-header {
    align-items: start;
    justify-content: space-between;
  }

  .viewBtn-pyp {
    font-size: 18px;
    font-weight: bolder;
  }
  .Notes {
    margin: 25px;
    padding: 15px;
    min-height: 400px;
  }
  .notesCard {
    width: 110px;
    height: 60px;
    font-size: 15px;
  }
  .notes .notesHeader {
    padding: 5px;
  }
  .hamburger {
    display: block;
  }
  .close {
    display: block;
  }
  .name {
    display: block;
    color: aqua;
    font-size: larger;
  }
  .book-header {
    display: flex;
    flex-direction: wrap;
    justify-content: space-between;
    align-items: start;
  }
  .back-button {
    padding: 5px 5px;
    font-size: 15px;
    }
  .subject-interface p {
    font-size: 1rem;
    margin: 10px;
  }
  .subject-interface h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .q-card {
    width: 100px;
    height: 50px;
    font-size: 15px;
  }
}

@media (max-width: 391px) {
  .pyq-section {
    margin: 22px;
    padding: 15px;
    border-radius: 12px;
    }
  .pyq-card {
    width: 100px;
    height: 50px;
    font-size: 15px;
  }
  .pyq-card {
    color: white;
    font-size: 15px;
    cursor: pointer;
    text-overflow: ellipsis;
  }
  .subject-interface {
    height: 100vh;
    padding: 15px;
    margin: 10px;
    }
  .q-card {
    width: 85px;
    height: 55px;
    font-size: 15px;
  }
  .Books {
    min-height: 290px;
    margin: 10px 15px;
  }
  .pyp {
    margin: 15px;
    padding: 14px;
    min-height: 350px;
  }
  .pyp-card {
    background-color: rgb(42, 47, 69);
    color: white;
    width: 112px;
    height: 74px;
    }
  .Notes {
    margin: 15px;
    padding: 14px;
    min-height: 400px;
  }
  .notesCard {
    width: 100px;
    height: 64px;
    font-size: 15px;
  }
  .book-card img {
    width: 120px;
    height: 165px;
    cursor: pointer;
    }
}