html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
} 
/*The code above is a CSS Reset block, for removing all default the margins and padding that makes the website look hella ugly, in practical use just use the code below to fix it, as you cant remember everything here
---------------------------------------------------------
  html, body {
  margin: 0;
	padding: 0;
}
----------------------------------------------------------
*/

html, body{
  overflow-x: hidden;
}

body{
 background: rgb(237,237,237);
background: linear-gradient(90deg, rgba(237,237,237,1) 0%, rgba(255,255,255,1) 100%); 
}

.navbar {
  z-index:1000;
  width: 60%;
  position: absolute;
  background-color: red;
  list-style-type: none;
  padding: 0px;
  margin: 0;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.navbar a{
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 25px;
  display: block;
  text-align: center;
  transition: all 0.5s ease;
}

.navbar a:hover{  
  background-color: hsl(0, 51%, 35%);
}

.navbar li{
  float: left;
} 

.section{
  background-color: red;
  width: 100vw;
  height:70vh;
  margin: 0;
}

.right-image{
  height: 100%;
  float: right;
}

.section2{
  width:100%;
  height:13vh;
  margin:0;
  background-repeat: no-repeat;
}

.section3{
  width:100%;
  height:100vh;
  margin:0;
  background-repeat: no-repeat;
}

.section4{
  width:100%;
  height:190vh;
  margin:0;
  background-repeat: no-repeat;
}

.section5{
  width:100%;
  height:120vh;
  margin:0;
  background-repeat: no-repeat;
}

#thinline{
  border-width: 0.1px;
}

#big{
align-items: center;  
text-align: center;
margin-top: 50px;
height: 5vh;
color: black;
}

#big2{
  align-items: center;  
  text-align: center;
  height: 5vh;
  color: black;
  margin: 0 0 50px;
  font-size: 20px;
}

#big3{
  align-items: center;  
  text-align: center;
  height: 5vh;
  color: gray;
  margin: 10px 0 20px;
  font-size: 20px;
  font-family:"montserrat", sans-serif;
}
#qe-container {
  position: absolute;
  align-items: center;
  justify-content: center;
  margin-left: 250px;
  width: 500px;
}

#qeimage{
  margin-top:150px;
  width:400px;
}

#qedesc{
  font-family: arial, sans-serif;
  margin-top: -65px;
  color: white;
}

