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

body {
  font-family: 'Arial', sans-serif;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.6;
}

#game-container {
 
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HUD styles */
#hud {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

#yachtImg {
  display: none !important;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
}

#yachtImg {
  width: 100%;
  height: 100%;
}

#planeImg {
  display: none !important;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
}

#planeImg {
  width: 100%;
  height: 100%;
}

.stat-label {
  font-weight: bold;
  min-width: 100px;
}

.stat-value {
  margin-left: 10px;
}

#conviction-bar-container {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-left: 10px;
}

#conviction-bar {
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.5s ease-in-out;
}

#conviction-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-weight: bold;
  text-shadow: 0 0 2px #fff;
}

/* Game area styles */
#game-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#saylor-container {
  position: relative;
  width: 100%;
  text-align: center;
}

#saylor-image {
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

#saylor-image.reacting {
  transform: scale(1.05);
}

#speech-bubble {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 10px 15px;
  max-width: 250px;
  text-align: center;
  z-index: 10;
}

#speech-bubble:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #fff transparent transparent;
  z-index: 1;
}

#speech-bubble:before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: #333 transparent transparent;
  z-index: 0;
}

/* Calendar animation styles */
#calendar-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.calendar-page {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: flip-in 0.3s ease-in-out;
}

.month {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
}

.year {
  font-size: 18px;
  color: #333;
}

#headlines {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  text-align: center;
}

.headline {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 8px 15px;
  margin: 5px 0;
  display: inline-block;
  animation: slide-in 0.5s ease-out;
}

.headline.fade-out {
  animation: fade-out 1s ease-in forwards;
}

/* Action selection styles */
#action-container {
  margin-top: auto;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

#action-container h3 {
  margin-bottom: 10px;
  text-align: center;
}

#actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  background-color: #3498db;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.action-btn:hover {
  background-color: #2980b9;
}

.action-meme {
  background-color: #e74c3c;
}

.action-meme:hover {
  background-color: #c0392b;
}

.action-educational {
  background-color: #2ecc71;
}

.action-educational:hover {
  background-color: #27ae60;
}

.action-trap {
  background-color: #9b59b6;
}

.action-trap:hover {
  background-color: #8e44ad;
}

.action-btn.selected {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(52, 152, 219, 0.7);
  position: relative;
  z-index: 5;
}

.action-meme.selected {
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.7);
}

.action-educational.selected {
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.7);
}

.action-trap.selected {
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.7);
}

.action-btn.not-selected {
  opacity: 0.4;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Game message styles */
#game-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.event-notification {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: pop-in 0.3s ease-out;
}

.event-notification h3 {
  margin-bottom: 10px;
  color: #e74c3c;
}

.event-notification .impact {
  font-style: italic;
  margin-top: 10px;
  color: #7f8c8d;
}

.end-screen {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.end-screen h2 {
  margin-bottom: 20px;
}

.end-screen p {
  margin-bottom: 15px;
}

.end-screen button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #3498db;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.end-screen.win h2 {
  color: #2ecc71;
}

.end-screen.lose h2 {
  color: #e74c3c;
}

/* End screen buttons container */
.end-screen-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.end-screen-buttons button {
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.end-screen-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.end-screen-buttons button:active {
  transform: translateY(1px);
}

#play-again, #try-again {
  background-color: #f7931a;
  color: white;
  border: 2px solid #f7931a;
}

#return-to-start {
  background-color: white;
  color: #1a3b5d;
  border: 2px solid #1a3b5d;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Responsive styles */
@media (min-width: 768px) {
  #actions {
    flex-direction: row;
  }
  
  .action-btn {
    flex: 1;
  }
} 