.background {
  background-image: url(../images/siciliana\ pizza.jpg);
  background-size: cover;
  background-position: center center;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Header styling */
header {
  background-color: white;
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 60px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  box-sizing: border-box;
}

header h1 {
  font-size: 30px;
  margin: 0;
  color: black;
  font-style: oblique;
}

header p {
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 20px;
  font-style: oblique;
}

header p a {
  color: blue;
  font-weight: bold;
  font-size: 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.phone-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

/* Navigation styling */
nav ul li a {
  background-color: white; /* Default background */
  color: black; /* Default text color */
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease; /* Smooth color change */
}

nav ul li a:hover {
  background-color: black; /* New background on hover */
  color: white; /* New text color on hover */
}

.temporary_close {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Ensure it appears above other content */
}

/* Flexbox container for center content */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 69px;
  width: 100%;
}

/* Textbox Styling */
.textbox {
  width: 50%;
  height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: whitesmoke;
  position: relative;
  padding-top: 50px;
  padding: 20px;
  border-radius: 30px;
  border: solid black 5px;
  transition: all 0.3s ease;
  transform-style: preserve-3d; /* Enables 3D effect */
}

/* Adding a crust */

.textbox:hover {
  transform: rotateX(10deg) rotateY(10deg); /* Creates the tilt effect */
}

.textbox h1 {
  font-size: 35px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  margin-bottom: 20px;
  color: black;
  text-shadow: 2px 2px 100px rgba(0, 0, 0, 0.8);
  /* Adjust shadow for black text */
  padding: 0 20px;
  font-style: oblique;
}

.textbox h2 {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  margin-top: -10px;
  color: black;
  text-shadow: 2px 2px 100px rgba(0, 0, 0, 0.8);
  /* Adjust shadow for black text */
  padding: 0 20px;
  font-size: 20;
  font-style: oblique;
}

/* Logo Styling */
.logo {
  background-image: url(../images/Logo.png);
  width: 480px;
  height: 300px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  left: 10px;
  top: 40%;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 70px;
}

/* New Image Boxes Section */
.image-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: -21px;
  z-index: 1;
}

.image-box {
  width: 1000%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 70px;
}

.coca-cola {
  background-image: url(../images/siciliana.jpg);
}

/* Footer */
.rights {
  background-color: white;
  color: black;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px;
  font-size: 12px;
  z-index: 2;
}

/* Footer Content */
.rights p {
  margin: 0;
  padding: 0;
}

.rights {
  position: fixed;
  z-index: 1000;
}

/* ========================= */
/* MENU PAGE STYLES */
/* ========================= */

/* Flexbox container for menu page content */
/* ========================= */
/* MENU PAGE STYLES */
/* ========================= */

/* Flexbox container for menu page content */
.menu {
  display: flex;
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Align items vertically */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 30px; /* Space between items */
  margin-top: 70px; /* Push below header */
}

/* Second row of menu items */
.menu-2 {
  display: flex;
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Align items vertically */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 30px; /* Space between items */
  margin-top: 20px; /* Add space between first and second row */
}

.menu-3 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: -10px;
}

.menu-4 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* Individual menu items (Kaprichosa, Venecia, etc.) */
.Kaprichosa,
.venecia,
.formadji,
.weenie,
.vegetarian,
.assorti,
.milano,
.primavera,
.popai,
.siciliana,
.peperoni,
.adds {
  width: 450px;
  height: 300px;
  background-size: cover;
  background-repeat: no-repeat;
  /* background-position: center; */
  border-radius: 70px;
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
  transition: transform 0.3s ease-in-out; /* Smooth transition */
}

.Kaprichosa:hover,
.venecia:hover,
.formadji:hover,
.weenie:hover,
.vegetarian:hover,
.assorti:hover,
.milano:hover,
.primavera:hover,
.popai:hover,
.siciliana:hover,
.peperoni:hover,
.adds:hover {
  transform: scale(1.1); /* Slightly increase size on hover */
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3); /* Add a shadow effect */
}

/* Background images for each menu item */
.Kaprichosa {
  background-image: url(../images/kapritchoza\ pizza.jpg); /* Example image path */
}

