/* CSS Reset*/

* {
    box-sizing: border-box;
}

body, header, nav, main, footer {
    margin: 0;
    padding: 0;
}

html, body {
    color: #321809;
    background-color: #fff;
}

main h1,h2,h2,h4 {
    padding-left: 20px;
}

h1 {
    color: #321809;
    font-family: "Cormorant Garamond", serif;
    font-weight: bold;
    font-size: 45px;
    text-align: center;
}

h2 {
    font-size: 30px;
}

h2, h3, h4 {
    font-family: "Cormorant Garamond", serif;
    font-weight: bold;
}

p, li, a {
    font-family: "Courier Prime", monospace;
    font-size: 19px;
    padding-left: 20px;
}

/* Style rules for header */
header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    background-color: #ebe4d7;
    height: 200px;
}

/* Left side: icons */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align icons to left */
}

.icons {
    display: flex;
    gap:7px;
    margin-bottom: 5px;
}

.icon {
    width: auto;
    height: 25px;
}

header a {
    color: #b62b91;
    text-decoration: none;
}

/* Center: logo */
.header-center {
    position: absolute;
    left: 50%;
    top: 10px; /* adjust if needed */
    transform: translateX(-50%);
}

.logo {
    max-height: 160px; /* adjust as needed */
    width: auto;
    margin-bottom: 2px;
}

/* Style rules for hamburger menu */
.mobile-nav a {
    color: #b62b91;
    font-family: "Cormorant Garamond", serif;
    text-align: center;
    text-decoration: none;
    padding: 3%;
    display: block;
}

.mobile-nav a.menu-icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

/* Show mobile class, hide tablet-desktop class and menu-links id */
.mobile-nav {
    display: block;
}

.tablet-desktop {
    display: none;
}

#menu-links {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #562d0f;
    text-align: center;
}

#menu-links a {
    display: block;
    padding: 15px;
    color: #ebe4d7;
    text-decoration: none;
}

#menu-links a:hover {
    background-color: #b62b91;
}

nav a {
    font-size: 40px;
    color: #b62b91;
    font-weight: bold;
    text-decoration: none;
}

nav a:active {
    background-color: #ebe4d7;
    color: #b62b91;
}

nav a:hover {
    background-color: #562d0f;
    color: #ebe4d7;
}

/* Slideshow */
.slider {
    position: relative;
    height: 60vh;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* Menu */
.accordion {
    background-color: #fff;
    color: #321809;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 35px;
    transition: 0.4s;
}

.active, .accordion:hover {
    background-color: #ccc; 
}

.panel {
    padding: 0 18px;
    display: none;
    background-color: white;
    overflow: hidden;
}

/* Map style rule */
.contacts {
    display: grid;
    gap: 20px;
    padding: 20px;
}

.contact-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    margin-bottom: 10px;
    color: #321809;
}

.contact-card a {
    color: #b62b91;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card iframe {
    margin-top: 15px;
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 8px;
}

.contacts {
    grid-template-columns: 1fr;
}

/* Gallery section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Gallery items */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect on image */
.gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Downloadable menu button */
.button-wrapper {
    display: flex;
    justify-content: center;
    margin: 35px 0;
}

.button {
    display: block;
    padding: 15px 30px;
    font-size: 24px;
    cursor: pointer;
    color: #ebe4d7;
    background-color: #562d0f;
    border: none;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin: 0;
}

.button:hover {
    background-color: #b62b91;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(182, 43, 145, 0.6);
}

.button:active {
    background-color: #562d0f;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

/* style rules for footer */
footer {
    background-color: #ebe4d7;
    color: #321809;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

footer a {
    color: #b62b91;
    text-decoration: none;
    padding: 0;
}

.footer-menu {
    color: #b62b91;
    text-decoration: none;
}

footer ul li {
    margin: 0;
    padding-right: 1px;
    list-style-type: none;
    text-decoration: none;
    display: inline;
    text-align: center;
}

/* Media Query for Tablet Viewport */
/* Tablet Viewport: Style rules for nav area */
@media screen and (min-width: 768px), print {

    /* Tablet Viewport: Show tablet-desktop class, hide mobile class */
    .tablet-desktop {
        display: block;
        text-align: center;
        margin-top: auto;
        margin-left: 100px;
    }

    .mobile-nav, .menu-icon {
        display: none;
    }

    .mobile nav a.menu-icon {
        display: none;
    }

    /* Tablet Viewport: Style rule for header */
    header {
        padding-bottom: 2%;
        height: 300px;
    }

    /* Tablet Viewport: Style rules for nav area */
    nav {
	    padding: 1%;
        margin-bottom: 1%;
    }

    nav ul {
        list-style-type: none;
        text-align: center;
    }

    nav li {
        font-size: 1.5em;
        font-family: "Cormorant Garamond", serif;
        display: inline-block;
        border-right: 1px solid #fff;
    }
    
    nav li:last-child {
        border-right: none;
    }
    
    nav li a {
        padding: 0.1em 0.75em;
        display: block;
        color: #fff;
        text-decoration: none;
    }

    /* table Viewport: Map style rule */
    .contacts {
        grid-template-columns: 1fr 1fr;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: 1fr;
    }

}

/* Media Query for Desktop Viewport */
@media screen and (min-width: 769px), print {
    /* Desktop Viewport: Style rules for nav area */
    .mobile-nav, .menu-icon {
        display: none;
    }

    .tablet-desktop {
        display: block;
        text-align: center;
    }

    /* Desktop Viewport: Style rules for nav area */
    nav {
        width: 70%;
        margin: 4em 1em 0 0;
    }

    nav ul {
        text-align: center;
    }
    
    nav li {
        border: none;
    }

    nav li a {
        padding: 0.5em 1em;
    }
    
    nav li a:hover {
        color: #b62b91;
        background-color: #562d0f;
        transform: scale(1.3);
    }

    header {
        height: 300px;
    }

    /* Map style rule */
    .contacts {
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}