/*Styles for the Header.*/
:root{
  --panel-bg: rgba(40,40,40,0.55);
  --panel-border: rgba(255,255,255,0.18);
  --panel-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 0px 0 rgba(255,255,255,0.1);
}

header {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    height: 15vh;
}

body {
    margin: 0;
    padding: 0;

}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0) 65%, rgba(0,0,0,0.9) 100%),
    url("main_background.jpg") center/cover no-repeat;
  z-index: -1;
}

h1 {
    text-align: center;
    margin-top: 10px;
    font-size: 77px;
    font-family: 'Times New Roman', Times, serif;
}

header .logo {
    display: block;
    margin: 20px auto;
    height: clamp(48px, 10vw, 120px);
    width: 50vw;
    object-fit: contain;
    filter: 
    drop-shadow(0 0 8px rgba(255,0,0,0.55))
    drop-shadow(0 0 18px rgba(255,0,0,0.35))
    drop-shadow(0 0 30px rgba(0, 0, 0, 0.40));

}

header h1 {
    margin: 0;
    flex: 1;
    text-align: center;
}

/*Styles for the Sidebar.*/

.container {
    display: flex;
}

.sidebar {
    width: 7vw;
    color: white;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border-right: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    font-size: 25px;
    height: 85vh;  
}

.sidebar li {
    margin: 15px 0;
    text-align: center;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    border: 2px solid white;
    border-radius: 30px;
    transition: all 0.25s ease;
    background-color: rgba(0,0,0,.5);
}

.sidebar a:hover {
    background-color: rgba(255,0,0,0.65);
    transform: scale(1.1);
    color: rgb(0, 0, 0);
    box-shadow: 0 0 20px rgba(255,0,0,0.65);
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
}

.sidebar a.active {
    text-decoration: underline;
    background-color: rgba(255, 0, 0, 0.482);
    color: black;
    font-weight: bold;
    transform: scale(0.95);
    box-shadow: 0 0 20px white;
    font-style: italic;
    text-decoration: underline;
}

#backButton:hover {
    text-decoration: none;

}

/*Styles for the page content.*/

.content {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.content h2 {
    font-size: 50px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid black;
    display: table;
    border-radius: 20px;
    padding: 10px 20px;
    margin: 0 auto 50px;
}

.content img {
    align-items: center;
    display: block;
    margin: 20px auto;
    height: clamp(48px, 10vw, 120px);
    width: auto;
    object-fit: contain;
}

p {
    font-size: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid black;
    border-radius: 20px;
    display: table;
    padding: 10px 20px;
    margin: 10px auto;
}

/*Styles for the gallery in the events page.*/

#gallery {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid black;
    border-radius: 20px;
    margin: 0 auto;
    height: 50vh;
    width: 50vw;
    padding: 8px;
    overflow: hidden;
}

#galleryselector {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid black;
    border-radius: 20px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    padding: 6px 10px;
    max-width: 30vw;
    width: fit-content;
}

.gallery_slide {
  font-size: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  white-space: pre-line;
}

.gallery_notch {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ccccccaa;
    cursor: pointer;
    aspect-ratio: 1;
    line-height: 0;
    display: block;
}
.gallery_notch:hover {
    background-color: rgba(255,0,0,0.65);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,0,0,0.65);
}
.gallery_notch.active {
    background-color: rgba(255, 0, 0, 0.482);
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.482);
}
#galleryRow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    margin: 0 auto;
}

.galleryArrow {
    font-size: 50px;
    padding: 6px 14px;
    margin: 10px;
    border-radius: 8px;
    border: 2px solid white;
    background: rgba(0,0,0,0.6);
    color: white;
    cursor: pointer;
    transition: 0.2s;
    height: 50%;
}

.galleryArrow:hover {
  background: rgba(255,0,0,0.7);
}

/*Styles for the gallery and the main body of the info page.*/
.infoPanel{
  display:flex;
  width:70vw;
  height: 60vh;
  margin:0 auto;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid black;
  border-radius: 20px;
}

#infoSlideSelector {
    display: flex;
    flex-direction: column;
    flex: 0 0 10vw;
    align-items: stretch;
    border: 2px solid black;
    border-right: none;
    border-radius:20px 0 0 20px;
    gap: 8px;
    padding: 10px;
}

