
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

#root {
    min-height: 100dvh;
    width: 100dvw;
    height: auto;
    position: absolute;
    display: flex;
    margin: 0;
    padding: 0;
}

:root {
  --background-color: #ffffff;
  --text-color: #448700;
}

.dark-mode {
  --background-color: #448700;
  --text-color: #ffffff;
}

 #overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
  }

  #warning-box {
    background: #fff;
    padding: 2.5rem 3rem;
    border-radius: 15px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: popIn 0.3s ease forwards;
  }

  #warning-box h1 {
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #c0392b;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(192, 57, 43, 0.8);
  }

  #warning-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
  }

  #warning-box a {
    display: inline-block;
    text-decoration: none;
    color: #2980b9;
    font-weight: 600;
    border: 2px solid #2980b9;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  #warning-box a:hover {
    background-color: #2980b9;
    color: white;
  }

  #close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #c0392b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
  }
  #close-btn:hover {
    color: #7b241c;
    transform: scale(1.3);
  }



* {
    box-sizing: border-box;
    max-width:100dvw;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    user-select: none;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background-color: #6200ea;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #3700b3;
}

*::-webkit-scrollbar-corner {
    background-color: #f0f0f0;
}

*::selection {
    color: purple;
    background-color: whitesmoke;
}

.glass {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: black;
  padding: 10px 15px;
  border-radius: 10px;
}


.topbar {
    width:100dvw;
    height:15dvh;
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    text-align: center;
    box-sizing: border-box;
    align-items: center;
    transition: transform 1s ease-in-out;
    z-index: 100;
}

.topbar.hide {
    transform: translateY(-100%)
}

main {
    position:absolute;
    display:flex;
    flex-direction:column;
    width:100dvw;
    height:100dvh;
}

article {
  border:3px solid #444;
}

footer {
    width:100dvw;
    height:45dvh;
    position:absolute;
    display:flex;
    flex-direction: column-reverse;
    color:black;
    font-size: calc(5px + .5vw + .5vh);
}

.footer-bottom {
    display:flex;
    position:absolute;
    justify-content: center;
    align-items: center;
    align-content: center;
    width:100dvw;
    height:10dvh;
    color:whitesmoke;
    background: #111;
    border-top: 3px solid #444;
}

.footer-container {
    display:flex;
    position:absolute;
    align-items: center;
    flex-direction: row;
    width:100dvw;
    height:35dvh;
    background-color:gray;
    bottom:10dvh;
}

.footer-section {
    width:35dvw;
    height:auto;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    text-align:center;
}

.footer-section p {
user-select:text;
}

.footer-container h3 {
    display:inline-block;
    white-space: nowrap;
    overflow: hidden;
    user-select:text;
}

.contact a {
  text-decoration: none;
  color:black;
  border-radius: 8px;
  display: inline-block;
  padding:.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  user-select:all;
}

.contact a:hover {
  background-color: #66aa00;
  color: #ffffff;   
  transform: scale(1.05);  
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #448700;
  width: auto;
  height: auto;
  padding:.3rem;
  border-radius: 50%;
  font-size: calc(7px + .8vw + .8vh);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.15);
}

.social-icons a:hover {
  background-color: #448700;
  color: white;
  transform: scale(1.1);
}

#article_one {
    width:100dvw;
    height:100dvh;
    background-image: url('images/bg1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 1;
    position:absolute;
}

#article_two {
    width:100dvw;
    height:100dvh;
    background-color:#448700;
    display:flex;
    justify-content: center;
    text-align:center;
    align-items: center;
    position:absolute;
    top:100dvh;
}


#article_three {
    width:100dvw;
    height:100dvh;
    background-color:#448700;
    display:flex;
    justify-content: center;
    text-align:center;
    align-items: center;
    position:absolute;
    top:200dvh;
}

#about-us {
    width:100dvw;
    height:auto;
    background-color:black;
    display:flex;
    justify-content: center;
    align-items: center;
    position:absolute;
    top:300dvh;
    line-height: 1.7;
    flex-direction: column;
    justify-content: flex-start;
    margin: auto;
    padding: 2dvh 4dvw;
}

#about-us h2 {
  font-size: calc(6px + 2vw + 2vh);
  text-align: center;
  color: whitesmoke;
}

#about-us h3 {
  font-size: calc(6px + 1.2vw + 1.2vh);
  margin-top: 2rem;
  text-align: center;
  color: #FFFF99;
}

#about-us p {
  font-size: calc(10px + .5vw + .5vh);
  color:#CCFF66;
}

