/* Reset and General Styles */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;  
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1rem;
    line-height: 1.25;
    color: #333;
    background-color: #fff;
    height: 100%;
    -webkit-text-size-adjust: 100%;  
}

a {
    color: #333;
    text-decoration: underline;
}

a:hover {
    color: #696a6d;
}

strong {
    font-weight: bold;
}

/* Typography */
p {
    margin: 0 0 0.625em;
    font-size: 0.8125em;
}

h1, h3, h5 {
    margin: 1em 0;
}

/* Container styles */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1em;
}

.container:before, .container:after {
    display: table;
    content: "";
    line-height: 0;
}

/* Rows and spans */
.row {
    margin: 0;
    padding: 0;
}

.row:before, .row:after {
    display: table;
    content: "";
    line-height: 0;
}

.row:after {
    clear: both;
}

[class*="span"] {
    float: left;
    min-height: 1px;
    margin-left: 2%;
    width: calc(48% - 1em);
}

@media (max-width: 768px) {
    [class*="span"] {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .row {
        margin-left: 1em;
        margin-right: 1em;
    }

    /* Center and justify text and titles */
    p, h1, h3, h5 {
        text-align: center;
        justify-content: center;
    }

    /* Center and justify footer content */
    #footer {
        text-align: center;
        justify-content: center;
    }
}


/* Main Content */
#main {
    position: relative;
    z-index: 1;
    padding: 3.125em 0;
    top: 2em;
    bottom: 7em;
}

body.home #main {
    padding-top: 0em;
}

body.home #main #secondary:after {
    display: none;
}

#bannergallery {
    z-index: 2;
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

#bannergallery .flexslider {
    position: relative;
}

#bannergallery .flexslider img {
    position: relative;
    width: 100vw;
    max-width: none;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 0%);
}

/* Footer Styles */
#footer {
    background: #000;
    padding: 1.875em 0;
}

#footer h5, #footer strong {
    color: #fff;
}

#footer p, #footer a {
    color: #696a6d;
}

#footer #site-info {
    margin-top: 2.5em;
    font-size: 0.6875em;
}

#footer .instagram-icon {
    width: 3em;
    height: auto;
}

/* Flexslider and container */
.flex-container a:active, .flexslider a:active, .flex-container a:focus, .flexslider a:focus {
    outline: none;
}

.slides, .flex-control-nav, .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.flexslider {
    margin: 0;
    padding: 0;
}

.flexslider .slides > li {
    display: none;
}

.flexslider .slides img {
    width: 100%;
    display: block;
}

.flex-pauseplay span {
    text-transform: capitalize;
}

.slides:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.no-js .slides > li:first-child {
    display: block;
}

/* Navigation */
.flex-direction-nav {
    height: 0;
}

.flex-direction-nav a {
    width: 1.125em;
    height: 1.5em;
    display: block;
    position: absolute;
    top: 7.5em;
    z-index: 10;
    cursor: pointer;
    text-indent: -9999px;
}

.flex-direction-nav a:hover {
    opacity: .8;
}

.flex-direction-nav a.flex-disabled {
    opacity: .3;
    cursor: default;
}

.flex-control-nav {
    width: 100%;
    text-align: center;
    z-index: 100;
    position: absolute;
    bottom: 0;
}

.flex-control-nav li {
    margin: 0 2px;
    display: inline-block;
}

.flex-control-paging li a {
    width: 0.625em;
    height: 0.625em;
    display: block;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-indent: -9999px;
    border-radius: 20px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

.flex-control-paging li a:hover {
    background: rgba(0, 0, 0, 0.7);
}

.flex-control-paging li a.flex-active {
    background: #fff;
    cursor: default;
}

.legal-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
  }
  
  .legal-popup-content {
    background-color: rgba(255, 255, 255, 0.95);
    margin: 15% auto;
    padding: 25px 30px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .close-popup {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #777;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .close-popup:hover {
    color: #333;
  }
  
  .popup-logo {
    width: 70px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 50%;
  }
  
  .legal-popup h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
  }
  
  .legal-popup p {
    margin: 12px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
  }
  
  .accept-btn {
    background-color: #9a0013; /* Wine red color */
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
  }
  
  .accept-btn:hover {
    background-color: #7d000f;
  }
  
  @media (max-width: 768px) {
    .legal-popup-content {
      width: 90%;
      margin: 30% auto;
      padding: 20px;
    }
  }