* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fef6f9; 
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

.top-bar {
  background-color: pink; 
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 40px;
  background-color: pink;
}

.game-container {
  width: 80%;
  max-width: 500px;
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;

  margin: 20px auto;
}

.instruction {
  color: #555;
  margin-bottom: 20px;
}

.score-box {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1d3557;
}

.animal-card {
  margin: 10px auto;
}

.animal-image-area {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 20px;
  background: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 4px solid #cbd5e1;
  animation: fadeIn 0.5s ease;
}

.animal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.animal-emoji {
  font-size: 120px;
}

.hidden {
  display: none;
}

@keyframes floatAnimal {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px) scale(1.03);
  }
  100% {
    transform: translateY(0);
  }
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}

.option-btn {
  padding: 14px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: pink;
  color: rgb(36, 163, 150);
  transition: transform 0.2s, background 0.2s;
}

.option-btn:hover {
  transform: scale(1.04);
  background: #1d3557;
}

.option-btn.correct {
  background: #2a9d8f;
}

.option-btn.wrong {
  background: #e63946;
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.feedback {
  min-height: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.buttons button {
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: pink;
  color: #222;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.buttons button:hover {
  background: #fb8500;
  color: white;
}
body {
    
    background-size: cover; 
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed; 
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 192, 203); 
    padding: 10px; 
    position: relative;
    flex-direction: column;
}

nav {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;         
    gap: 20px;             
    justify-content: center;  
    align-items: center;     
}
nav ul li {
    display: inline-block;    
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2em;
    padding: 8px 12px; 
    border-radius: 5px;
    background-color: #f5f5dc; 
    transition: background-color 0.3s;
    font-family: 'Comic Sans MS', cursive, sans-serif; 
}

nav ul li a:hover {
    background-color: rgba(255, 192, 203);
}

    

h1 {
    margin: 0;
    font-size: 2em;
    font-family: 'Great Vibes', cursive;
    text-align: center;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 192, 203);
    text-align: center;
    padding: 5px 8px; /* pienempi */
    font-size: 0.9em;
}


.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #f5f5dc;
    color: #333;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.dropbtn:hover {
    background-color: yellow;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: yellow;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 100;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 1em;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgb(238, 137, 228);
}


.dropdown:hover .dropdown-content {
    display: block;
}
.info-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5dc;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.info-btn:hover {
    background-color: yellow;
}