.ersag-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #e4f0e2, #f9f9f9);
}

.ersag-inner {
  text-align: center;
  max-width:90dvw;
  max-height:90dvh;
  background: white;
  display:flex;
  position: absolute;
  align-items: center;
  border-radius: 20px;
  flex-direction:row;
  padding:1rem;
  gap:1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease;
}

.ersag-inner h2 {
  font-size: calc(5px + 3vw + 3vh);
  color: #3a7d44;
  font-weight: bold;
  letter-spacing: 1px;
}

.ersag-inner h3 {
  font-size: calc(7px + .7vw + .7vh);
  color: #444;
}

.ersag-inner p {
  font-size: calc(2px + .9vw + .9vh);
  line-height: 1.7;
  color: #555;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
    display: flex;
    flex-direction: row;
    width: 100dvw;
    height: 10dvh;
    align-content: flex-start;
    text-align: center;
    position: absolute;
    box-sizing: border-box;
    align-items: center;
    transition: transform 1s ease-in-out;
    top: 15dvh;
    left:0;
    z-index: 999;
}

header.scrolled {
  position: fixed;
  top: 0;
}

#header_logo_default_black {
    max-width: 10dvw;
    max-height: 10dvh;
    width: auto;
    height: auto;
}

#header_right {
    display: flex;
    position: absolute;
    font-size: calc(5px + .5vw + .5vh);
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
    left:95%;
    padding:.5rem;
    gap:3dvw;
    transform:translateX(-95%);
}

#header_right a {
    font-weight: 900;
    color:black;
    text-decoration:none;
    user-select:all;
}

#header_right div {
    display:flex;
    align-content:center;
}

#header_left {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    font-size: calc(4px + .4vw + .4vh);
    margin: 0;
    padding: 5px;
}

#header_left h2 {
    font-weight: 900;
}

#second-nav-menu {
    display: flex;
}

.fa-solid {
    font-size:calc(7px + 0.7vw + 0.7vh);
}

.fa-solid.fa-phone {
    color:#28a745;
}

.fa-solid.fa-envelope {
    color:#007bff;
}

#first-nav-menu {
    position: absolute;
    display:flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    left: 50%;
    transform: translateX(-50%);
    background-color:#448700;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    width:80dvw;
}

#second-nav-menu ul {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    column-gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    position: relative;
    display: inline-block;
    font-size: calc(7px + 0.7vw + 0.7vh);
    font-weight: 500;
    text-decoration: none;
    color:whitesmoke;
    padding: 6px 10px;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-menu > ul > li::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #4caf50, #8bc34a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.nav-menu > ul > li:hover::before {
    transform: scaleX(1);
}

.nav-menu > ul > li > a:hover {
    color: black;
}

#hamburger {
    display: none;
    font-size: calc(15px + 3vw + 3vh);
    cursor: pointer;
    z-index: 11;
    color: whitesmoke;
    text-shadow:0 0 15px #448700;
    position: fixed;
    right: 0;
}

#side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100dvh;
    width: 80dvw;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.2s ease, opacity 0.3s ease;
    z-index: 100;
    opacity: 0;
}

#side-menu.active {
    right: 0;
    opacity: 1;
}

#close_button {
    font-size: calc(15px + 1.5vw + 1.5vh);
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1000;
    color: #fff;
    transition: color 0.3s ease;
}

#second-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap:.5rem;
    padding:.5rem;
}

#close_button:hover {
    color: red;
}

.dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background:#458710;
  border-radius: 25px;
  border: 1px solid #ccc;
  width:200%;
  box-sizing: border-box;
  z-index:1000;
}

.dropdown-menu li {
 width: 100%;
 background-color: black;
 height:100%;
 border-radius:20px;
 display: flex;
 align-items: center;
 justify-content:center;
 position: relative;
}

.dropdown-menu li a {
  color:whitesmoke;
  font-size:calc(3px + .3vw + .3vh);
  font-weight: 900;
  text-decoration: none;
}

.dropdown.active > .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

.dropdown-menu.nested {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 100%;
  right: 50%;
  width:100%;
  transform: translateX(-50%);
  background:whitesmoke;
  color:black;
  border-radius: 25px;
  border: 1px solid #ccc;
  width:800%;
  box-sizing: border-box;
  z-index:1000;
}

.dropdown-menu.nested li {
  background-color:#458710;
}

.dropdown-menu > li.active-nested > .dropdown-menu.nested {
  opacity: 1;
  pointer-events: auto;
}

