
body {
  background: #FFF;
font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  
}
.mainb{
    height: 100vh;
    margin-top: 75px;
    
}
.header {
      display: flex;
      align-items: center;  
      justify-content: space-between; 
      padding: 15px 20px;
      
      color: black;
  }

  /* LOGO + HOME LINK */
  .logo {
      display: flex;
      align-items: center;
  }

  .logo i {
      margin-right: 10px; /* Space between icon and text */
  }

  .logo a {
      text-decoration: none;
      color: black;
      font-size: 18px;
      font-weight: bold;
      margin-left: 5px;
  }

  /* WELCOME HEADING */
  .header h1 {
      font-size: 22px;
      color: black;
      text-align: center;
      flex-grow: 1;  /* Allow it to take up space */
  }
/* Fix Navbar to Top */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    color: black;
    
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Slight shadow for visibility */
    z-index: 1000; /* Ensures it's above other elements */
}

/* Left Side (Logo & Name) */
.nav-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #dfcd27;
    font-size: 20px;
    font-weight: bold;
}

.logo-link i {
    margin-right: 8px;
    font-size: 24px; /* Adjust icon size */
    color: #dfcd27; /* Gold color for icon */
}

/* Right Side (Title) */
.nav-right {
    flex-grow: 1; /* Helps with proper spacing */
    text-align: center; /* Centers the title */
}

.nav-right h1 {
    font-size: 24px;
    margin: 0;
}

/* Prevent Content from Overlapping with Fixed Navbar */
.content {
    margin-top: 80px; /* Adjust this if the navbar height changes */
    text-align: center;
}

.containerx {
    width: 60%;
    margin: auto;
    margin-top: 130px;
    height: 100vh;
    
  }
.container {
  
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  
}
.question {
  margin-bottom: 15px;
}
button {
  margin-left: 50px;
  padding: 5px 20px;
  border: 2px solid #dfcd27;
  border-radius: 20px;
  text-decoration: none;

  transition: 0.5s;
  background-color: #dfcd27;
  color: #fff;
}
#result {
  margin-top: 20px;
  font-weight: bold;
  font-size: 18px;
}

.reattempt-container {
    text-align: right; /* Center the button */
    margin-top: 20px;
    
}

.reattempt-container a {
    display: inline-block;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: linear-gradient(to right, #fed56bdd, #dfcd27);
    border-radius: 8px;
    transition: 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reattempt-container a:hover {
    background-color: #fed56bdd; /* Darker blue on hover */
    transform: scale(1.05);
}


footer {
	color: #E5E8EF;
	background: #000D;
	padding: 50px 0; 
    margin-top: 200px;
    
}

footer .footer-container {
	max-width: 1300px;
	margin: auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap-reverse;
}

footer .social-media img{
	width: 22px;
}

footer .logo {
	width: 180px;
	color: #fff;
	font-family: 'Montserrat', cursive;
}
footer .social-media{
	margin: 20px 0;
}

footer .social-media a{
	color: #001a21;
	margin-right: 10px;
	font-size: 22px;
	text-decoration: none;
}

footer .right-col h1{
	font-size: 26px;
}
footer .border{
	width: 100px;
	height: 4px;
	background: linear-gradient(to right, #fed56bdd, #dfcd27);
	margin: 2px;
}

footer .newsletter-form {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}
footer input::placeholder {
  color: white !important;
}
footer .txtb {
	flex: 1;
	padding: 18px 40px;
	font-size: 16px;
	background: #343A40;
	border: none;
	font-weight: 700;
	outline: none;
	border-radius: 5px;
	min-width: 260px;
	margin-top: 20px;
	color: white;
}

footer .btn {
	margin-top: 20px;
	padding: 18px 40px;
	font-size: 16px;
	color: #f1f1f1;
	background: linear-gradient(to right, #fed56bdd, #dfcd27);
	border: none;
	font-weight: 700;
	outline: none;
	border-radius: 5px;
	margin-left: 20px;
	cursor: pointer;
	transition: opacity .3s linear;	
}

footer .btn:hover {
	opacity: .7;
}


/*For Responsive Website*/
@media screen and (max-width: 960px) {
	.footer-container {
		max-width: 600px;
	}
	.right-col {
		width: 100%;
		margin-bottom: 60px;
	}
	.left-col {
		width: 100%;
		text-align: center;
	}
	.social-media {
		display: flex;
		justify-content: center;
	}
}

@media screen and (max-width: 700px) {
	footer .btn{
		margin: 0;
		width: 100%;
		margin-top: 20px;
	}
}
@media screen and (max-width: 1366px) {
	.search {
		display: none;
		margin-bottom: 10px;
	}
}

@media screen and (max-width: 1000px) {
	.nav ul, .nav .search {
		display: none;
	}
	.nav #learned-logo {
		transition: 1s ease;
		margin-left: 40%;
		transform: scale(1.5);
	}
	.nav ul li{
		width: 100%;
		margin-bottom: 5px;
	}
	.nav .switch-tab {
		visibility: visible;
	}
	.nav .check-box {
		visibility: visible;
	}
	.search {
		visibility: visible;
		margin: 30px;
		margin-top: 0px;
	}
}