body, html {
  color: #f4f4f4;
  height: 100%;
  margin: 0;
  font-family: 'Arial', sans-serif;
}

h1 {
  margin: 0;
}

input[type=number] {
  width: 100%;
  max-width: 120px;
  padding: 10px;
  border: 2px solid #fff;
  border-radius: 5px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

label {
  display: inline-block;
  text-align: left;
  width: 120px;
}

.radio {
  display: inline-block;
  text-align: left;
  width: 80px;
}

.header {
  color: white;
  font-size: 1.2em;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  position: sticky; /* or 'sticky' if needed */
  margin-top: 55px; 
  z-index: 2;
}

.container {
  display: flex;
  flex-direction: row; /* direction */
  flex-wrap: wrap; /* wrap it! */
  /* flex-flow: row wrap; or type above just like it*/
  justify-content: center;
  align-items: center;
  align-content: center; /*there is no sense to use it, if there is only one line of items */

  margin: 0;
  list-style: none;

  padding: 0 0 40px 0; /* Add bottom padding */
}

.item {
  flex: 1 0 25%; /*force 3 items pre row! */
  background: rgba(255, 99, 71, 0.9); /* Semi-transparent salmon */
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 10px;
  padding: 20px;
  min-height: 175px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 1; /* Ensure item stays above normal content */
}

.item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.footer {
  flex-grow: 1;
  flex-basis: 100%;
  /*flex: 1 1; grow, shrink
  flex: 1 100% grow, basis */

  background: #87CEEB; /* Light Sky Blue */
  text-align: center;
  padding: 10px;

  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2; /* Ensure footer stays above content */
}

/* Base Styles for Buttons */
button {
  padding: 12px 25px;
  margin-top: 5px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: salmon; /* Consistent with the site's color scheme */
  border: none;
  border-radius: 30px; /* Rounded edges to match the site's style */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  outline: none;
  position: relative;
  z-index: 1;
}

/* Hover Effect */
button:hover {
  transform: translateY(-3px); /* Slight lift on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Slightly deeper shadow */
  background-color: #ff7f50; /* Slightly lighter salmon shade on hover */
}

/* Active Effect */
button:active {
  transform: translateY(1px); /* Push down slightly on click */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Reduce shadow on click */
}

/* Button Text Styling */
button span {
  position: relative;
  z-index: 2;
}

/* Ripple Effect (Optional) */
button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.4s ease-out;
  opacity: 0;
}

button:active::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Focused Button */
button:focus {
  outline: 2px solid #87CEEB; /* Sky blue outline for accessibility */
}



/* Big screen */
.menu {
  position: fixed;
  top: 0;
  z-index: 3; /* Keep the menu on top */
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background: #1E90FF; /* Dodger Blue */
  list-style: none;
  margin: 0;
  padding: 0; /* needed only for <ul> list */
  width: 100%;
}

.menu a {
  padding: 15px;
  color: white;
  text-decoration: none;
  display: block;
  transition: background 0.3s, color 0.3s;
}

.menu a:hover {
  background: deepskyblue;
  color: #f4f4f4;
}

/* Medium screens */
@media (max-width: 800px) {
  .item {
    flex: 1 1 calc(50% - 20px);
  }
}

/* Small screens */
@media (max-width: 500px) {
  .item {
    flex: 1 1 100%;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
  }

  .menu a {
    text-align: center;
    border-bottom: 1px solid #1E90FF;
    border-top: 1px solid #fff;
  }
}

.parallax {
  background-image: url("bg.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  color: #f4f4f4;
}

.stick {
  top: 0;
  position: fixed;
}
