* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100%;
  height: 100%;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background-color: #ffffff;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  padding: 20px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(2.4px);
  -webkit-backdrop-filter: blur(2.4px);
  background-color: #0000000a;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-select: none;
}

.icon-container {
  display: flex;
  align-items: center;
  gap: 10px; /* Adjust spacing between the icon and text */
}

.icon-container p {
  font-size: 14px; /* Adjust size as needed */
  color: #ffffff88;
}

header .icon {
  font-size: 24px;
  text-shadow: 2px 2px 5px #080808;
  width: 50px; /* Adjust the size of the icon as needed */
  height: 30px;
  pointer-events: none;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-family: 'Concert One', sans-serif;
  font-size: 18px;
  text-shadow: 2px 2px 5px #080808;
}

.icon-container:hover .fun-fact {
  opacity: 1;
  transform: translateX(0) translateY(-50%);
}

.icon-container .icon {
  cursor: copy;
}

/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------COOL MODERN SECTION------------------------------------- */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

/* Cool Modern Section */
#cool-modern {
  color: white;
  text-align: center;
  padding: 100px 20px;
  backdrop-filter: blur(2px);
  min-height: 80vh;
}

canvas {
  background: linear-gradient(45deg, #4c6ef5, #42d3f5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: inherit;
  filter: brightness(95%);
  user-select: none;
  cursor: default;
}

#cool-modern h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Input Box and Button */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.input-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.input-container input {
  width: 250px;
  padding: 12px;
  border: 2px solid white;
  background-color: rgba(255, 255, 255, 0.527);
  backdrop-filter: blur(2px);
  color: #345af3;
  font-weight: 900;
  font-family: Calibri;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  outline: none;
}

.selection-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.select-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.select-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.select-group select {
  padding: 10px 15px;
  border: 2px solid white;
  background-color: rgba(255, 255, 255, 0.527);
  backdrop-filter: blur(2px);
  color: #345af3;
  font-weight: 900;
  font-family: Calibri;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  min-width: 100px;
  text-align: center;
}

.select-group select:focus {
  background-color: rgba(255, 255, 255, 0.8);
}

.button-container {
  display: flex;
  justify-content: center;
}

.button-container button {
  padding: 12px 25px;
  background-color: rgba(255, 255, 255, 0.733);
  backdrop-filter: blur(2px);
  border: 2px solid white;
  color: #345af3e7;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 900;
  font-family: Calibri;
  cursor: pointer;
  transition: 0.3s;
  min-width: 140px;
}

.button-container button:hover {
  background-color: #ffffff;
  color: #345af3ee;
  transform: translateY(-2px);
}

/*  ----------------------- Results Menu  --------------------- */

#result-menu {
  margin-top: 7%;
  /* max-width: 50%; */
}

/* Special name */
.special-crown {
  color: rgba(255, 255, 255, 0.89);
  font-size: 1.5rem;
  margin-left: 10px;
  transform: rotate(-10deg);
  animation: crownSpin 1.5s infinite alternate ease-in-out;
}

@keyframes crownSpin {
  0% {
    transform: rotate(-5deg) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.1);
  }
  100% {
    transform: rotate(-5deg) scale(1);
  }
}

#results-menu {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 80%;
  max-width: 500px;
  padding: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(2px);
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

#results-menu h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #4c6ef5;
  margin-top: 10px;
}

#results-menu p {
  font-size: 1rem;
  margin-bottom: 10px;
}

#result-menu h2,
#result-menu p {
  width: max-content;
  margin: auto;
  margin-top: 3px;
}

#result-menu h2 {
  padding: 10px;
  border-radius: 13px;
  background-color: #00000025;
  text-shadow: #00000042 1px 1px 20px;
}
#result-menu p {
  padding: 6px;
  border-radius: 10px;
  background-color: #00000025;
  text-shadow: #00000046 1px 1px 20px;
}

#grades-table,
#status-table {
  width: 80%; /* Adjust this to your desired width */
  max-width: 800px; /* Set a max width to prevent stretching */
  margin: 20px auto; /* Centers the table */
}

#grades-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 20px;
  background-color: #00000079;
}

#grades-table th,
#grades-table td {
  padding: 10px;
}

thead {
  color: #ffffff;
}

#grades-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.034); /* Adjust thickness and color */
}

#grades-table tbody tr:last-child {
  border-bottom: none; /* Removes border from the last row */
}

/* Failing Grade */

.failing-grade {
  position: relative;
  text-shadow: 0 0 2px rgba(255, 77, 77, 0.6);
  animation: innerGlow 1s infinite alternate;
}

@keyframes innerGlow {
  from {
    background-color: rgba(255, 0, 0, 0.041);
  }
  to {
    background-color: rgba(255, 0, 0, 0.151);
  }
}

/* Status */

#status-table {
  width: 100%;
  margin-top: 20px;
  border-radius: 13px;
  background-color: #00000079;
  padding: 5px;
}

#status-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------SMALL AD SPACE------------------------------------------ */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

#small-ad-space {
  text-align: center;
  padding: 10px;
  margin: 20px auto;
  background-color: #f0f0f041; /* A light background */
  border: 1px solid #ddddddcc; /* A subtle border */
  border-radius: 8px;
  max-width: 300px; /* To keep it from stretching too wide */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Rubik', sans-serif;
  position: sticky;
}

#small-ad-space p {
  margin: 0;
  font-size: 0.9em;
  color: #555;
}

/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------ABOUT SECTION------------------------------------------ */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

#about {
  background-color: #000;
  color: #fff;
  padding: 30px;
  text-align: center;
  width: 100%;
  margin-top: auto;
  position: absolute;
  z-index: 10;
}

#about p {
  margin-bottom: 10px;
}

#about .social-icons a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

@keyframes beat {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
  60% {
    transform: scale(1.1);
  }
}

#about p .heart {
  display: inline-block;
  animation: beat 1s infinite;
}

/* bar ---------------------------------------- */
/* bar ---------------------------------------- */
/* bar ---------------------------------------- */
/* bar ---------------------------------------- */
/* bar ---------------------------------------- */

@supports not (selector(::-webkit-scrollbar)) {
  html {
    scrollbar-color: #627386 hsl(193, 100%, 5%);
    scrollbar-width: thin;
  }
}

/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
  width: 12px; /* Width of the scrollbar */
  height: 12px; /* Height of the scrollbar */
}

::-webkit-scrollbar-thumb {
  background-color: #627386; /* Color of the scrollbar thumb */
  border-radius: 16px; /* Roundness of the scrollbar thumb */

  background-clip: padding-box;
  border: 3px solid transparent;
}

::-webkit-scrollbar-track {
  background-color: hsl(193, 100%, 5%); /* Color of the scrollbar track */
}

/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------------------- */

@media (max-width: 810px) {
  canvas {
    min-height: 50vh;
  }

  #about {
    margin-top: 20px;
    position: relative;
  }

  #cool-modern h1 {
    font-size: 2.3rem;
  }
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .selection-container {
    flex-direction: column;
    gap: 15px;
  }

  .select-group {
    width: 100%;
    max-width: 250px;
  }

  .select-group select {
    width: 100%;
    min-width: unset;
  }

  .input-container input {
    width: 100%;
    max-width: 250px;
  }

  .button-container button {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  #cool-modern h1 {
    font-size: 2rem;
  }

  .form-container {
    padding: 0 20px;
  }
}
