/* Responsive styles */
@media (max-width: 1200px) {
  header img {
    height: 80px;
  }
  header {
    font-size: 1.6em;
  }
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    padding: 10px;
  }
  aside {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  .container {
    max-width: 100%;
    margin: 10px 0;
    padding: 15px;
  }
  header img {
    height: 70px;
  }
  header {
    font-size: 1.3em;
  }
}

@media (max-width: 600px) {
  header img {
    height: 35px;
    left: 5px;
  }
  header {
    padding: 6px 0;
    font-size: 0.85em;
  }
  nav a {
    padding: 10px 8px;
    font-size: 0.95em;
  }
  .main-content {
    padding: 5px;
  }
  aside {
    padding: 10px;
    font-size: 0.98em;
  }
  .container {
    padding: 10px;
    font-size: 0.98em;
  }
  footer {
    padding: 10px 0;
    font-size: 0.95em;
  }
  form {
    padding: 10px;
    max-width: 100%;
  }
  form label {
    font-size: 0.98em;
    padding: 3px 6px;
  }
  form input,
  form textarea {
    padding: 8px;
    font-size: 1em;
  }
}
/* Merged styles for header img */
header img {
  height: 100px;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  /* box-shadow: 0 0 10px 10px#E5EFFA; */
  border-radius: 5px;
}

header img:hover {
  height: 100px;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px 10px #E5EFFA;
  border-radius: 40px;
  background-color: #E5EFFA;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  src: url(images_and_extras/Roboto-Regular.ttf);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #e0f7fa;
  margin: 0;
  padding-bottom: 100px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  background-color: #0288d1;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

nav {
  display: flex;
  justify-content: center;
  background-color: #0277bd;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav a {
  color: #fff;
  padding: 14px 20px;
  text-decoration: none;
  text-align: center;
  transition: color 0.3s ease-in-out, background-color 0.4s ease-in-out;
}

nav a:hover {
  background-color: #01579b;
  color: #b4daff;
}

.main-content {
  display: flex;
  flex: 1;
  padding: 20px;
}

.container {
  padding: 20px;
  flex: 1;
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.image-panel {
  border-radius: 15px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin: 20px 0;
}

.image-panel img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.image-panel img:hover {
  transform: scale(1.05);
}

footer {
  background-color: #0288d1;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  z-index: 3;
}

aside {
  width: 250px;
  background-color: #b3e5fc;
  padding: 0 20px 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
  border-radius: 8px;
}

h2 {
  color: #0288d1;
  margin-top: 0;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

section#events h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #0277bd;
}

/* .event-item {
  color: #01579b;
} */

section#events ul {
  list-style-type: none;
  padding: 0;
}

section#events li {
  background-color: #b3e5fc;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #01579b;
  cursor: pointer;
  display: flex;
  position: relative;
  flex-direction: column;
}

section#events li .extra-info {
  display: none;
  background-color: #e1f5fe;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section#events li .arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  transition: transform 0.3s ease;
  pointer-events: none;
  /* Prevent the arrow from being clicked */
}
section#events li:hover .arrow {
  transform: rotate(180deg);
}

form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  background-image: url("images_and_extras/chess_image2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 255, 0.2);
  /* Blue tint */
  border-radius: 8px;
  z-index: 1;
}

form label,
form input,
form textarea,
form button {
  position: relative;
  z-index: 2;
}

form label {
  display: inline-block;
  margin-bottom: 5px;
  padding: 5px 10px;
  background-color: rgba(0, 0, 35, 0.2);
  /* Purple tint */
  color: white;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 35, 0.5);
  /* Fade the edges */
}

form input,
form textarea {
  width: calc(100% - 20px);
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

form button {
  background-color: #0288d1;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
  background-color: #0277bd;
  transform: scale(1.05);
}