/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}


/* Body Styling */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('bruh.png'); /* Replace with your image file */
    /* background: black; */
    background-size: cover; /* Ensure the GIF covers the whole screen */
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
    height: auto; /* Adjust height to fit content */
    min-height: 100vh; /* Ensure at least full screen height */
    overflow-y: auto; /* Allow scrolling */
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
    cursor: url('arrow_cursor.png'), auto;

}

body.loaded {
    opacity: 1;
}

/* Text Styling */
h1{
    font-size: 3 rem;
    color: #fff;
}

h2{
    letter-spacing: 7px;
    text-transform: uppercase;
    font-size: 30px;
    padding: 15px;
    color: #fff;
}

h3{
    font-weight: 300; /* Lighter weight */

    letter-spacing: 1px;
    padding: 15px;
    color: #fff;
}

p{
    font-weight: 300; /* Lighter weight */
    letter-spacing: 1px;
    font-size: 12px;
    padding: 5px;
    text-transform: uppercase;
}

h4{
    font-weight: 300; /* Lighter weight */
    letter-spacing: 1px;
    padding: 10px;
    color: #fff;
}

/* Dropdown Styling */
select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 15px;
    background: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: border 0.3s ease-in-out;
    text-align: center;
}


/* Button Styling */
/* normal button*/
button{
    --color: #FFF;
    padding: 0.8em 1.4em;
    background-color: transparent;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
    font-weight: 400;
    font-size: 17px;
    border: 1px solid;
    font-family: inherit;
    text-transform: uppercase;
    color: var(--color);
    z-index: 1;
    margin: 15px;
}

#selectedCourses {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to move to the next line */
    justify-content: center; /* Centers the buttons */
    /* gap: 10px; Adds spacing between buttons */
    max-width: 1000px; /* Adjust this to limit the number of buttons per row */
}

/* everything else */
.button {
    --color: #FFF;
    padding: 0.8em 1.4em;
    background-color: transparent;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
    font-weight: 400;
    font-size: 17px;
    border: 1px solid;
    font-family: inherit;
    text-transform: uppercase;
    color: var(--color);
    z-index: 1;
    margin: 15px;
   }
   
   .button::before, .button::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background-color: var(--color);
    transition: 1s ease;
   }
   
   .button::before {
    top: -1em;
    left: -1em;
   }
   
   .button::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
   }
   
   .button:hover::before, .button:hover::after {
    height: 410px;
    width: 410px;
   }
   
   .button:hover {
    color: rgb(10, 25, 30);
   }
   
   .button:active {
    filter: brightness(.8);
   }
   
/* SELECT / UNSELECT BUTTON */
.selected {
    background-color: transparent; /* Keep background transparent */
    color: #e4e4e4;
    padding: 0.8em 1.4em;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-weight: 400;
    font-size: 17px;
    border: 1px solid #e4e4e4; /* Change border to match glow */
    font-family: inherit;
    text-transform: uppercase;
    z-index: 1;
    margin: 15px;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8); /* White glow */
    transition: box-shadow 0.3s ease-in-out;
}

.selected:hover {
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 1); /* Stronger glow on hover */
    color: white;
}

.selected:active {
    filter: brightness(.8);
}


.unselected {
    background-color: transparent;
    color: #FFF; /* Adjust text color for unselected state */
    padding: 0.8em 1.4em;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-weight: 400;
    font-size: 17px;
    border: 1px solid rgb(230, 230, 230);
    font-family: inherit;
    text-transform: uppercase;
    z-index: 1;
    margin: 15px;
}

.unselected::before, .unselected::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.unselected::before {
    top: -1em;
    left: -1em;
}

.unselected::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
}

.unselected:hover::before, .unselected:hover::after {
    height: 410px;
    width: 410px;
}

.unselected:hover {
    color: #b0b0b0;
}

.unselected:active {
    filter: brightness(.8);
}

/* bruh */
.selectedCourses{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 15px; /* Space between buttons */
    justify-content: center;
    max-width: 800px; /* Limits row width */
    margin: 20px auto; /* Centers the container */
}

button:not(.button):hover {
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.9);
    color: white;
}

/* uhhhhhhhh */
.form__group {
  position: relative;
  padding: 15px;
  margin: 10px;
  width: 50%;
}

.form__field {
  font-family: inherit;
  width: 100%;
  border: 0;
  border-bottom: 2px solid white;
  outline: 0;
  text-align: center;
  font-size: 1.3rem;
  color: white;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;

  &::placeholder {
    color: transparent;
  }

  &:placeholder-shown ~ .form__label {
    font-size: 1.3rem;
    cursor: text;
    top: 20px;
  }
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 1rem;
  color: white;
}

.form__field:focus {
  ~ .form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: primary;
    font-weight:700;    
  }}