.venecia {
  background-image: url(../images/venezia\ pizza.jpg); /* Example image path */
}

.formadji {
  background-image: url(../images/formadji\ pizza.jpg); /* Example image path */
}

.weenie {
  background-image: url(../images/krenvirsh\ pizza.jpg); /* Example image path */
}

.vegetarian {
  background-image: url(../images/vegitariana\ pizza.jpg); /* Example image path */
}

.assorti {
  background-image: url(../images/asorti\ pizza.jpg);
}

.milano {
  background-image: url(../images/milano\ pizza.jpg);
}

.primavera {
  background-image: url(../images/primavera\ pizza.jpg);
}

.popai {
  background-image: url(../images/popai\ pizza.jpg);
}

.siciliana {
  background-image: url(../images/siciliana\ pizza.jpg);
}

.peperoni {
  background-image: url(../images/peperoni.jpg);
}

.adds {
  background-image: url(../images/adds.jpg);
}

.textbox-menu h1 {
  font-size: 50px;
  font-weight: bold;
  color: black;
  margin: 0;
}

/* Top White Strip */
.top-text {
  width: 100%;
  height: 50px;
  background-color: #f9f9f9;
  position: absolute;
  top: 0;
  left: 0;
  border-top-left-radius: 70px;
  border-top-right-radius: 70px;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  color: black;
  font-style: oblique;
}

/* White strip at the bottom (added for visual line) */
.bottom-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f9f9f9; /* White background for the bottom text area */
  border-bottom-left-radius: 70px;
  border-bottom-right-radius: 70px;

  padding: 10px 0; /* Padding to create space for the text */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Text styles for the bottom text */
.text-line {
  margin: 3px 0;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: black;
}

/* Contact-page-style */

.content-c {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 69px;
}

