/* Base dark style */
:root {
  --main-color: #f30000;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
  font-family: 'Courier New', Courier, monospace;
  color: var(--main-color);
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

img {
  max-width: 100%;
  height: auto;
}

/* Background overlay */
#background-overlay {
  background: url('hands.png') bottom center / cover no-repeat;
  filter: invert(1) brightness(1.2) opacity(0.09);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Title */
#reflection-title {
  position: relative;
  z-index: 1;
  top: 30px;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 3rem;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 0 0 10px #f30000aa, 0 0 20px #f3000055;
  letter-spacing: 2px;
}

/* Main container */
.main-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  box-sizing: border-box;
  bottom: -90px;
}

/* Terminal display */
.terminal {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 20px #ff000055;
  border-radius: 8px;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

/* Typewriter effect styling */
#reflection-box {
  font-size: 1.2rem;
  white-space: pre-wrap;
  min-height: 100px;
}

/* Button styling */
#refresh-btn {
  background-color: #000000;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  padding: 10px;
  font-size: 1.1rem;
  margin: 2rem auto 0 auto;
  display: block;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#refresh-btn:hover {
  background-color: var(--main-color);
  color: black;
}

/* Footer styling */
footer {
  position: relative;
  bottom: -175px;
  z-index: 1;
  text-align: center;
  font-size: 0.9rem;
  color: #ff4444;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
  max-width: 90%;
  line-height: 1.4;
}

@media (max-width: 600px) {
  #background-overlay {
    background-size: contain;
    background-position: bottom center;
    object-fit: scale-down;
  }

  .terminal {
    padding: 1rem;
    height: 200px;
  }
}
