:root{
    --primary-color: #0077cc;
    --secondary-color: #e71c23;
    --text-color: #333;
    --content-size: 1.2rem;
    --background-color: #f2f2f2;
    --font-family: 'Poppins';
}

*{
    font-family: var(--font-family);
}
html{
    scroll-behavior: smooth;
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #fff;
  transition: opacity 0.5s ease;
}

nav{
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 50px;
    color: rgb(0, 0, 0);
    border-bottom: 1px solid rgb(0, 0, 0);
}

.logo{
    width: 100px;
    color: #131414;
    text-decoration: none;
}
nav .nav-links{
    width: 50%;
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;

}   
nav .nav-links li a{
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 500;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: #131414;
}
nav .nav-links .nav-item:hover{
    cursor: pointer;
    color: white;
    background-color: #155385;
}
nav .nav-links .register-btn{
    background-image: linear-gradient(#ff0055, #f0004f);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
}
nav .nav-links li{
    position: relative;
}
nav .nav-links .register-btn a{
    color: white;
    text-decoration: none;
}

#menu-toggle{
    display: none;
}

.sub-menu-container{
    position: relative;
}
.sub-menu{
    display: none;
    list-style: none;
    position: absolute;
    bottom: -280px;
    left: 0;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: rgb(255, 255, 255);
    width: 200px;
    padding: 15px 0;
    border-bottom-right-radius: 19px;
    border-top-left-radius: 19px;
    box-shadow: 0 0 19px rgba(0,0,0,0.1);
    z-index: 3;
}

nav .nav-links li:hover > .sub-menu{
    display: flex;
}

@media (min-width: 300px) and (max-width: 768px){
    .sub-menu{
        left: -160px;
    }
    
}