/* --- Base / Page --- */
html, body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F2F2F2;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* --- Buttons (shared) --- */
button {
  width: 85px;
  background-color: lightgrey;
  color: #333;
  border: 1px solid #aaa;
  padding: 8px;
  margin: 4px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #d3d3d3;
}

button:active {
  background-color: #c0c0c0;
}

/* Specific button overrides */
#loginBtn,
#logoutBtn,
#cartBtn {
  background-color: #d3d3d3;
  color: #333;
  border: 1px solid #aaa;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#loginBtn:hover,
#logoutBtn:hover,
#cartBtn:hover {
  background-color: #d3d3d3;
}

#loginBtn:active,
#logoutBtn:active,
#cartBtn:active {
  background-color: #c0c0c0;
}

#reviewreservations {
  width: 250px;
  font-size: 13px;
  height: 60px;
}

#add-card-button {
  width: 90px;
  font-size: 13px;
  height: 40px;
}

/* --- Navigation --- */
.navbar {
  background-color: black;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.navbar .nav-left {
  display: flex;
  align-items: center;
}

.navbar .nav-left a {
  background-color: black;
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-right: 15px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.navbar .nav-left a:hover {
  background-color: lightgrey;
  color: #fff;
}

.navbar .nav-right {
  display: flex;
  align-items: center;
}

.navbar .nav-right img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.navbar .nav-right span {
  color: white;
  font-weight: bold;
  margin-right: 20px;
}

.navbar .nav-right button {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.navbar .nav-right button:hover {
  background-color: #d32f2f;
}

.nav-right a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  color: white;
  background-color: grey;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* --- Layout / Panels --- */
.panel-container {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin: 20px;
}

.left-panel {
  width: 20%;
  background-color: #f9f9f9;
  padding: 10px;
  overflow-y: auto;
}

.right-panel {
  width: 80%;
  padding: 10px;
  min-height: 800px;
  max-height: 1200px;
}

/* --- Features --- */
.features {
  flex-grow: 1;
  padding: 40px 15px;
  text-align: center;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.features .container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.features-scroll {
  max-height: 600px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

/* Shared feature card styles */
.feature,
.feature2,
.feature3,
.feature4 {
  width: 250px;
  padding: 20px;
  font-size: 9pt;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.feature {
  height: 150px;
  background: #f1f1f1;
}

.feature2 {
  height: 130px;
  background: yellow;
}

.feature3 {
  height: 130px;
  background: lightblue;
}

.feature4 {
  height: 130px;
  background: lightgreen;
}

.feature:hover,
.feature2:hover,
.feature3:hover,
.feature4:hover {
  background-color: #1F3D7A;
  color: white;
}

.feature a,
.feature2 a,
.feature3 a,
.feature4 a {
  text-decoration: none;
  color: black;
}

.feature a:hover,
.feature a:visited,
.feature a:active,
.feature2 a:hover,
.feature2 a:visited,
.feature2 a:active,
.feature3 a:hover,
.feature3 a:visited,
.feature3 a:active,
.feature4 a:hover,
.feature4 a:visited,
.feature4 a:active {
  color: black;
}

.feature h3,
.feature2 h3,
.feature3 h3,
.feature4 h3 {
  font-size: 20px;
}

.feature p,
.feature2 p,
.feature3 p,
.feature4 p {
  font-size: 14px;
}

/* --- Hero --- */
.hero {
  position: relative;
  background: url('https://source.unsplash.com/1600x800/?technology,abstract') center/cover no-repeat;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-content h2 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 19px;
  margin-bottom: 15px;
}

/* --- iframe --- */
iframe#centercourt {
  width: 100%;
  height: 800px;
  border: none;
  margin-top: 15px;
}

/* --- Footer --- */
footer,
.footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: bold;
  margin-top: auto;
}

.jsfooterextension {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: grey;
  max-height: 250px;
  height: 250px;
  font-size: 8pt;
}

/* --- Help button --- */
.help-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.help-button img {
  width: 40px;
  height: 40px;
}

/* --- JS Menu button --- */
.jsmenu {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  width: 50px;
  height: 50px;
  display: inline-block;
}

.jsmenu img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
