:root {
  --color-1: #264653;
  --color-2: #2a9d8f;
  --color-3: #e9c46a;
  --color-4: #f4a261;
  --color-5: #e76f51;
  --text-light: #ffffff;
}

/* BODY */
body {
  font-family: 'Proza Libre', sans-serif;
  margin: 0;
  margin-top: 60px; /* Tilaa naville */
  min-height: 100vh;
  background: #f9f9f9;
  /*display: flex;*/
  padding-bottom: 50px;/*tila footerille */
}
/*CONTENT */
.content {
  padding-left: 50px;
  padding-right: 50px;
}

/*container-300 
.container-300 {
  border-right: 40px;
}*/
/* Varmista, että #box2 ul näkyy listana: */
div#box2 ul {
    display: block !important;
    list-style-type: disc !important;
    margin-left: 20px !important;
    padding-left: 40px !important;
}



.container {
  padding-left: 50px;
}
/* PELILAUTA */
.board {
  width: 400px;
  height: 400px;
  max-width: 50vmin;
  max-height: 50vmin;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 20px auto;
}

.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(6vmin);
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cell:nth-child(5n+1) { background-color: var(--color-1); color: var(--text-light); }
.cell:nth-child(5n+2) { background-color: var(--color-2); color: var(--text-light); }
.cell:nth-child(5n+3) { background-color: var(--color-3); color: #000; }
.cell:nth-child(5n+4) { background-color: var(--color-4); color: #000; }
.cell:nth-child(5n+5) { background-color: var(--color-5); color: var(--text-light); }

.cell.taken {
  pointer-events: none;
  opacity: 0.7;
}

.cell:not(.taken):hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.cell.winner {
  box-shadow: 0 0 15px 5px gold;
  border: 2px solid gold;
  z-index: 1;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.modal-content p {
  font-size: 1.5em;
  margin-bottom: 20px;
}

/* NAPPI */
button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1em;
  background-color: var(--color-2);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: var(--color-1);
}

/* NAVIGAATIO */
#navbar {
  width: 100%;
  height: 50px;
  background-color: #00b6b0;
  position: fixed;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  color: red;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

#navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  color: white;
}


#navbar li {
  display: inline-block;
}

#navbar li a, .dropbtn {
  display: inline-block;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

#navbar li a:hover, .dropdown:hover .dropbtn {
  background-color: #a6e9d7;
  color: black;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffc87c;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown-content ul {
	display: block; /* Varmista, että pudotusvalikon lista on block */
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #00b6b0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* FOOTER */
.footer {
  width: 100%;
  background-color: #00b6b0;
  padding: 10px 0;
  color: white;
  text-align: center;
  position: fixed;
  bottom: 0;
  font-family: 'Proza Libre', sans-serif;
}

/* RESPONSIVE NAV */
@media screen and (max-width: 768px) {
  #navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    height: auto;
  }

  .hamburger {
    display: flex;
  }

  ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }

  ul.active {
    display: flex;
  }

  li {
    width: 100%;
    text-align: left;
    background-color: #00b6b0;
  }

  li a {
    padding: 10px;
    width: 100%;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }
}
