/*body*/
html,
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 20px;
  text-align: justify;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  background-attachment: fixed;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #1565c0;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#header-image {
  max-width: 220px;
  border-radius: 50%;
  height: auto;
}
/* NAV */
nav ul {
  width: 100%;
  box-sizing: border-box;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background: #1e88e5;
  display: flex;
  overflow: hidden;
  justify-content: space-around;
  border-radius: 20px;
  font-size: 24px;
  border: 2px solid white;
}
.felirat {
  margin-left: 10%;
}
nav ul li {
  flex: 1;
  margin: 0;
}

nav ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px; /* fix magasság */
  text-decoration: none;
  color: white;
  font-weight: bold;
  background: #1e88e5;
  transition: background 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  background: #90caf9; /* világoskék */
  color: #0d47a1; /* sötétkék szöveg */
}
nav ul li:first-child a {
  border-radius: 20px 0 0 20px;
}

nav ul li:last-child a {
  border-radius: 0 20px 20px 0;
}

/* Tartalom */
main {
  width: 100%;
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  text-align: justify;
  box-sizing: border-box;
}
#drawing-wrapper {
  margin-left: 25%;
  width: 600px;
}
#draw-result {
  margin-left: 15%;
}
main h3 {
  margin-left: 15%;
}
#name-list-display {
  margin-left: 25%;
}
#nev {
  align-self: flex-end;
  text-align: right;
}
#facebook {
  margin-right: 83px;
}
.content-section {
  background: white; /* fehér keret */
  border-radius: 12px;
  padding: 20px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Termékek */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product {
  background: #ffffff;
  border: 2px solid #90caf9; /* világoskék keret */
  border-radius: 10px;
  padding: 10px;
  width: 200px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.product:hover {
  transform: translateY(-5px);
  border-color: #42a5f5; /* élénkebb kék */
}

/* Footer */
footer {
  background: #0d47a1; /* legsötétebb kék */
  color: white;
  text-align: center;
  padding: 15px 0;
  width: 100%;
}

/* Form stílus */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

input[type='email'],
textarea {
  padding: 12px;
  border: 2px solid #90caf9;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

button {
  padding: 12px 15px;
  background: #1e88e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

button:hover {
  background: #1565c0;
}

form .button-container {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}
#add-name-button {
  margin-bottom: 20px;
  font-size: 1rem;
  width: 200px;
  height: 60px;
}
#draw-button {
  font-size: 3rem;
  width: 400px;
  height: 90px;
}
#single-name {
  font-size: 1rem;
  width: 200px;
  height: 60px;
}
#nevvaltoz {
  font-size: 2rem;
  margin-bottom: 20px;
}
/* ======= MOBIL (max 600px) ======= */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  header img:last-child {
    margin-top: 10px;
  }

  nav ul {
    width: 200px;
    margin: 0 auto;
    flex-direction: column;
    font-size: 18px;
    border-radius: 20px;
  }

  nav ul li {
    flex: unset;
  }

  nav ul li a {
    height: 50px;
  }
  nav ul li:first-child a {
    border-radius: 20px 20px 0 0;
  }

  nav ul li:last-child a {
    border-radius: 0 0 20px 20px;
  }
  main {
    padding: 15px;
    font-size: 16px;
  }
  #facebook {
    margin-right: 150px;
  }
  .product-container {
    justify-content: center;
  }

  .product {
    width: 100%;
    max-width: 300px;
  }

  form {
    width: 100%;
  }

  #draw-button {
    font-size: 2rem;
    width: 100%;
    height: 70px;
  }
}

/* ======= TABLET (601px – 1024px) ======= */
@media (min-width: 601px) and (max-width: 1024px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    width: 360px;
    margin: 0 auto;
    flex-direction: column;
    font-size: 20px;
  }
  header img:last-child {
    margin-top: 20px;
  }
  nav ul li a {
    font-size: 28px;
    border-radius: 0 0 0 0;
  }
  nav ul li:first-child a {
    border-radius: 20px 20px 0 0;
  }

  nav ul li:last-child a {
    border-radius: 0 0 20px 20px;
  }
  .product-container {
    flex-direction: column;
    align-items: center;
  }

  .product {
    width: 100%;
    max-width: 400px;
  }

  main {
    font-size: 18px;
    padding: 20px;
  }
  #facebook {
    margin-right: 115px;
  }
  #draw-button {
    font-size: 2.5rem;
    width: 90%;
    height: 80px;
  }
}

/* ======= DESKTOP (1025px+) ======= */
@media (min-width: 1025px) {
  nav ul {
    font-size: 24px;
  }

  .product {
    width: 200px;
  }

  main {
    font-size: 20px;
    padding: 30px;
  }

  #draw-button {
    font-size: 3rem;
    width: 400px;
    height: 90px;
  }
}
