button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
input {
  outline: none;
}
input:focus {
  box-sizing: 1px 1px 1px 1px blue;
}
p#message {
  position: fixed;
  top: 100px;
  left: 20px;
  text-align: center;
  font-size: 1.1em;
  font-family: cursive;
  color: rgb(220, 20, 60);
  height: 20px;
}
hr {
  height: 2px;
  border: none;
  background-color: rgb(0, 163, 22);
  width: 90%;
}
.header {
  font-family: cursive !important;
  justify-content: center;
  align-items: center;
  gap: 40px;
  background-color: rgb(185, 205, 73);
  display: flex;
  position: sticky;
  top: 0;
}
.header .h-one {
  display: flex;
  gap: 20px;
}
.header button {
  background: none;
  border: none;
  color: white;
}
.header .h-one button:hover {
  color: rgb(0, 163, 22);
}
.header .one {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.header h1 {
  font-family: 'Segoe UI';
  color: white;
}
.header .one img {
  height: 100px;
  width: 100px;
}
header .two {
  display: flex;
  justify-content: center;
  padding: 10px;
  background-color: white;
  gap: 20px;
}
header button {
  height: 40px;
  width: 150px;
  color: rgb(0, 163, 22);
  border: none;
  background-color: white;
  border: 1px solid black;
  border-radius: 10px;
  transition: all 0.3s ease;
}
header button:hover {
  color: white;
  background-color: rgb(0, 163, 22);
  border-color: white;
}
header input {
  height: 40px;
  width: 50%;
  border: 1px solid black;
  border-radius: 10px;
  text-align: center;
  outline: none;
}
header input:focus {
  border-color: rgb(0, 163, 22);
  box-shadow: 1px 1px 1px 1px greenyellow;
}
.login {
  height: 50px;
  width: 200px;
  font-size: 2ch;
  background: none !important;
  border: none !important;
  color: white;
  font-family: cursive;
  border-radius: 30px;
}
.login:hover {
  color: rgb(0, 163, 22);
}
.i-user {
  display: none;
  position: fixed;
  top: 80px;
  right: 10px;
  z-index: 100;
}
.i-user button {
  height: 50px;
  width: 300px;
  font-family: cursive;
  font-size: 2ch;
  color: rgb(0, 163, 22);
  border: 0.5px solid #ccc;
  border-radius: 0;
  background-color: white;
}
.i-user button:hover {
  color: white;
  background-color: rgb(0, 163, 22);
  border-color: slategray;
}
.m-user {
  height: 50px;
  width: 200px;
  font-size: 1.7ch;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: white;
  font-family: cursive;
  border: none;
  border-radius: 30px;
}
.m-user:hover {
  color: rgb(0, 163, 22);
}
.user:hover .i-user{
  display: block;
}
main {
  padding: 20px;
}
.sheets {
  color: rgb(0, 163, 22);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  justify-items: center;
}
.d-sheet h2 {
  color: skyblue;
  text-align: center;
  font-family: cursive;
}
.i-sheet {
  text-align: center;
  align-items: center;
  font-family: cursive;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  width: 350px;
}
.i-sheet img {
  height: auto;
  width: 150px;
  border-radius: 20px;
}
.i-sheet h3 {
  color: black;
}
.i-sheet p {
  color: orange;
}
.i-sheet button {
  height: 30px;
  width: 250px;
  background-color: rgb(255, 132, 0);
  color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
}
.i-sheet button:hover {
  background-color: rgb(86, 249, 255);
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.modal-content h2, .modal-content h4 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.modal-content input {
  width: calc(100% - 20px);
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  background-color: rgb(185, 205, 73);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
}
.modal-content button:hover {
   background-color: rgb(0, 163, 22);
}
.modal-content p {
  margin-top: 15px;
  font-size: 0.9em;
}
.modal-content a {
  color: rgb(185, 205, 73);
  cursor: pointer;
  text-decoration: none;
}
.modal-content a:hover {
  text-decoration: underline;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none !important;
  border: none !important;
  font-size: 1.5rem !important;
  color: red !important;
  cursor: pointer;
  padding: 0 !important;
  width: auto !important;
}
.close-btn:hover {
  color: black !important;
}

/* Cart and Orders View */
#cart, #orders {
  padding: 20px;
  font-family: cursive;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin: 20px auto;
  width: 80%;
  max-width: 800px;
  background-color: #f9f9f9;
}
#cart h3, #orders h2 {
  text-align: center;
  color: #333;
}
.remove-from-cart {
  background: none;
  border: none;
  color: red;
  font-size: 1.2em;
  cursor: pointer;
}
.check-out {
  width: 100%;
  padding: 10px;
  font-size: 1.2em;
  background-color: rgb(0, 163, 22);
  color: white;
  border: none;
  border-radius: 10px;
}
footer {
  position: fixed;
  bottom: 0;
  background-color: rgb(0, 163, 22);
  height: 35px;
  width: 100%;
  color: white;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
footer a {
  color: white;
  text-shadow: 1px 1px 1px 1px slategray;
}
footer p {
  width: 200px;
}
footer .one {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
footer .two {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
footer .three {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
footer .three img {
  height: 30px;
  width: 30px;
}

@media (max-width: 768px) {
  /* HEADER TUNING */
  .header {
    height: 30px;
    padding: 0 5px;
    gap: 5px;
    font-size: 0.4rem;
  }

  .header .h-one,
  .header .one,
  .header .h-two {
    gap: 5px;
    align-items: center;
  }

  .header .one img {
    height: 20px;
    width: 20px;
  }

  .header h1 {
    font-size: 0.4rem;
    margin: 0;
  }

  .login, .m-user {
    font-size: 0.6rem;
    height: 20px;
    padding: 0 5px;
    width: auto;
  }

  .header button {
    font-size: 0.5rem;
    height: 20px;
    padding: 0 3px;
  }

  .i-user {
    top: 30px;
  }

  /* TOP SEARCH BAR */
  header .two {
    padding: 5px 0;
    gap: 5px;
  }

  header button {
    height: 25px;
    font-size: 0.6rem;
    width: auto;
    padding: 0 8px;
  }

  header input {
    height: 25px;
    font-size: 0.6rem;
  }

  /* sheet GRID STAYS SAME */

  /* FOOTER TUNING */
  footer {
    height: 25px !important;
    padding: 0.2px !important;
    font-size: 0.5rem !important;
    gap: 5px !important;
  }

  footer .one,
  footer .two,
  footer .three {
    gap: 3px !important;
  }

  footer img {
    height: 15px !important;
    width: 15px !important;
  }

  footer p {
    width: auto;
    margin: 0;
  }

  marquee {
    font-size: 0.5rem;
  }
}
