/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Aptos Display;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer */
    user-select: none; /* Standard */
}

/* Font Face Definition */
@font-face {
    font-family: 'CaslonOpenFace';
    src: url('fonts/Caslon Open Face Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.disableClicks {
  pointer-events: none;
}

.disableSave {
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

/* Main content area with background image */
.main-content {
    min-height: 100vh;
    background-image: url('picture_library/website.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease-in-out;
}

/* Toggle button for menu */
.toggle {
    position: absolute;
	top: 25px;
    left: 50px;
    width: 70px;
    height: 50px;
	z-index: 1000;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.toggle span{
    position: absolute;
    width: 40px;
    height: 4px;
    background: #4263eb;
    border-radius: 4px;
    transition: 0.5s;
}

.toggle span:nth-child(1){
    transform: translateY(-15px);
    width: 25px;
    left: 15px;
}

.toggle.active span:nth-child(1){
    width: 40px;
    transform: translateY(0px) rotate(45deg);
    transition-delay: 0.125s;
}

.toggle span:nth-child(2){
    transform: translateY(15px);
    width: 15px;
    left: 15px;
}

.toggle.active span:nth-child(2){
    width: 40px;
    transform: translateY(0px) rotate(315deg);
    transition-delay: 0.25s;
}

.toggle.active span:nth-child(3){
    transform: translateX(60px);
}

/* Side navigation menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 80px 40px;
    overflow-y: auto;
}

.side-menu a {
    color: #333;
    text-decoration: none;
    font-size: 28px;
    margin-bottom: 30px;
    transition: color 0.3s ease;
    font-weight: 300;
    letter-spacing: 1px;
}

.side-menu a:hover {
    color: #007bff;
}

/* Submenu styling */
.submenu {
    padding-left: 30px;
    margin-bottom: 20px;
    display: none;
}

.submenu a {
    font-size: 22px;
    margin-bottom: 15px;
}

.has-submenu.active + .submenu {
    display: block;
}

/* Menu active state */
.menu-active .side-menu {
    left: 0;
}

.menu-active .main-content {
    transform: translateX(300px);
}

.menu-active .content-page {
    transform: translateX(300px);
}

/* Content overlay when menu is active */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 998;
}

.menu-active .overlay {
    opacity: 1;
    visibility: visible;
}

/* Welcome text overlay */
.welcome-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-overlay h1 {
    font-size: 75px;
    margin-bottom: 20px;
    font-weight: 500;
    font-family: CaslonOpenFace;
}

.welcome-overlay p {
    font-size: 24px;
    font-weight: 300;
}

/* Content pages */
.content-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background-color: rgba(249, 249, 249, 0.5);
    display: none;
    padding: 80px 20px 40px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.content-page.active {
    display: block;
    opacity: 1;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(253, 234, 212, 0.7);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.content-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
}

.content-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #666;
}

.content-text {
    font-size: 20px;
    line-height: 1.8;
    color: #444;
}

.content-text p {
    margin-bottom: 20px;
}

/* Back button */
.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #007bff;
}

/* Events styling */
.event-card {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.event-card p {
    margin-bottom: 15px;
    color: #666;
}

.event-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

/* Shop styling */
.shop-grid {
    display: grid;
    --grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
}

.buy-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #0056b3;
}

/* Contact form styling */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

.contact-details {
    margin-top: 40px;
    text-align: center;
}

.contact-details h3 {
    margin-bottom: 15px;
    color: #333;
}

.contact-details p {
    margin-bottom: 10px;
    color: #666;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .side-menu {
        width: 250px;
    }

    .menu-active .main-content,
    .menu-active .content-page {
        transform: translateX(250px);
    }

    .welcome-overlay h1 {
        font-size: 36px;
    }

    .welcome-overlay p {
        font-size: 18px;
    }

    .content-wrapper {
        padding: 40px 20px;
    }

    .content-title {
        font-size: 28px;
    }

    .content-subtitle {
        font-size: 18px;
    }

    .content-text {
        font-size: 16px;
    }

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

#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 800px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
	width: 100%;
  }
}