li.active-nested > .dropdown-menu.nested {
  opacity: 1;
  pointer-events: auto;
}

.welcome-text {
    color: #448700;
    font-size: calc(13px + 2vw + 2vh);
    font-weight: bold;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    text-shadow:
        0 0 5px #aaffaa,
        0 0 10px #aaffaa,
        0 0 20px #4caf50,
        0 0 40px #4caf50;
}

#header_right div i {
    animation:diagonal-tilt 2s ease-in-out infinite;
    display: inline-block;
}
header i {
    animation:diagonal-tilt 3s ease-in-out infinite;
    display: inline-block;
}

@media (max-width: 599px) {
        #header_right {
        flex-direction:column;
    }
    .dropdown-menu {
  width:65dvw;
}
.dropdown-menu.nested {
  width:65dvw;
}
.ersag-inner {
  flex-direction:column;
}
.dropdown-menu li a {
  font-size:calc(5px + .5vw + .5vh);
}
}
@media (max-width: 1000px) {
    #header_logo_default_black {
        max-width: 25dvw;
        max-height: 10dvh;
        width: auto;
        height: auto;
    }

    #first-nav-menu {
        display: none;
    }

    #hamburger {
        display: block;
    }

    #header_left {
        flex-direction: column;
    }
}

@keyframes diagonal-tilt {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-2px, -2px) rotate(-5deg);
  }
  50% {
    transform: translate(2px, 2px) rotate(5deg);
  }
  75% {
    transform: translate(-1px, -1px) rotate(-3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popIn {
    0% {
      transform: scale(0.6);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }



#music-toggle-button {
      position: fixed;
      bottom: 10px;
      right: 10px;
      width: 6.5dvh;
      height: 6.5dvh;
      background: #4caf50;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50%;
      box-shadow: 0 0 1.5dvh rgba(0, 0, 0, 0.5);
      cursor: pointer;
      z-index: 1000;
      transition: background 0.3s ease, transform 0.2s ease;
    }

    #music-toggle-button:hover {
      background: #388e3c;
      transform: scale(1.1);
    }

    #music-icon {
      font-size: 2.5dvh;
    }

    #music-panel {
      position: fixed;
      top: 50%;
      left: 50%;
      transform:translate(-50%,-50%);
      background: #1e1e1e;
      padding: 1rem;
      border-radius: 10px;
      box-shadow: 0 0 1.5dvh #4caf50;
      width: min(90dvw, 400px);
      display: none;
      flex-direction: column;
      gap: 1rem;
      z-index: 999;
      color:whitesmoke;
    }

    .music-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: green;
  padding: 0.5rem;
  border-radius: 8px 8px 0 0;
  cursor: move;
  user-select: none;
}

.hide-button {
  background: none;
  border: none;
  font-size: 3rem;
  font-weight: 900;
  position: relative;
  cursor: pointer;
  color: #333;
  z-index:99999999;
}

    label {
      font-weight: bold;
    }

    select, input[type=range] {
      width: 100%;
      padding: 0.6dvh;
      border-radius: 1dvh;
      border: none;
      font-size: var(--base-font);
    }

    input[type=range] {
      -webkit-appearance: none;
      background: #4caf50;
      height: 1.2dvh;
    }

    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 2.5dvh;
      height: 2.5dvh;
      background: #1b5e20;
      cursor: pointer;
      border-radius: 50%;
      border: 2px solid #388e3c;
      margin-top: -0.7dvh;
    }

    #music-stop-button {
      padding: 1.2dvh;
      font-size: var(--base-font);
      font-weight: bold;
      border-radius: 1dvh;
      border: none;
      background: #d32f2f;
      color: white;
      transition: background 0.3s ease;
      cursor: pointer;
    }

    #music-stop-button:hover {
      background: #9a0007;
    }

    .language-dropdown {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -70%);
  width: auto;
  font-size: calc(4px + 1vw + 1vh);
  font-weight: bold;
  background: black;
  color: #448700;
  cursor: pointer;
}

.language-dropdown .selected-language {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px solid #448700;
  border-radius: 6px;
}

.language-dropdown img {
  width: 24px;
  height: auto;
}

.language-options {
  display: none;
  background-color: black;
  border: 2px solid #448700;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
}

.language-options div {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-options div:hover {
  background-color: #224400;
}

.article_jpg {
  width:50%;
  height:auto;
  max-height:90dvh;
  transition: transform .1s ease-in-out;
}

.article_jpg:hover {
  transform:scale(1.01);
}