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

/* F1 PADDOCK NIGHT RACE THEMES */

/* Default State (Applies to background & text styling rules) */
:root {
    --bg-color: #0d0f12;          /* Asphalt Dark Jet Black */
    --paper-bg: #1a1d24;          /* Slate Dark Grey Paper */
    --text-color: #ffffff;        /* Pure White Typography */
    --accent-glow: #e10600;       /* F1 Signature Red */
    --line-color: rgba(225, 6, 0, 0.15); 
}

body {
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
}

h1 {
  position: relative;
  /* ensures it stays above the notebook */
  z-index: 3; 
  color: var(--text-color);
/* adds space between title and notebook */
  margin-top: 40px;
  margin-bottom: 30px; 
  text-align: center;
  font-size: 2rem;
  letter-spacing: 1px;
}

#poem-generator label {
  display: block;
  text-align: center;
  margin-bottom: 12px;   /* Space between the label text and the input box */
  font-size: 1.05rem;
  color: var(--text-color);
  opacity: 0.9;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  /* space between input and button */
  gap: 15x; 
  margin-bottom: 35px;
}

/* Adjusts the input box pad fields */
input[type="text"] {
  font-size: 1rem;
  padding: 10px 15px;    /* Comfort padding inside the type field */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background-color: #1a1d24;
  color: #ffffff;
  outline: none;
}

/* input {
  font-size: 1rem;
  padding: 8px;
  border: 1px solid #333;
  border-radius: 4px;
} */

.submit-button {
  font-size: 1rem;
  padding: 10px 20px;
  background-color: var(--accent-glow); 
  color: #000000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px var(--line-color);
  transition: all 0.3s ease;
}

  /* subtle hover effect */
button:hover {
  background-color: var(--accent-glow); 
}

.paper {
    position: relative;
    width: 90%;
    max-width: 800px;
    min-width: 400px;
    height: 480px;
    margin: 0 auto;
    background: var(--paper-bg);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, .3);
    border-radius: 10px;
    overflow: hidden;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.paper::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 60px;
    background: radial-gradient(rgba(255,255,255,0.1) 6px, transparent 7px) repeat-y;
    border-right: 3px solid var(--accent-glow); 
    background-size: 30px 30px;
    box-sizing: border-box;
}
.paper-content {
    position: absolute;
    top: 30px;
    right: 0;
    bottom: 30px;
    left: 60px;
    background: linear-gradient(transparent, transparent 28px, var(--line-color) 28px);
    background-size: 30px 30px;
}
.paper-content #poem {
    width: 100%;
    height: 100%;
    line-height: 30px;
    background: transparent;
    padding: 0 10px;
    border: 0;
   color: var(--text-color); 
    font-family: monospace;   
    font-weight: bold;
    font-size: 18px;
    box-sizing: border-box;
    /*keep line breaks and wrap text*/
    white-space: pre-wrap; 
}

.paper-content textarea{
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    line-height: 30px;
    background: transparent;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: mediumblue;
    font-family: cursive;
    font-weight: bold;
    font-size: 18px;
    box-sizing: border-box;
    z-index: 1;
}

.timing-tower {
    /* Crucial Layout Anchors: Detaches the tower from the main stack and pins it left */
    position: fixed;
    top: 30px;
    left: 20px;
    /* Keeps it layered securely on top of everything else */
    z-index: 1000; 
    width: 280px;
    background-color: rgba(21, 24, 30, 0.85); 
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto Condensed', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Each row component inside our tower block */
.tower-row {
    display: flex;
    align-items: center;
    height: 36px;
    margin-bottom: 2px;
    background-color: #15181e;
    overflow: hidden;
}

.tower-row:last-child {
    margin-bottom: 0;
}

/* Position Ranks (P1 styling block) */
.rank-box {
    width: 32px;
    height: 100%;
     /* Dynamic team track color */
    background-color: var(--accent-glow);
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

/* Team Identifier Labels */
.team-code {
    padding-left: 12px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-grow: 1;
}

/* Telemetry Lap Time Block */
.time-box {
    height: 100%;
    padding: 0 12px;
    background-color: #0d0f12;
    color: #ffffff;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

/* Control Selector Dropdown Section Styling */
.selector-row {
    background-color: #1f242d;
    padding: 0 10px;
    justify-content: space-between;
}

.tower-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #8892b0;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.tower-dropdown {
    background: #0d0f12;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

