/* Stranger Things Font */
@font-face {
  font-family: "StrangerFont";
  src: url("fonts/Stranger Things Outlined.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Benguiat Font */
@font-face {
  font-family: "BenguiatFont";
  src: url("fonts/Benguiat Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

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


body {
  background: black;
  font-family: system-ui, sans-serif;
  color: white;
}


/* Layout */

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden; /* Prevent scrolling */
}


.header {
  text-align: center;
  margin-bottom: 1rem;
}


.subtitle {
  font-family: "BenguiatFont", serif;
  font-weight: bold;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}



/* Title */

.glowmail-title {

  font-family: "StrangerFont", monospace;

  color: transparent;
  -webkit-text-stroke: 0.7px #dc2626;
  font-size: 3rem;

  filter:
  drop-shadow(0 0 4px #dc2626)
  drop-shadow(0 0 8px rgba(220,38,38,0.6));

  letter-spacing: 0.15em;
}



/* Board */

.board {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 1.5rem;
}

/* Grid / Rows */

.rows-container {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Tuned for better alignment with wires */
  position: relative;
  z-index: 2;
  padding-top: 5px;
}


.letter-row {
  display: flex;
  justify-content: space-between;
  padding: 0 4rem; /* Side padding */
}

/* Adjust specific rows to look more organic/staggered like the image */
#row2 {
    padding: 0 2rem; 
}


.letter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}


/* Bulbs */

.light-bulb {
  width: 24px;
  height: 24px;

  border-radius: 50%;

  opacity: .7;

  transition: .3s;
}


.light-bulb.active {
  opacity: 1;
  transform: scale(1.3);

  animation: pulse .3s ease-in-out;
}


@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}


/* Letters */

.letter-btn {
  background: none;
  border: none;

  color: white;

  font-size: 2rem;

  font-style: italic;

  cursor: pointer;

  font-family: cursive; /* Ideally a handwriting font */

  transition: .2s;
}


.letter-btn:hover {
  transform: scale(1.1);
}


/* Controls */

.controls-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.left-actions {
    display: flex;
    gap: 1rem;
}

.control-btn {
    padding: 0.7rem 1.8rem;
    background: transparent;
    border: 2px solid; /* Color defined in modifier */
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: system-ui, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
}

.control-btn:active {
    transform: scale(0.95);
}

/* Space - Yellow/Gold */
.btn-yellow {
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
}
.btn-yellow:hover {
    background: #fbbf24;
    color: black;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

/* Backspace - Pink/Rose */
.btn-pink {
    border-color: #ec4899;
    color: #ec4899;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.1);
}
.btn-pink:hover {
    background: #ec4899;
    color: white;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

/* Clear - Cyan (Sleek replacement for green) */
.btn-green {
    border-color: #22d3ee; 
    color: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}
.btn-green:hover {
    background: #22d3ee;
    color: black;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
}

/* Copy - Grey/White */
.btn-grey {
    border-color: #9ca3af;
    color: #9ca3af;
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.1);
}
.btn-grey:hover {
    background: #e5e7eb;
    color: black;
    box-shadow: 0 0 20px rgba(229, 231, 235, 0.4);
}


/* Message Display */

.message-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.message-display {
    background: rgba(220, 38, 38, 0.15); /* Slight reddish tint */
    width: 100%;
    max-width: 700px;
    padding: 1rem;
    text-align: center;
    border-radius: 50px; /* Rounded like buttons */
    border: 1px solid rgba(220, 38, 38, 0.2); /* Subtle red border */
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px); /* Glass effect */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.message-display:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.4);
    color: white;
}
