body {
  margin: 0;
  padding-top: 5vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #2F70AF;
}

.image-container {
  display: flex;
  column-gap: 6vw;
}

.navbar {
  display: flex;
  justify-content: center;
  width: 50%;
}

@media screen and (max-width: 800px) {
  .image-container {
    flex-direction: column;
  }

  .navbar ul {
    flex-direction: column;
  }
}

.navbar ul {
  background-color: #02315E;
  list-style: none;
  padding: 0;
  display: flex;
  column-gap: 20px;
}

.navbar li {
  padding: 0 0.5vw;
}

.navbar li:hover {
  background-color: #00457E;
}

.navbar a {
  text-decoration: none;
  font-size: 18px;
  color: white;
}

.navbar a:hover {
  color: white;
}

.image-sponsor {
  border-radius: 1vw;
  height: 10vh;
}

.event-table {
  table-layout: fixed;
  width: 100%;
}

.bordered-table {
  border-collapse: collapse;
  background-color: lightgray;
  margin: auto;
  color: black;
  margin-bottom: 2rem;
  table-layout: fixed;
  word-wrap: break-word;
}

.bordered-table th,
.bordered-table td {
  border: 1px solid black;
  text-align: left;
  padding: 10px;
}

.emptyColumn {
  padding: 0px !important;
}

/* LOGIN PAGE */

.loginPage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 80vw;
  align-items: center;
}

.loginPage img {
  width: 100%;
  display: block;
  margin: auto;
}

.leftLoginBox {
  width: 60%;
}

.rightLoginBox {
  width: 25%;
}

.outerLoginForm {
  border: 2px solid #1b1b1b;
  width: 50%;
  margin: auto;
  background-color: #00457E;
}

.outerRegisterForm {
  border: 2px solid #1b1b1b;
  margin: auto;
  background-color: #00457E;
}

@media screen and (max-width: 800px) {
  .leftLoginBox {
    padding-left: 0;
    width: auto;
    padding-top: 0;
  }

  .rightLoginBox {
    padding-right: 0;
    padding-left: 0;
    width: auto;
  }

  .outerLoginForm {
    width: auto;
  }
}

.noAccountText {
  color: white;
  text-align: center;
  padding-top: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: auto;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.login-form input {
  margin-bottom: 10px;
}

.login-form button {
  width: 35%;
  margin: auto;
}

.emailConf {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

.logout-button button {
  background-color: #ff4d4d;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.open-reg-button button {
  background-color: #244724;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 5px;
}

.close-reg-button button {
  background-color: darkred;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 5px;
}

.store-login {
  width: 80%;
  margin: auto;
  padding-top: 2rem;
}

.disabled-button {
  pointer-events: none;
  opacity: 0.5;
}

/* Define the glowing animation */
@keyframes glowing {
  0% {
    box-shadow: 0 0 6px #50a5ff;
  }

  50% {
    box-shadow: 0 0 20px #50a5ff;
  }

  100% {
    box-shadow: 0 0 6px #50a5ff;
  }
}

.your-row {
  animation: glowing 1.5s infinite;
  background-color: lightblue;
}

/* Apply vertical layout on low screen width using media query */
@media (max-width: 768px) {
  .event-table {
    display: block;
  }

  .event-th {
    display: block;
    width: 100%;
  }
}

#rules-page-text {
  background-color: #00457E;
  color: white;
  -webkit-text-stroke: 0.1px black;
  text-align: center;
  width: 85%;
  padding: 0px 30px;
  box-shadow: 8px 8px 8px rgba(0, 0, 0, 1);
  margin-bottom: 2rem;
}

#rules-page-text p {
  font-size: 18px;
}

ul.centered-list {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

ul.centered-list li {
  width: fit-content;
  margin: auto;
}

/* Modal */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
  visibility: hidden;
}

@media screen and (max-width: 800px) {
  .overlay {
    position: inherit;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 11;
  visibility: hidden;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#modal-close-button {
  margin-left: auto;
  border: 1px solid black;
  border-radius: 6px;
  background-color: black;
  color: white;
}

.close-button {
  background-color: red;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.homepage-font {
  color: white;
  font-size: 20px;
}

.homepage-font a {
  color: white;
}

.percentwidth {
  width: 40%;
}

.sponsorBoxPage {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  column-gap: 5rem;
  border-bottom: 2px solid #000;
  padding-bottom: 1rem;
}

#oddsponsor {
  flex-direction: row-reverse;
}

@media screen and (max-width: 800px) {
  .sponsorBoxPage {
    flex-direction: column;
  }

  #oddsponsor {
    flex-direction: column;
  }

  .percentwidth {
    width: auto;
  }
}

/* Social Sidebar */

#social-sidebar {
  left: 0;
  position: fixed;
  top: 40%;
  z-index: 999;
  padding-left: 0px;
  list-style: none;
}

#social-sidebar li:first-child a {
  border-top-right-radius: 5px;
}

#social-sidebar li:last-child a {
  border-bottom-right-radius: 5px;
}

#social-sidebar a {
  background: rgba(0, 0, 0, .7);
  color: #fff;
  text-decoration: none;
  display: block;
  height: 50px;
  width: 50px;
  font-size: 24px;
  line-height: 50px;
  position: relative;
  text-align: center;
  cursor: pointer;
}

#social-sidebar a:hover span {
  left: 120%;
  opacity: 1;
}

#social-sidebar a span {
  font: 12px "Open Sans", sans-serif;
  text-transform: uppercase;
  border-radius: 3px;
  line-height: 24px;
  left: -100%;
  margin-top: -16px;
  opacity: 0;
  padding: 4px 8px;
  position: absolute;
  transition: opacity .3s, left .4s;
  top: 50%;
  z-index: -1;
}

#discord-icon::before {
  content: "";
  display: inline-block;
  background-image: url('../img/icon/discord.ico');
  background-size: cover;
  width: 32px;
  height: 32px;
  margin-top: 8px;
}