@media (max-width: 600px) {
    body {
        background-image: url('img/background/parchment-paper-600.jpg');
        background-size: auto;
    }
}

@media (min-width: 600px) and (max-width: 1200px) {
    body {
        background-image: url('img/background/parchment-paper-1200.jpg');
        background-size: auto;
    }
}

@media (min-width: 1210px) and (max-width: 1920px) {
    body {
        background-image: url('img/background/parchment-paper-1920.jpg');
        background-size: auto;
    }
}

@media (min-width: 1920px) and (max-width: 2560px) {
    body {
        background-image: url('img/background/parchment-paper-2560.jpg');
        background-size: auto;
    }
}

@media (min-width: 2560px){
    body {
        background-image: url('img/background/parchment-paper-3840.jpg');
        background-size: cover;
    }
}

@font-face {/* Webfont: Antiquarian */
    font-family: 'Antiquarian';
    src: url('fonts/antiquarian/antiquarian-web/Antiquarian.woff') format('woff'), /* Modern Browsers */
         url('fonts/antiquarian/antiquarian-web/Antiquarian.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/antiquarian/antiquarian-web/Antiquarian.svg#Antiquarian') format('svg'); /* Legacy iOS */
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
    }
@font-face {/* Webfont: Broadsheet */
    font-family: 'Broadsheet';
    src: url('fonts/broadsheet-full/broadsheet-web/Broadsheet.woff') format('woff'), /* Modern Browsers */
         url('fonts/broadsheet-full/broadsheet-web/Broadsheet.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/broadsheet-full/broadsheet-web/Broadsheet.svg#Broadsheet') format('svg'); /* Legacy iOS */
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {/* Webfont: Antiquarian Scribe */
    font-family: 'Antiquarian Scribe';
    src: url('fonts/antiquarian-scribe/AntiquarianScribe.woff') format('woff'); /* Modern Browsers */
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}
@font-face {/* Webfont: SchoonerScript */
    font-family: 'Schooner Script';
    src: url('fonts/schooner-script/SchoonerScript.eot'); /* IE9 Compat Modes */
    src: url('fonts/schooner-script/SchoonerScript.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/schooner-script/SchoonerScript.woff2') format('woff2'), /* Modern Browsers */
         url('fonts/schooner-script/SchoonerScript.woff') format('woff'), /* Modern Browsers */
         url('fonts/schooner-script/SchoonerScript.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/schooner-script/SchoonerScript.svg#SchoonerScript') format('svg'); /* Legacy iOS */
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face { /* Webfont: TerraIgnota */
    font-family: 'Terra Ignota';
    src: url('fonts/terra-ignota/TerraIgnota.eot'); /* IE9 Compat Modes */
    src: url('fonts/terra-ignota/TerraIgnota.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/terra-ignota/TerraIgnota.woff') format('woff'), /* Modern Browsers */
         url('fonts/terra-ignota/TerraIgnota.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/terra-ignota/TerraIgnota.svg#TerraIgnota') format('svg'); /* Legacy iOS */
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {/* Webfont: GeographicaHand */
    font-family: 'Geographica Hand';
    src: url('fonts/geographica-hand/GeographicaHand.woff2') format('woff2'), /* Modern Browsers */
         url('fonts/geographica-hand/GeographicaHand.otf') format('opentype'); /* Safari, Android, iOS */
             font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

/*
body {
    background-size: auto;
}*/

.ornamental {
  font-family: 'Antiquarian'; /* available on Windows 7, and on Mac OS */
  font-feature-settings: "ss07";
  font-size: 40px;
}

.caption {
  font-family: 'Antiquarian'; /* available on Windows 7, and on Mac OS */
  font-size: 50px;
}

.navbar {
    font-family: 'Antiquarian';
}

.navbar > ul {
  display: inline-block;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* background-color: #333; */
  position: sticky;
  top: 0;
}

.navbar > ul > li {
float: left;
}

.navbar > ul > li > a {
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  font-size: 3em;
  text-decoration: none;
  background-image: url('img/nav/pre-rectangle.png');
  background-size: ;
  background-repeat: no-repeat;
  transition: all 0.1s ease;
}

.navbar > ul > li > a:hover {
    /* background-color: #111; */
    background-image: url('img/nav/rectangle.png') ;
    background-size: 100% 100%;
    color: #818181

 }

.navbar > ul > li > a:active {
    /* background-color: #111; */
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    background-image: url('img/nav/rectangle-checkered.png');
    background-size: 100% 100%;

 }

/* Mobile navbar styles */
@media screen and (max-width: 768px) {
  .navbar {
    text-align: center;
  }
  
  .navbar > ul > li > a {
    font-size: 1.8em;
    padding: 10px 8px;
  }
  
  .navbar > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
  }
  
  .navbar > ul > li {
    float: none;
    flex: 0 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .navbar {
    text-align: center;
    padding: 0;
  }
  
  .navbar > ul {
    width: 100%;
    max-width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
  }
  
  .navbar > ul > li {
    flex: 0 1 auto;
    min-width: 0;
  }
  
  .navbar > ul > li > a {
    font-size: 1.4em;
    padding: 8px 6px;
    white-space: nowrap;
  }
}

@media screen and (max-width: 420px) {
  .navbar > ul > li > a {
    font-size: 1.2em;
    padding: 6px 4px;
  }
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #8B4513;
    margin: 6px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -8px);
}

/* Mobile navigation */
@media screen and (max-width: 1200px) {
    .hamburger {
        display: block;
    }
    
    .navbar > ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        background-image: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    
    .navbar > ul.show {
        display: flex;
    }
    
    .navbar > ul > li {
        margin: 10px 0;
    }
    
    .navbar > ul > li > a {
        font-size: 2.5em;
        padding: 15px 30px;
    }
}


 /* The sidebar menu */
.sidenav {
  height: fit-content;
  width: 15em;
  /* position: absolute; */
  margin-left: 2em;
  /*transition: top 0.3s ease;*/
  left: 0;
  overflow-x: hidden;
  padding-top: 20px;
  float: left;
}

.sidenav > ul {
  list-style-type: none
}
/* The navigation menu links */
.sidenav a {
  padding: 0px 8px 0px 4px;
  text-align: center;
  text-decoration: none;
  font-size: 32px;
  font-family: "Antiquarian";
  color: black;
  display: block;
  transition: all 0.1s ease;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #818181;
}

.sidenav a:active {
  color: #818181;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  background-image: url('img/sidebar/rectangle-checkered.png');
  background-size: 100% 100%;
}

/* Mobile sidenav styles */
@media screen and (max-width: 768px) {
  .sidenav {
    position: relative;
    width: 100%;
    margin: 0;
    top: auto;
    transform: none;
    float: none;
    padding: 10px 0;
    text-align: center;
  }
  
  .sidenav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  
  .sidenav > ul > li {
    margin: 0 10px;
  }
  
  .sidenav a {
    font-size: 24px;
    padding: 5px 10px;
  }
  
  .ornamental {
    display: none;
  }
  
  /* Adjust main content for mobile */
  .main {
    margin-left: 0;
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  .sidenav a {
    font-size: 20px;
  }
}

.text-line text {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: dash 3s linear forwards, filling 4s ease-in forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes filling {
  from{
    fill: black;
    fill-opacity: 0;
  }
  to {
    fill: black;
    fill-opacity: 1;
  }
}

/* Mobile caption styles */
@media screen and (max-width: 768px) {
  .caption {
    height: auto !important;
    padding: 10px;
  }
  
  .caption svg {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  
  .caption svg text {
    font-size: 60px;
  }
}

@media screen and (max-width: 480px) {
  .caption svg text {
    font-size: 40px;
  }
}

/*
 * font-family: 'Broadsheet';
 * font-family: "Antiquarian";
 * */
.content-column {
  margin-left: 2em;
  float: left;
  width: 40%;
  font-family: 'Broadsheet';
  font-size: 1.4em;

}

.content-column > a > img {
    margin-top: 3em;
    width: 100%;
    object-fit: fill;
}

.content-column > img {
    margin-top: 0em;
    width: 100%;
    object-fit: fill;
}

.content-column > h2 {
    text-align:center
}

/* Clear floats after the columns */
.content-row:after {
  content: "";
  display: table;
  clear: both;
}

/* Style page content */
.main {
  margin-left: 18em;
  padding: 0px 10px;
  overflow: hidden;
}
.main-animation {
  animation: fadein 2s;
  -moz-animation: fadein 2s; /* Firefox */
  -webkit-animation: fadein 2s; /* Safari and Chrome */
  -o-animation: fadein 2s; /* Opera */
}
#test p {
    margin-top: 25px;
    font-size: 21px;
    text-align: center;
    animation: fadein 2s;
    -moz-animation: fadein 2s; /* Firefox */
    -webkit-animation: fadein 2s; /* Safari and Chrome */
    -o-animation: fadein 2s; /* Opera */
}

@keyframes fadein {
    from {
        opacity:0;
    }
    to {
        opacity:1;
    }
}
/* VUE */
.fade-enter-active, .fade-leave-active {
  transition: opacity .5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active до версии 2.1.8 */ {
  opacity: 0;
}

/* FIDDLE */
.slide-fade-enter-active {
  transition: all .3s ease;
}
.slide-fade-leave-active {
  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active for <2.1.8 */ {
  transform: translateX(10px);
  opacity: 0;
}

/* Footer styles */
.site-footer {
  margin-top: 2em;
  padding: 1em 0 0.5em;
  background: rgba(139, 69, 19, 0.1);
  border-top: 3px solid #8B4513;
  font-family: 'Broadsheet';
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 0.5em;
  text-align: center;
}

.footer-section h3 {
  font-family: 'Antiquarian';
  font-size: 1.5em;
  margin-bottom: 0.3em;
  color: #8B4513;
}

.footer-section p {
  margin: 0.3em 0;
  font-size: 1em;
}

.footer-section a {
  color: #8B4513;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #A0522D;
  text-decoration: underline;
}

.contact-link {
  font-family: 'Antiquarian';
  font-size: 1.2em;
  display: inline-block;
  margin-top: 0.3em;
  padding: 0.2em 0.8em;
  border: 2px solid #8B4513;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: #8B4513;
  color: white !important;
  text-decoration: none !important;
}

.build-id {
  font-family: monospace;
  font-size: 0.9em;
  color: #666;
}

.footer-bottom {
  text-align: center;
  margin-top: 1em;
  padding-top: 0.5em;
  border-top: 1px solid #8B4513;
  font-family: 'Antiquarian';
  font-size: 1.1em;
  color: #8B4513;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin: 0.5em;
  }
}

/* Vision box styles */
.vision-box {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #8B4513;
  border-radius: 10px;
  padding: 1.5em;
  margin: 1.5em 0;
}

.vision-box p {
  margin: 0.5em 0;
  line-height: 1.6;
}

.vision-box em {
  font-size: 1.5em;
  color: #8B4513;
  font-weight: bold;
}

/* Contact page styles */
.contact-content {
  max-width: 800px;
  margin: 2em auto;
  padding: 0 2em;
  font-family: 'Broadsheet';
  font-size: 1.2em;
  animation: fadein 2s;
}

.contact-section h2 {
  font-family: 'Antiquarian';
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 1em;
  color: #8B4513;
}

.contact-section h3 {
  font-family: 'Antiquarian';
  font-size: 1.8em;
  margin: 1.5em 0 0.5em;
  color: #8B4513;
}

.contact-section p {
  margin: 1em 0;
  line-height: 1.6;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin: 2em 0;
}

.contact-method {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #8B4513;
  border-radius: 10px;
  padding: 1.5em;
  text-align: center;
}

.contact-method a {
  color: #8B4513;
  text-decoration: none;
  font-weight: bold;
}

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

.contact-form-section {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #8B4513;
  border-radius: 10px;
  padding: 2em;
  margin: 2em 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  font-family: 'Antiquarian';
  font-size: 1.2em;
  margin-bottom: 0.5em;
  color: #8B4513;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8em;
  border: 2px solid #8B4513;
  border-radius: 5px;
  font-family: 'Broadsheet';
  font-size: 1em;
  background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #A0522D;
  box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

.submit-btn {
  background: #8B4513;
  color: white;
  border: none;
  padding: 1em 2em;
  font-family: 'Antiquarian';
  font-size: 1.3em;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 2em auto 0;
}

.submit-btn:hover {
  background: #A0522D;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.response-time {
  background: rgba(139, 69, 19, 0.1);
  border: 2px solid #8B4513;
  border-radius: 10px;
  padding: 1.5em;
  margin: 2em 0;
  text-align: center;
}

.response-time em {
  font-family: 'Terra Ignota';
  font-size: 1.1em;
  color: #8B4513;
}

/* Bottle confirmation styles */
.bottle-confirmation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #8B4513;
  border-radius: 15px;
  padding: 2em 3em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 1000;
  text-align: center;
}

.bottle-message h3 {
  font-family: 'AntiquarianScribe';
  font-size: 2.5em;
  color: #8B4513;
  margin: 0.5em 0;
}

.bottle-message p {
  font-family: 'Broadsheet';
  font-size: 1.3em;
  margin: 0.5em 0;
}

.bottle-message strong {
  font-family: 'Antiquarian';
  color: #A0522D;
}

.bottle-subtext {
  font-style: italic;
  color: #666;
  font-size: 1.1em !important;
}

.bottle-icon {
  display: block;
  animation: bottle-bob 2s ease-in-out infinite;
}

@keyframes bottle-bob {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* Vue transition for bottle */
.bottle-float-enter-active {
  animation: bottle-throw 0.6s ease-out;
}

.bottle-float-leave-active {
  animation: bottle-sink 0.6s ease-in;
}

@keyframes bottle-throw {
  0% {
    transform: translate(-50%, 100vh) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -60%) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
    opacity: 1;
  }
}

@keyframes bottle-sink {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100vh) rotate(-180deg);
    opacity: 0;
  }
}

/* Contact page responsive design */
@media (max-width: 768px) {
  .contact-content {
    font-size: 1.1em;
    padding: 0 1em;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .contact-section h2 {
    font-size: 2em;
  }
}

/* Additional mobile improvements */
@media screen and (max-width: 768px) {
  .content-column {
    width: 100%;
    margin-left: 0;
    float: none;
  }
  
  .content-row {
    display: flex;
    flex-direction: column;
  }
  
  body {
    overflow-x: hidden;
  }
}
