@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville&family=UnifrakturMaguntia&display=swap");

@font-face {
  font-family: "William Shakespeare";
  src: url("../files/SpanishCourtHandWF.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* background-color: #2a663c; */
  scroll-behavior: auto;
  scrollbar-width: none;
  overflow-x: hidden;
  overflow-y: scroll;
}

ul,
ol {
  padding-top: 5px;
  padding-bottom: 10px;
  padding-left: 20px;
}

body {
  font-family: "Libre Baskerville", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

html,
body {
  height: 100%;
}

.header-title {
  font-family: "William Shakespeare";
  font-size: 7rem;
  font-weight: 50;
  margin: 0;
  padding: 0;
}

@media (max-width: 650px) {
  .header-title {
    font-size: 4rem;
  }
}

header,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Baskerville", serif;
}

footer {
  background: #2a663c;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin: 0;
  position: absolute;
  width: 100%;
}

/* Bookmark header styling */
.bookmark-header {
  background: #2a663c;
  color: #fff;
  padding: 1rem;
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.bookmark-header::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #2a663c;
  transform: translateXuu;
}

/* Content wrapper styling */
.content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

/* Main content styling */
.main-content {
  flex: 3;
  padding: 2rem;
}

main section {
  margin-bottom: 2rem;
}

main h2 {
  color: #333;
  margin-bottom: 1rem;
}

.performance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.performance-list div {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  width: 100%;
  max-width: 300px;
}

/* Sidebar styling */
.sidebar {
  padding: 1rem;
  background: #f4f4f4;
  border-left: 1px solid #ddd;
}

#facebook-feed {
  /* margin-top: 2rem; */
  text-align: center;
}

#facebook-feed .fb-page {
  width: 100% !important;
  height: 100%;
}

#facebook-feed iframe {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .main-content {
    flex: none;
  }

  .sidebar {
    margin-top: 2rem;
  }
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 0.5rem;
}

form input,
form textarea {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

form button {
  padding: 0.5rem;
  border: none;
  background: #2a663c;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

form button:hover {
  background: grey;
}

/* General link styling */
a {
  color: grey;
  text-decoration: none;
  position: relative;
}

/* Underline effect on hover */
a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: grey;
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

a:not(.icon):hover::after {
  visibility: visible;
  transform: scaleX(1);
}

article {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

article header {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

article h2 {
  margin-top: 0;
}

article time {
  font-size: 0.9rem;
  color: #666;
}

article section {
  line-height: 1.6;
}

article h3 {
  margin-top: 1.5rem;
}

/* Header and navigation styles */
header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap; /* Allow wrapping */
}

header nav ul li {
  margin: 0.5rem 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Media queries for responsive navigation */
@media (max-width: 570px) {
  header nav ul {
    flex-direction: column; /* Stack links vertically */
    align-items: center;
  }

  header nav ul li {
    margin: 0;
    margin-top: 0.7rem;
  }
}

/* Media queries for responsiveness */
@media (min-width: 768px) {
  .main-content {
    flex: 3; /* Default size for larger screens */
  }

  .sidebar {
    flex: 1; /* Default size for larger screens */
    margin-top: 0; /* Remove top margin on larger screens */
  }
}

@media (min-width: 1200px) {
  .content-wrapper {
    max-width: 1200px;
  }
}

/* Styles for performance dropdowns */
.performance-year {
  margin-bottom: 1rem;
}

.dropdown-btn {
  background-color: #333;
  color: white;
  padding: 1rem;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  outline: none;
  border-radius: 5px;
  transition: background-color 0.3s ease; /* Added transition */
  position: relative; /* Added position */
}

.dropdown-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%) rotate(-90deg); /* Rotate chevron */
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid white;
  transition: transform 0.3s ease; /* Added transition */
}

.dropdown-btn.active::before {
  transform: translateY(-50%) rotate(90deg); /* Rotate chevron */
}

.dropdown-btn.active,
.dropdown-btn:hover {
  background-color: #555;
}

/* Container for play items */
.dropdown-content {
  display: none;
  grid-template-columns: 1fr; /* Default to single column */
  gap: 1rem;
  padding: 1rem;
}

/* Two-column layout for larger screens */
@media (min-width: 768px) {
  .dropdown-content {
    grid-template-columns: repeat(
      auto-fit,
      minmax(300px, 1fr)
    ); /* Two columns for larger screens */
  }
}

.play {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 5px;
}

.play img {
  /* center image */
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 40rem;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: conver;
  transition: transform 0.2s ease;
}

.play img:hover {
  transform: scale(1.02); /* Slightly enlarge on hover */
  cursor: pointer;
}

.play h3 {
  /* center text */
  padding-bottom: 1rem;
  text-align: center;
  margin-top: 0;
}

.play h4 {
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  overflow-y: hidden;
  overflow-x: hidden;
  scrollbar-width: none;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: zoom 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
/* 
Toggle styles .toggle-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #ccc;
  border-radius: 25px;
  padding: 5px;
  width: 200px;
  display: flex;
  margin-top: 1rem;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-container input[type="radio"] {
  display: none;
}

.toggle-container label {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2;
  position: relative;
}

.toggle-container .toggle-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 10px);
  height: calc(100% - 10px);
  background-color: #196fb0;
  border-radius: 20px;
  transition: left 0.3s;
  z-index: 1;
}

#public-view:checked ~ .toggle-pill {
  left: 5px;
}

#cast-view:checked ~ .toggle-pill {
  left: calc(50% + 5px);
}

#public-view:checked + label {
  color: #fff;
}

#cast-view:checked + label {
  color: #fff;
}

.toggle-container label + input[type="radio"] + label {
  order: -1;
} */

/* Header styling */
.bookmark-header {
  position: relative;
}

.icon {
  padding: 0.3rem;
  padding-top: 0;
  text-decoration: none;
}

.icon a:hover {
  text-decoration: none;
}

.icon img {
  fill: white;
  transition: transform 0.3s, opacity 0.3s;
}

.icon img:hover {
  opacity: 0.5;
}
