/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}

/* Dark mode */
body.dark {
  background: #0b0b0b;
  color: white;

  --nav-bg: #111;
  --nav-border: #222;

  --btn-bg: #222;

  --card-bg: #141414;
  --card-shadow: 0 0 25px rgba(255,255,255,0.05);

  --accent: #ffcc00;
}

/* Light mode */
body.light {
  background: #f5f5f5;
  color: #111;

  --nav-bg: #ffffff;
  --nav-border: #ddd;

  --btn-bg: #e6e6e6;

  --card-bg: #ffffff;
  --card-shadow: 0 0 20px rgba(0,0,0,0.08);

  --accent: #cc9900;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

/* Theme button */
.theme-btn {
  background: var(--btn-bg);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.theme-btn:hover {
  opacity: 0.8;
}

/* Hero (kontakt, önskemål, funfacts) */
.hero {
  text-align: center;
  padding: 60px 20px 10px;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero p {
  opacity: 0.8;
  font-size: 1.1rem;
}

/* Tiles (kontakt, tack, startsida) */
.tiles {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.tile {
  background: var(--card-bg);
  padding: 26px;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  transition: 0.25s;
  text-decoration: none;
  color: inherit;
}

.tile:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}

.tile h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.tile p {
  opacity: 0.85;
}

/* Funfact layout */
#funfact-box {
  max-width: 700px;
  margin: 40px auto 80px;
  padding: 20px;
  text-align: center;
}

#funfact-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  margin-bottom: 25px;
  transition: 0.3s;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#funfact-text {
  font-size: 20px;
  line-height: 1.4;
  opacity: 0.9;
}

/* Shuffle button */
#shuffle-btn {
  padding: 14px 26px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: black;
  cursor: pointer;
  transition: 0.2s;
}

#shuffle-btn:hover {
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.7;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 500px) {
  #funfact-card {
    padding: 24px;
  }
  #funfact-text {
    font-size: 18px;
  }
  #shuffle-btn {
    width: 100%;
  }
}
