/* Base Styles */
:root {
  --primary-blue: #205781;
  --accent-teal: #4F959D;
  --soft-bg: #98D2C0;
  --main-bg: #F6F8D5;
  --dark-bg: #06202B;
  --accent-cream: #F5EEDD;
  --accent-mint: #7AE2CF;
  --accent-teal-dark: #077A7D;
  --text-dark: #333;
  --text-light: #fff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

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

body {
  font-family: 'Wellfleet', serif;
  background-color: var(--main-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header Styles */
header {
  background-color: var(--dark-bg);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.search-container {
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}

.search-bar {
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-family: 'Wellfleet', serif;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Game Modal Styles */
.game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
}

.game-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-teal-dark);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.modal-iframe {
  width: 100%;
  height: calc(100% - 40px);
  border: none;
  border-radius: var(--radius);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--primary-blue);
}

p {
  margin-bottom: 16px;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-teal-dark);
}

button, .cta-button {
  cursor: pointer;
  background-color: var(--accent-teal-dark);
  color: var(--text-light);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Wellfleet', serif;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

button:hover, .cta-button:hover {
  background-color: var(--accent-teal);
  transform: translateY(-2px);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 24px;
}

nav ul li a {
  color: var(--text-light);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-mint);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--text-light);
  border-radius: 10px;
}

/* Hero Section */
#hero {
  height: 90vh;
  background: linear-gradient(rgba(6, 32, 43, 0.7), rgba(6, 32, 43, 0.7)), url('https://www.pushgaming.com/uploads/Shamrock%20Saints/Shamrock-Saints_preview.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding: 0 16px;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  color: var(--text-light);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 32px;
}

/* About Section */
#about {
  padding: 80px 0;
  background-color: var(--soft-bg);
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.about-image {
  flex: 1;
  max-width: 25%;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text {
  flex: 2;
  text-align: center;
}

.about-text h2 {
  color: var(--primary-blue);
}

.about-text p {
  margin-bottom: 24px;
}

/* Games Section */
#games {
  padding: 80px 0;
  background-color: var(--main-bg);
}

#games h2 {
  text-align: center;
  margin-bottom: 8px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.game-card {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.1);
}

.game-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.05);
}

.game-card h3 {
  padding: 16px;
  text-align: center;
  margin-bottom: 0;
}

.play-button {
  display: block;
  width: 80%;
  margin: 0 auto 16px;
}

.game-iframe {
  display: none;
  height: 400px;
  padding: 16px;
}

.game-iframe iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}

.game-iframe.active {
  display: block;
}

/* Disclaimer Section */
#disclaimer {
  padding: 40px 0;
  background-color: var(--accent-cream);
}

.disclaimer-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.disclaimer-box h3 {
  color: var(--primary-blue);
}

.disclaimer-box p {
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 40px 0;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  margin-bottom: 8px;
}

.footer-links {
  margin-top: 16px;
}

.footer-links a {
  margin: 0 8px;
  color: var(--accent-mint);
}

.footer-links a:hover {
  color: var(--text-light);
}

/* Policy Pages */
#privacy-policy, #terms, #contact {
  padding: 80px 0;
}

#privacy-policy h1, #terms h1, #contact h1 {
  text-align: center;
  margin-bottom: 40px;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy-section {
  margin-bottom: 32px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.policy-section ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

/* Contact Page */
.contact-content {
  display: flex;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info, .contact-form {
  flex: 1;
  background-color: white;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-details {
  margin-top: 24px;
}

.contact-item {
  margin-bottom: 16px;
}

.contact-label {
  font-weight: bold;
  color: var(--primary-blue);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--primary-blue);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: 'Wellfleet', serif;
}

.form-group textarea {
  resize: vertical;
}

.contact-form .cta-button {
  width: 100%;
  margin-top: 8px;
}