.textbox-c {
  width: 30%;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  position: relative;
  padding-top: 50px;
  padding: 20px;
  border-radius: 70px;
  border: 5px solid black;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.Nadejda {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f4f3f6;
  position: relative;
  padding-top: 30px;
  padding: 20px;
  border-radius: 30px;
  border: solid black 5px;
  z-index: 1;
  overflow: hidden; /* Prevents image from overflowing */
  pointer-events: auto;
  font-style: oblique;
}

a:link {
  text-decoration: none;
}

a:hover {
  text-transform: capitalize;
}

a:active {
  color: orangered;
}

.Nadejda .glovo-image {
  background-image: url(../images/delivery_with_glovo-314x300.png);
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: -1;
  left: 10px;
  transition: transform 0.3s ease-in-out; /* Smooth animation */
}

.Nadejda .google-pin {
  background-image: url(../images/rsz_google-pin-web.png);
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  position: absolute;
  overflow: hidden;
  left: 67%;
  margin-top: -1.5%;
}

.Nadejda:hover .glovo-image {
  transform: translateX(75%); /* Moves image 30px to the right */
}

.Nadejda .glovo-image {
  transform: translateX(0); /* Return to original position */
}

.Kostinbrod {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f4f3f6;
  position: relative;
  padding-top: 30px;
  padding: 20px;
  border-radius: 30px;
  border: solid black 5px;
  z-index: 1;
  margin-bottom: 20px;
  overflow: hidden;
  pointer-events: auto; /* Allow interaction with the container */
  font-style: oblique;
}

.Kostinbrod .google-pin {
  background-image: url(../images/rsz_google-pin-web.png);
  width: 100%;
  height: 100%;
  display: flex;
  background-repeat: no-repeat;
  margin-top: -16.3%;
  margin-left: 137%;
}

.Kostinbrod .phone {
  background-image: url(../images/phone-icon-vector-illustration-design-Graphics-17967396-1-1-580x386-removebg-preview.png);
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  left: -7%;
  transition: transform 0.3s ease-in-out;
  pointer-events: all; /* Allow interaction with the phone */
}

.Kostinbrod h1 {
  z-index: 1;
}

.Kostinbrod h2 {
  z-index: 1;
}

/* General styles for the header */
.header-c {
  text-align: center;
  padding: 20px;
  font-size: 20px;
  z-index: 2;
}

/* Styling for the Facebook link */
/* .facebook-link {
  text-decoration: none;
  font-size: 24px;
  display: flex;
  align-items: center;
} */

/* Facebook icon styling */
.facebook-icon {
  width: 30px; /* Icon size */
  height: 30px;
  margin-right: 10px; /* Space between icon and text */
}

.Kostinbrod {
  position: relative;
  z-index: 10; /* Ensure the container is clickable */
}

.schedule {
  width: 100%;
  background-color: #f4f3f6;
  color: black;
  border-radius: 30px;
  margin-bottom: 2%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  justify-content: center;
  align-items: center;
  justify-items: center;
  border: solid 5px black;
  margin-top: -1%;
}

.schedule p {
  text-align: center;
  font-size: 20px;
}

@media (max-width: 768px) {
  /* Stack header elements for better readability on mobile */
  header {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
    height: 30%;
    top: 0;
    z-index: 1000;
  }

  /* Hide <p> element (phone numbers) on mobile */
  header p {
    margin: 0;
    display: fixed;
    flex-direction: row;
    align-items: center;
    font-size: 130%;
  }

  .facebook {
    margin-bottom: 16%;
    margin-top: 15%;
    text-align: center;
    justify-content: center;
    font-size: 150%;
  }

  .content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px;
    margin-top: 69px;
    width: 100%;
  }

  /* Adjust logo size on mobile */
  .logo {
    width: 85%;
    height: 85%;
    position: fixed; /* Change to relative to stay inside the header */
    left: 0; /* Ensure it stays within the screen */
    top: 90px;
    margin-right: 15px;
  }

  /* Adjust header h1 font size for mobile */
  header h1 {
    font-size: 200%; /* Slightly smaller font size */
    margin-top: 5px;
  }

  /* Navigation styling for mobile */
  nav ul {
    flex-direction: row; /* Align items horizontally */
    justify-content: center; /* Center the buttons */
    padding-top: 10px;
  }

  nav ul li {
    margin: 0 15px; /* Space between nav items */
    justify-content: center;
  }

  nav ul li a {
    font-size: 100%; /* Adjust font size for mobile */
    padding: 8px 12px;
    border-radius: 20%;
    font-weight: bold;
    outline: 1px solid black; /* Permanent black outline */
    outline-offset: 1px; /* Optional: Adds space between outline and button */
  }

  a {
    z-index: 9999;
    position: relative;
  }

  /* Adjust the spacing between the textbox and header on mobile */
  .textbox {
    margin-top: 38%; /* Adjust this value for more or less space */
    width: 100%;
    height: 100%;
  }

  .textbox h1 {
    font-size: 30px;
    margin-left: 25%;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: -5%;
  }

  .textbox h2 {
    font-size: 25px;
    margin-left: 30%;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  }

  .image-box {
    width: 90%;
    height: 150px;
  }

  .menu {
    margin-top: 55%;
    width: 100%;
  }

  .menu-2 {
    width: 100%;
  }

  .menu-3 {
    width: 100%;
  }

  .menu-4 {
    width: 100%;
  }

  .Nadejda {
    margin-top: 38%;
    height: 150%;
  }

  .Nadejda .glovo-image {
    pointer-events: none;
    background-image: url(../images/glovo-phone.png);
    width: 100%;
    height: 100%;
    display: flex;
    margin-top: 75%;
    top: -6px;
    left: 5px;
  }

  .Nadejda .google-pin {
    background-image: url(../images/rsz_rsz_google-pin-web.png);
    width: 100%;
    height: 100%;
    display: fixed;
    overflow: hidden;
    left: 53%;
    margin-top: 0%;
  }

  .Kostinbrod .phone {
    display: none;
    background-image: url(../images/phone-device.png);
    width: 30%;
    height: 30%;
    margin-top: 32%;
  }

  .Kostinbrod .google-pin {
    background-image: url(../images/rsz_rsz_google-pin-web.png);
    width: 100%;
    height: 100%;
    display: fixed;
    overflow: hidden;
    margin-left: 159%;
    margin-top: -75%;
  }

  .schedule {
    margin-bottom: 20px;
    gap: 1%;
    margin-top: -5%;
  }

  .schedule p {
    text-align: center;
    font-size: 20px;
  }
}
