/* Reset browser to default */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Basic style of page */
body {
  background-color: #F5E6D3; /* Light tan */
  color: black; /* Text color */
  font-family: Arial, Helvetica, sans-serif; /* Font for the page */
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Intended to center the content and preventing larger screeen to stretch */
.container {
   max-width: 800px;
   margin: 0 auto;
}

/* Styling for the header */
header {
  text-align: center;
  margin-bottom: 40px;
  background-color: white;
}

/* Flex box styling for Navigation */
nav ul {
	list-style-type: none;
  padding: 10px 20px;
  border-radius: 5px;
  justify-content: center;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav li{
  background-color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  cursor: pointer;
}

/* Removes the blue from the links from the nav*/
nav a {
	text-decoration: none;
  color: inherit;  
}

/* Gives a hover feature to the Navigation */
nav li:hover {
	background-color: #e0e0e0; 
}

/* --- Styling for the smaller secondary navigation  --- */

.nav-2 ul {
  gap: 8px; /* smaller space between the buttons */
  padding: 5px 10px; /* smaller padding around the whole menu */
}

.nav-2 li {
  padding: 5px 12px; /* Had to shrink padding inside the buttons */
  font-size: 12px; /* Smaller text size */
  font-weight: normal; /* Makes the text less bulky compared to the main nav */
  border-radius: 4px; /*  Smaller rounded corners */
  background-color: #e8d8c3; /* Little darker tan to separate it from the white main nav */
}

/* Hover effect for the smaller buttons */
.nav-2 li:hover {
  background-color: #e0e0e0; /* Uses first navs #e0e0e0 color */
  color: white;
}

/* Styling for the sections: Done with white boxes with white shadows */

section {
  background-color: white;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

h2 {
  margin-top: 0;
  border-bottom: 2px solid #f5e6d3; /* adds a nice line under the h2*/
  padding-bottom: 10px;
  text-align: center; 

}

/* Styling for the clickable image / modul like feature */
.image-1, .image-2, .image-3, .image-4 {
  width: 400px;
  height: 440px;
  max-width: 100%;
  display: block;
  margin: 20px auto;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Gives the image a hover effect */
/* Instead of rewritting CSS code multiple times you can group same features for your classes */
.image-1:hover, .image-2:hover, .image-3:hover, .image-4:hover {
  transform: scale(1.05);
}

/* This styling hides the checkbox */
#img1, #img2, #img3, #img4 {
  display: none;
}

/* Hides the popup by default */
.popup {
  display: none;
}

/* Shows popup when the checkbox is pressed */
#img1:checked ~ .popup,
#img2:checked ~ .popup,
#img3:checked ~ .popup,
#img4:checked ~ .popup {
  display: block;
}

/* Darkens the background of overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
  cursor: pinter; /* Let's users know they can close modal*/
}

/* Modal and popup box */
/* With some youtube videos and some help from claude i was able to make a pop up modal with CSS utilizing the checkbox */
.important, .food, .bag, .partner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: 90%;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 2;
}



section {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Styling for the close button for the modals "responsive"*/
.close-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 6px 13px;
  background-color: #f5e6d3;
  color: black;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bolder;
  text-align: center;
  
}

.close-btn:hover {
  background-color: #e0d2c0
}

figcaption {
	text-align: center;
  font: 80%px;
}


