/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  background: var(--primary-color);
  color: var(--secondary-color)
}
/* Hyperlink Colour */
a {
  color: #ff5858;
}
/* Hyperlink Colour - Hover */
a:hover {
  color: #f09819;
}
/* Hero Section Styles */
.hero { 
  width: 100%;
  min-height: 100vh;
  padding: 10px 10%;
  overflow: hidden;
  position: relative;
}
/* Navigation Styles */
nav { 
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 240px;
}
nav ul {
  flex: 1;
  text-align: right;
}
nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 15px;
}
nav ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: bold;
}
/* Code for light/dark mode */
:root {
  --primary-color: #ffffff;
  --secondary-color: #212121;
}
.dark-theme {
  --primary-color: #212121;
  --secondary-color: #ffffff;
  ;
}
.darkmode-label {
  width: 90px;
  height: 40px;
  position: relative;
  display: block;
  background: #ebebeb;
  border-radius: 200px;
  box-shadow: inset 0px 5px 15px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: 0.3s;
}
.darkmode-label:after {
  content: "";
  width: 35px;
  height: 35px;
  position: absolute;
  top: 3px;
  left: 3px;
  background: linear-gradient(180deg, #ffcc89, #d8860b);
  border-radius: 180px;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}
input {
  width: 0;
  height: 0;
}
input:checked + label {
  background: #242424;
}
input:checked + label:after {
  left: 87px;
  transform: translateX(-100%);
  background: linear-gradient(180deg, #777,#3a3a3a);
}
label, label:after {
  transition: 0.3s;
}
label:active:after {
  width: 50px;
}
/* Button Styles */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 40px;
  color: #edf2fc;
  background-image: linear-gradient(-60deg, #ff5858 0%, #f09819 100%);
  font-size: 14px;
  border-radius: 30px;
  border-top-right-radius: 0;
  transition: 0.5s;
}
.btn:hover{
  border-top-right-radius: 30px;
}
/* Login popup */
.open-button {
  display: inline-block;
  text-decoration: none;
  padding: 14px 40px;
  color: #edf2fc;
  background-image: linear-gradient(-60deg, #ff5858 0%, #f09819 100%);
  font-size: 14px;
  border-radius: 30px;
  border-top-right-radius: 0;
  transition: 0.5s;
  border: none;
  cursor: pointer;
  position: relative;
}
/* The popup form - hidden by default */
.form-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid #f1f1f1;
  z-index: 9;
}
/* Add styles to the form container */
.form-container {
  max-width: 300px;
  padding: 10px;
}
/* Full-width input fields */
.form-container input[type=text],
.form-container input[type=password] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
}
/* When the inputs get focus, do something */
.form-container input[type=text]:focus,
.form-container input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}
/* Set a style for the submit/login button */
.form-container .btn2 {
  background-color: #04AA6D;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom:10px;
  opacity: 0.8;
}
/* Add a red background color to the cancel button */
.form-container .cancel {
  background-color: red;
}
.open-button:hover{
  border-top-right-radius: 30px;
}
/* Content Section Styles */
.content {
  margin-top: 5%;
  max-width: 600px;
}
.content h2 {
  font-size: 75px;
  color: var(--secondary-color);
}
.content p {
  margin: 10px 0 30px;
  font-size: 18px;
  color: var(--secondary-color);
}
.content .btn {
padding: 15px 80px;
font-size: 14px;
}
.center {
  width: 200px;
  left: 10%;
}
/* Feature Image Styles */
.feature-img {
  width: 600px;
  position: absolute;
  bottom: 0;
  right: 5%;
  transition: transform 0.3s ease-in-out;
  background: transparent; /* Override the global background colour */
}
.feature-img:hover {
  transform: scale(0.95);
}
/* Animation Styles */
.anim {
  opacity: 0;
  transform: translateY(30px);
  animation: moveup 0.5s linear forwards;
}
@keyframes moveup {
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
/* Media Query for Smaller Screens */
@media screen and (max-width: 1250px) {
  .hero {
    width: 100%;
    min-height: 100vh;
    padding: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .content {
    margin-top: 0;
    text-align: center;
  }
  iframe {
    max-width: 100%;
    height: auto;
  }
  .feature-img {
    position: static; /* Change to static position for smaller screens */
    width: 70%;
    margin-top: 20px;
  }
  nav {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow nav items to wrap */
  }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  nav ul li {
    margin: 10px 0;
  }
}