/* ==================================================
   CHARACTER SCREEN
   ================================================== */

.characters {
    display: inline-flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    padding: 2rem;
    background: rgba(37, 58, 101, 0.8);
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 9px;
}
.character-row {
    display: flex
;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: auto;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.character-row.reverse {
  flex-direction: row-reverse;
}

.character-image img {
  width: 250px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}




.character-subtitle {
  font-size: 1.2rem;
  color: var(--accent-color-2);
  margin: 0.3rem 0 1rem 0;
  font-weight: 600;
  font-family: 'Arial', sans-serif; /* vaihtoehtoinen fontti, jos halutaan */
}

.character-text {
    flex: 1;
    font-size: 1rem;
    max-width: 560px;
    margin: auto;
    text-align: left;
}


.character-text h2 {
  margin-top: 0;
}

.character-text p {
    font-size: 1.2rem;
    margin-top: 0px;
}


/* Mobiili */
@media (max-width: 768px) {
  .character-row,
  .character-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .character-image img {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
}
