/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #001f10; /* Deep green */
  color: #fff;
  overflow-x: hidden;
}

/* Logo and Header */
header {
  text-align: center;
  padding: 20px 0;
}
.logo {
  width: 200px;
}

/* Import a beautiful serif font (Playfair Display) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

.company-name {
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  text-align: center;
  margin: 40px 0;
  background: linear-gradient(90deg, #ffd700, #ffcc00, #ffb700, #fff3b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 
    2px 2px 5px rgba(0,0,0,0.7),
    0 0 20px rgba(255,215,0,0.6);
}

/* Container for left + right layout */
.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 50px auto;
  max-width: 800px;
  padding: 0 40px;
}

/* Golden Button Style */
.gold-button {
  flex: 1;
  text-align: center;
  margin: 0 20px;
  padding: 40px 0;
  font-size: 2em;
  font-weight: bold;
  color: #fff8dc;
  text-decoration: none;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffd700, #ffb700);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  box-shadow: 
    inset 0 4px 8px rgba(255, 255, 255, 0.6),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(0,0,0,0.5);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.gold-button:hover {
  background: linear-gradient(145deg, #ffcc00, #e6ac00);
  box-shadow: 
    inset 0 6px 10px rgba(255, 255, 255, 0.8),
    inset 0 -6px 10px rgba(0, 0, 0, 0.6),
    0 12px 20px rgba(0,0,0,0.6);
  transform: scale(1.05);
}
.gold-button:active {
  background: linear-gradient(145deg, #e6ac00, #cc9900);
  box-shadow: 
    inset 0 4px 10px rgba(0, 0, 0, 0.7),
    0 4px 10px rgba(0,0,0,0.5);
  transform: scale(0.98);
}

/* Background Video */
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
  pointer-events: none;
}

/* Main Layout */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Grid of Votes */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Contestant Card */
.vote-card {
  background: rgba(0, 32, 0, 0.75);
  border: 2px solid gold;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}
.vote-card:hover {
  transform: scale(1.02);
}

/* Contestant Image */
.vote-card img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Info Section */
.vote-info {
  padding: 15px;
  text-align: center;
}
.vote-name {
  font-size: 1.3em;
  font-weight: bold;
  color: #00ff99;
  cursor: pointer;
  user-select: all;
}
.vote-count {
  margin-top: 8px;
  font-size: 1.2em;
  color: gold;
}

/* Ranking Number */
.vote-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 2em;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 8px;
  color: gold;
  z-index: 2;
  text-shadow: 0 0 10px gold;
  opacity: 0.85;
}

/* Welcome Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content {
  text-align: center;
  background: #003300;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid gold;
  max-width: 800px; /* doubled from 400px */
  box-shadow: 0 0 10px gold;
}
.modal-content h2 {
  color: gold;
  font-size: 1.8em;
}
.modal-content p {
  margin: 15px 0;
  font-size: 1em;
  line-height: 1.5;
}
.modal-content button {
  padding: 10px 25px;
  background: gold;
  border: none;
  font-weight: bold;
  font-size: 1em;
  color: #003300;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.modal-content button:hover {
  background: #ffd700;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 8888;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 90px;
  color: gold;
  cursor: pointer;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .vote-grid {
    padding: 10px;
    gap: 15px;
  }
  .modal-content {
    width: 90%;
  }
}

.modal-scroll {
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
  padding-right: 10px;
}
.modal-scroll p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Overlay for enlarged image */
#overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
#overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px #000;
  border-radius: 10px;
  cursor: pointer;
}

/* Fixed Buttons */
.fixed-app-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007a3d;
  color: white;
  padding: 20px 20px;
  font-size: 35px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  text-decoration: none;
  transition: background 0.3s;
}
.fixed-app-button:hover {
  background-color: #005f2e;
}

/* REFRESH BUTTON */
.fixed-app-button-left {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #007a3d;
  color: white;
  padding: 20px 35px;
  font-size: 35px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.fixed-app-button-left:hover {
  background-color: #005f2e;
}

/* === COUNTDOWN STYLING === */
#countdown-container {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 20px;
  border: 2px solid gold;
  border-radius: 10px;
  z-index: 10000;
  box-shadow: 0 0 15px gold;
}

#countdown-container h2 {
  color: gold;
  font-size: 1.2em;
  margin-bottom: 5px;
  text-shadow: 0 0 10px gold, 0 0 20px #ffcc00;
}

#countdown {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

#countdown span {
  color: gold;
  margin: 0 4px;
}

/* === SEARCH BOX STYLING === */
.search-container {
  text-align: center;
  margin: 25px auto 10px;
  z-index: 2;
  position: relative;
}

#searchBox {
  width: 80%;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: 25px;
  border: 2px solid gold;
  background: rgba(0, 32, 0, 0.75);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#searchBox::placeholder {
  color: #ccc;
}

#searchBox:focus {
  background: rgba(0, 64, 0, 0.9);
  box-shadow: 0 0 15px gold;
  transform: scale(1.03);
}