.poppins-semibold {
  font-family: "poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.almarai-light {
  font-family: "almarai", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.almarai-regular {
  font-family: "almarai", sans-serif;
  font-weight: 400;
  font-size: 30px;
  font-style: normal;
}

.almarai-bold {
  font-family: "almarai", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.almarai-extrabold {
  font-family: "almarai", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.montserrat-<uniquifier> {
  font-family: "montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.featured{
  text-align: center;
  padding-top: 25px;
  font-family: "almarai", sans-serif;
  font-weight: 550;
  font-size: 50px;
  height: 7vh;
}

.featured-description{
  text-align: center;
  font-family: "almarai", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
}

.container {
  width:100%;
  display: flex;
  overflow: hidden;
}

.container.a{
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
}

.container2{
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.card-wrap{
  width:100%;
  justify-content: center;
  align-items: center;

}

.card-wrap.c{
  margin: 0 0 0 100px;

}
.card-item{
  width:300px;
  height:400px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 10px;
  overflow:hidden;
  transition: all 0.3s ease;
}

.card-wrap.a{
max-width: 1205px;
}

.card-item.a {
  position:relative;
  width:570px;
  height:450px;
  background: #fff;
  border-radius: 10px;
flex-direction: row;
  margin: 10px;
  overflow:hidden;
  flex-shrink:0;
  transition: all 0.3s ease;
  align-items: flex-end; 
}

.card-item.a:hover{
    transform: translateY(0);
}

.overlay {
    position: absolute;
    flex-direction:column;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start; /* Aligns content to the bottom */
}

.card-item.a:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

.card-item.a:hover .overlay-text {
    opacity: 1; /* Darken the image slightly */
}

.card-item.a:hover .overlay-description{
  opacity : 1;
}

.overlay-text {
    color: #fff;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 0 0 10px;
    font-family:"Montserrat",serif;
    font-size: 25px;
    font-weight:700;
  }

.overlay-description{
    color: #fff;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 0 0 10px;
    font-family:"Montserrat",serif;
    font-size: 11px;
    max-width: 100%
}

.card-about{
  margin: 10px 0 40px 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  text-align: center;
  max-width: 90%;
}

.card-about strong{
  font-weight: 600;
}

.card-list{
    width:100%;
    display: flex; /* Display list items in a row */
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 0 50px;
    align-items: left;
    list-style: none; /* Remove default list styles */
    gap: 10px; /* Space between items */
}

.card-list.a {
    display: flex;/* Display list items in a row */
    flex-wrap:wrap;
    padding: 0;
    list-style: none; /* Remove default list styles */
    overflow-x: auto; /* Add horizontal scrolling if needed */
    gap: 10px; /* Space between items */
}

.card-list .card-link .description{
  text-align: center;
  margin-bottom:9px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
}

.card-item:hover{
  transform: translateY(-3px);
  box-shadow: 0px 0px 2px rgb(49,0,255);
  color: #3100ff;

}

.card-list .card-link .badge{
color: #5372f0;
background:#dde4ff;
padding: 3px 5px;
font-size: 9px;
font-weight: 500px;
margin: 0 0 2px 120px;
width:70px;
text-align: center;
border-radius: 3px;
font-family: "Poppins", sans-serif;
}

.card-list .card-link .badge.lgtcs{
color: #db12c0;
background: #f7dff5;
}

.card-list .card-link .badge.history{
color: #b25a2b;
background: #ffe3d2;
}

.card-list .card-link .badge.cs{
color: #205c20;
background: #d6f8d6;;
}

.card-list .card-link .badge.math{
  color: #f06b53;
  background:#dde4ff;
  }

.card-list .card-link .badge.science{
  color: #178975;
  background:#e2e3e8;
}
      

.card-list .card-item .card-link {
  text-decoration: none;
  color: black;
  display: block;
  width: 100%;
}

.card-list .card-link .card-image {
  width: 100%;
  height:300px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.card-list .card-link .card-image.a {
  object-fit: contain;
  border-bottom: 1px solid #ddd;
}

.card-list .card-link .card-title {
  font-family: "almarai", sans-serif;
  font-weight: 700;
  font-size: 30px;
  padding-top: 0px;
  text-align: center;
}

.allbooks{
  text-decoration:none;
  display: block;
  text-align:center;
  color: gray;
  justify-content: center;
  align-items: center;
  margin: 30px 0 0 80px;
  width:100%;
  font-size: 20px;
  font-family:"Poppins", sans-serif;
  transition: 0.3s ease;
}

.card-wrap.b{
width: 70%;
}

.allbooks:hover{
  color:black;
}

.news{
 font-family:"Poppins", sans-serif;
 font-size: 70px;
 margin: 0 0 0 55px;
 color: #282929;
}

.news.small {
 font-family:"Poppins", sans-serif;
 font-size: 20px;
 margin: -25px 0 0 55px;
 color: #282929;
 font-weight: 100;

}

.board{
  width: 1080px;
  height:680px;
  border-radius: 10px;
  overflow:hidden;
  background-color: #121212;
  position: relative;
}

.aboutframe{
  width: 100%;
  text-decoration:none;
  float: right;
  display: flex;
}

.frametext{
  font-family:"Big Shoulders Display", sans-serif;
  font-size: 60px;
  color: rgb(224, 241, 31);
  font-weight: 700;
  margin: 50px 0 0 50px;
}

.rightarrow{
  width: 40px;
  height: 40px;
  transition: opacity 0.5s ease;
  right: 0;
  margin: 65px 0 0 0;
  box-shadow: -2px 2px 0 rgba(255,255,255,.5);
  transform: rotate(-135deg);
}

.arrowcontain{
  display: flex;
  flex-direction: row;
}

.rightarrow.hidden{
  opacity: 0;
}
/* When hovered, arrows become visible */
.aboutframe:hover .rightarrow {
  opacity: 1;
}

#img1 {
  border-radius: 30px;
  margin: 50px 0 0 140px;
  width: 400px;
}

.text-container {
  margin: 100px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 40%;
}

.board-content{
  align-items: center;
  justify-content:center;
  text-align:center;
  width: 100%;
}


.board-name{
  color:white;
  font-size: 60px;
  width: 100%;
  margin: 30px 0 0 20px;
  font-family: "Big Shoulders Display", sans-serif;
}

.board-comment{
color:white;
font-size: 20px;
width: 100%;
margin: 30px 0 0 20px;
font-family: "Big Shoulders Display", sans-serif;

}

.content-container{
  display:flex;
  width: 100%;
}

.content-group{
  display:flex;
  position: relative;
}

.content-contain{
  height: 100%
}

#libranet{
  font-family: "Big Shoulders Display", sans-serif;
  color: white;
  font-size: 100px;
  text-align:center;
  font-weight: 800px;
}

.board-desc{
  font-family: "Big Shoulders Display", sans-serif;
  color: white;
  font-size: 30px;
  max-width:60%;
  text-align:center;
  margin: 50px 0 0 200px;
}

.board-desc strong{
  color:yellow;
}

.section6{
  width:100%;
  height:100vh;
  margin:0;
  background-repeat: no-repeat;

}

.container6{
  display:flex;
  width: 100%;
  height: 100%;
}

#Scholar{
  font-family: "Secular One", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 70px;
  justify-content:center;
  text-align:center;
}

#unlock{
  font-family: "Secular One", sans-serif;
  font-style: normal;
  font-size: 30px;
  font-weight: 100;
  justify-content:center;
  text-align:center;

}

.Scholartext{
  align-items:center;
}

.text-schol{
  font-family: "montserrat", sans-serif;
  font-weight:800px;
  font-size: 30px; 
  margin: 60px 0 0 20px;
}

.text-to{
  font-family: "montserrat", sans-serif;
  margin: 0 0 0 25px;
  font-size: 15px; 
}

.text-desc{
  font-family: "montserrat", sans-serif;
  margin: 20px 0 0 25px;
  font-size: 15px; 
  width: 65%;
}

.text-to strong{
  font-weight: 700;
}

.ariimg{
  margin: 0 0 60px 0;
}

#scholar{
  font-family: "Poppins", sans-serif;
  font-weight: 20;
  font-style: normal;
  font-size: 30px;
  justify-content:center;
  text-align:center;
}
