@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Spartan", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Global Styles */

h1 {
  font-size: 50px;
  line-height: 64px;
  color: #222;
}

h2 {
  font-size: 46px;
  line-height: 54px;
  color:black;
  padding: 5px;
  -webkit-text-stroke: 0.2px #ffffff;
}

h4 {
  font-size: 20px;
  color: black;
  padding: 15px;
}

h6 {
  font-weight: 700;
  font-size: 12px;
}

p {
  font-size: 16px;
  color: #465b52;
  margin: 15px 0 20px 0;
}

.main {
  width: 100%;
  height: 100vh;
  background-image: url(https://images.pexels.com/photos/39811/pexels-photo-39811.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
  background-size: cover;
  background-position: center;
}

#header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    top: 0;
    left:0;
}

#navbar{
    display:flex;
    justify-content: center;
    align-items: center;
    
}

#navbar li{
    list-style: none;
    padding : 0 20px;
    position: relative;

}

#navbar li a{
    text-decoration: none;
    font-size:16px;
    font-weight:600;
    color: rgb(196, 27, 41);
    transition: 0.3s ease;

}

#navbar li a.active::after,
#navbar li a:hover::after{
    content: "";
    width:60%;
    height: 2px;
    background: rgb(233, 30, 30);
    position: absolute;
    bottom: -4px;
    left:20px;
}

button.white{
    font-size: 13px;
    font-weight: 600;
    padding:11px 18px;
    color:black;
    background-color:yellowgreen;
    cursor: pointer;
    border: 1px solid rgb(51, 0, 0);
    border-radius: 3px;
    outline: none;
    transition: 0.2s;
}

body {
  width: 100%;
}

button:hover{
  background: black;
  color: white;
  border-radius: 5px;
}

.logo{
    font-size: 25px;
    font-weight: 800;
    font-family: cursive;
    -webkit-text-stroke: 0.7px black;
    color: rgb(147, 124, 230);
}

#main-text{
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

#main-text button{
    margin-top: 20px;
    letter-spacing: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 30px;
    line-height: 40px;
  }

  h2 {
    font-size: 26px;
    line-height: 32px;
  }

  h4 {
    font-size: 16px;
  }

  p {
    font-size: 14px;
    margin: 10px 0 15px 0;
  }

  #header {
    padding: 10px 20px;
  }

  #navbar li {
    padding: 0 10px;
  }

  #navbar li a {
    font-size: 11px; /* Adjust font size for the navbar elements on mobile devices */
  }

  .logo {
    font-size: 18px; /* Adjust font size for the logo on mobile devices */
  }

  .register button.white {
    font-size: 11px; /* Adjust font size for the register button on mobile devices */
    padding: 8px 14px; /* Adjust padding for the register button on mobile devices */
  }
}
