/* General body styles */
body {
    font-family: Arial, sans-serif;
    color: #0C243C;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* Header styles */
header {
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 4px solid #E94D40;
}

/* Logo image */
header #logo img {
    display: inline-block;
    width: 380px;
    height: auto;
}

/* Navigation styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    background-color: #0C243C;
    font-size: 1.1rem;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #E94D40;
    color: #fff;
}

/* Banner */
.banner {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    display: inline-block;
}

.banner img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Wrapper for content */
.wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Section styling */
section {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* Headings */
h1 {
    color: #E94D40;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

h2 {
    color: #0C243C;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

/* Paragraphs */
p {
    line-height: 1.8;
    margin: 8px 0;
    font-size: 1.1rem;
    text-align: center;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #0C243C;
}

th {
    background-color: #E94D40;
    color: #fff;
    padding: 12px;
    text-align: center;
}

td {
    padding: 10px;
    font-size: 1rem;
    text-align: center;
}

/* Images in sections */
section img {
    display: block;
    margin: 20px auto;
    max-width: 70%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Form styles */
form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
    text-align: left;
}

form input, form select, form button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #0C243C;
    font-size: 1rem;
}

form button {
    background-color: #E94D40;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0C243C;
}

/* Footer styles */
footer {
    background-color: #0C243C;
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    font-size: 1rem;
    margin-top: 40px;
    border-top: 4px solid #E94D40;
}

/* Modal styles */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 999;
  pointer-events: none;
}

.modal.show {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
  pointer-events: auto;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid white;
}

#modalImage {
    transform: none;
}

/* Gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 20px; 
}

/* Cake card containers */
.cake {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    text-align: center;
    border-radius: 10px;
    padding: 0.5rem 1rem; 
    background-color: #fff; 
}

/* Cake title container */
.cake > p:first-of-type {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #0C243C;
    border: 1px solid rgba(12,36,60,0.3);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.4;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

/* Thumbnail images inside cake cards */
.cake img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cake img:hover {
    transform: scale(1.05);
}

/* Allergens container */
.allergens {
    font-size: 0.9rem;
    font-style: italic;
    color: #0C243C;
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.3rem;
    text-align: center;
    line-height: 1.4;
    box-shadow: none;
}

.cake .allergens {
    word-wrap: break-word;
}

/* Responsiveness */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}
