/* ====== Grundlayout ====== */
body {
  margin: 0;
  height: 100vh;           /* hela skärmen */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1a1a1a;
  font-family: sans-serif;
  color: white;
}

/* ====== Huvudcontainer (allting ligger i denna) ====== */
.main-card {
  width: 90%;
  max-width: 600px;        /* max bredd på stora skärmar */
  height: 90vh;            /* nästan hela höjden */
  background: #222;
  border-radius: 20px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;        /* förhindrar att innehåll “trycker ut” kortet */
}

/* ====== Resultat-kortet ====== */
#resultCard {
  background: #333;
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
  word-wrap: break-word;
}

#resultCard.show {
  opacity: 1;
  transform: scale(1);
}

#display {
  font-size: 1.2rem;
  line-height: 1.5;
}

#author {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #aaa;
}

/* ====== Knappar ====== */
.buttons {
  margin-top: auto; /* längst ner i kortet */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

button {
  padding: 10px 20px;
  background: #444;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: #666;
}

/* ====== Responsiv mobil-styling ====== */
@media (max-width: 480px) {
  .main-card {
    width: 95%;
    height: 95vh;
    padding: 15px;
  }

  #display {
    font-size: 1rem;
  }

  #resultCard {
    padding: 15px;
    margin: 15px 0;
  }

  button {
    flex: 1 1 100%; /* knapparna staplas på små skärmar */
  }
.main-layout{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:30px;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:40px 20px;
  flex-wrap:wrap;
}

.center-card{
  flex:1 1 600px;
  display:flex;
  justify-content:center;
}

.right-card{
  flex:0 0 300px;
  min-width:280px;
}

.right-card .card{
  background: rgba(30,30,50,0.8);
  padding:20px;
  border-radius:12px;
  box-shadow:0 5px 20px rgba(0,0,0,0.2);
}

.right-card h3{
  margin-top:0;
  margin-bottom:10px;
  font-size:1.2rem;
}

#dailyDisplay{
  font-size:1rem;
  line-height:1.4;
}

}