/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* FONTS */
@font-face {
    font-family: 'Titlecard';
    src: url('../fonts/font2.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Basic Text';
    src: url('../fonts/font3.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Users';
    src: url('../fonts/font6.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


body {
    background-color: #0F2027 !important;
}


/* TOP-NAV code */ 

#title {
    font-family: 'Titlecard', serif;
}

.top-nav {
    display: flex;
    flex-direction: row;
    height: 15vh;
    width: auto;
    align-items: center;
    justify-content: space-around;
    background-color: #0F2027;
    color: white;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.37);
    transition: color 0.98s ease-in-out, text-shadow 0.98s ease-in-out;
    position: relative;
    z-index: 10;
}

a {
    display: inline-block; 
     transition: transform 0.25s ease;
}

a:link, a:visited, a:hover, a:active {
    text-decoration: none;--bs-text-opacity: 1;
    color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
  }

a:hover {
     transform: translateY(-4px) scale(1.05);
}


/* 'Register' code */
.title {
    height: 10vh;
    width: 100vw;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    
}

.title h1 {
    transition: color 0.96s ease-in-out, text-shadow 0.96s ease-in-out;
}


#register {
    font-family: 'Basic Text', serif;
    margin-right: 90%;
}

/* Dropdown Button */
.dropbtn {
    background-color: #0F2027;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.98s ease-in-out, text-shadow 0.98s ease-in-out;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 30;
}

/* Links inside the dropdown */
.dropdown-content a {
    margin-top: 6%;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
   background-color: rgba(255, 255, 255, 0.2);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
    background-color: #0F2027;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: rgba(255, 255, 255, 0.2);
}


/* alert message code */
.alert {
    height: 35vh;
    width: 100vw;
    font-family: 'Users', serif;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    background-color: #0b181d;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.37);
    transition: color 0.98s ease-in-out, text-shadow 0.98s ease-in-out;
    opacity: 1; /* Element is fully visible */
    transition: opacity 0.5s ease-out; /* Defines the transition for fading */
}

.alert.hidden {
    opacity: 0;
}



/*registration box */
.registration {
    display: flex;
    align-items: center;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.37);

}

/* submit button */

#submit {
    background-color: #00A8FF;
    color: #FFF;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submit:hover {
    background-color: #0056B3;
    box-shadow: 0px 4px 15px rgba(0, 168, 255, 0.7);
}


/* Show password button */
.password-container {
    display: flex;
    align-items: center;
    position: relative;
}

.show-password-btn {
    margin-left: 10px;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

#toggleConfirmPassword {
    height: 50px;
    width: 50px;
}

#togglePassword {
    height: 50px;
    width: 50px;
}





/* links below submit button */
.sub-link {
    color: #fff;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s ease-in-out, text-shadow 0.98s ease-in-out;
}


/* IMAGE  CSS*/
.image-container {
    position: relative; 
    width: 500px;
    height: 500px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 10px;
    background-color: #1C1C1C;
    
}


/* The moving background */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-repeat: repeat-x;
    animation: moveBackground 10s linear infinite;
}

/* The static overlay image */
.overlay-image {
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: auto;
    z-index: 2;
}

#sub-text {
    font-family: 'Users, serif';
    color: gray;
    font-size: xx-small;
}


/* Media Code */
@media (max-width: 767px) {

.top-nav { 
    flex-direction: column;
    gap: 1rem;
}

.registration {
    flex-direction: column;
    width: 95%;
    padding: 20px;
}

form {
    width: 100% !important;
    align-items: center;
    text-align: center;
}

form h1 {
    margin-right: 120px !important;
}

#submit {
    width: 100%;
}

.image-container {
    width: 250px;
    height: 250px;
}

.overlay-image {
    width: 220px;
}

#register {
    font-size: 26px;
    text-align: center;
}

#sub-text {
    font-size: 10px;
}

}

@media (max-width: 1023px) {

.top-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 15px;
    text-align: center;
}

 #register {
    font-size: 32px;
}

.registration {
    flex-direction: column;
    width: 90%;
    margin: auto;
    padding: 25px;
}

.image-container {
    width: 350px;
    height: 350px;
    margin-top: 20px;
}

.overlay-image {
    width: 320px;
}

#sub-text {
    font-size: 12px;
}

}

@media (min-width: 1440px) {

#register {
    font-size: 45px;
}

.registration {
    padding: 40px;
    max-width: 70%;
    margin: auto;
}

.image-container {
    width: 550px;
    height: 550px;
}

.overlay-image {
    width: 520px;
}

#sub-text {
    font-size: 14px;
}

}