#infoBody {
    border: 2px solid black;
    border-left: 0 solid black;
    border-radius:0 20px 20px 0;
    width: 100%;
    padding: 12px;
    overflow: auto;
}

#infoBody  p {
    font-size: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: 0;
    border-radius: 0;
    display: table;
    padding: 10px 20px;
    margin: 10px auto;
}

.infoNotch {
    flex: 1;
    min-height: 0;
    border-radius: 0;
    display: flex;
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.35);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 400%;
    color: white;
    background-color: rgba(0,0,0,.5);
    font-family: 'Times New Roman', Times, serif;
}

#infoChangesNotch {
    font-size: 300%
}

.infoNotch.active{
  border-right-color: transparent;
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(to right, rgba(255, 0, 0, 0.25) 30%, rgba(255, 0, 0, 0.25) 70%);
  box-shadow: 0 0 25px rgba(255,0,0,0.5);
  text-decoration: underline;
  font-weight: bold; font-style: italic;
}

/*Style control for mobile devices.*/
@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    width: auto;
    height: 22vh;
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
    padding: 15px;
    display: flex;
    overflow: hidden;
  }

  .sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 10px;
    font-size: 20px;
    height: 100%;
    max-height: 100%;
    flex-shrink: 1;

  }

  .sidebar li {
    margin: 0;
    flex: 1 1 calc(50% - 8px);
    display: flex;
  }

  .sidebar li a {
  flex: 1 1 auto;
  display: block;
  text-align: center;
  padding: 0.5em 0.8em;
  font-size: clamp(0.8rem, 5vw, 10vw); /* auto-resize with viewport */
  white-space: nowrap;       /* prevents multi-line breaks */
  overflow: hidden;
}
  
  #backButton {
    display: none;
  }

  header {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--panel-bg);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    height: 10vh;
    }
  header .logo {
    display: block;
    margin: 20px auto;
    height: auto;
    width: 100vw;
    object-fit: contain;
    filter: 
    drop-shadow(0 0 8px rgba(255,0,0,0.55))
    drop-shadow(0 0 18px rgba(255,0,0,0.35))
    drop-shadow(0 0 30px rgba(0, 0, 0, 0.40));

    }

.content h2 {
    font-size: 30px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid black;
    display: table;
    border-radius: 20px;
    padding: 10px 20px;
    margin: 0 auto 25px;
    }

.content img {
    width: clamp(10vw, 70vw, 100vw);
    height: clamp(10vh, 10vh, 30vh);
    }

p {
    font-size: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid black;
    border-radius: 20px;
    display: table;
    padding: 10px 20px;
    margin: 10px auto;
}   

.infoPanel{
  width:90vw;
  height: 50vh;
}

#infoBody {
    padding: 0;
}

#infoSlideSelector {
    flex: 0 0 10vw;
}

.infoNotch {
    flex: 1;
    font-size: 150%;
}

#infoChangesNotch {
    font-size: 150%
}

#gallery {
    height: 30vh;
    width: 70vw;
}

.galleryArrow {
    display: none;
}

.gallery_notch {
    width: 40px;
    height: 40px;
}

}

/*Styles for my test form.*/
form {
  font-size: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid black;
  border-radius: 20px;
  display: table;
  padding: 20px 30px;
  margin: 20px auto;
}

form input, form button {
  display: block;
  margin: 10px auto;
  padding: 8px 12px;
  border: 2px solid white;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 18px;
  text-align: center;
  transition: all 0.25s ease;
}

form input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255,0,0,0.6);
  border-color: rgba(255,0,0,0.7);
}

form button {
  cursor: pointer;
}

form button:hover {
  background-color: rgba(255,0,0,0.65);
  color: black;
  box-shadow: 0 0 20px rgba(255,0,0,0.65);
  font-weight: bold;
  font-style: italic;
}

/*Styles for my test table.*/
table {
  margin: 30px auto;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid black;
  color: white;
  font-size: 18px;
  text-align: center;
  width: 60vw;
}

th, td {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 20px;
}

th {
  background-color: rgba(255,0,0,0.4);
  color: black;
  font-weight: bold;
  font-style: italic;
}

tr:hover {
  background-color: rgba(255,0,0,0.25);
  transition: 0.2s;
}