body {
  font-family: 'Merriweather', serif;
}


/* Dropdown Button */
.dropbtn {
  background-color: #db3434;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  background-color: #b92929;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd;}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* Top bar layout */
.top-bar {
  display: flex;
  justify-content: space-between; /* Keep items at opposite corners */
  align-items: center; /* Align items vertically */
  padding: 10px 20px;
  flex-wrap: nowrap; /* Prevent wrapping */
}

/* Responsive logo */
.logo {
  max-width: 100%;
  width: 120px;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Dropdown styling */
.dropdown {
  margin-left: 0; /* Ensure dropdown stays on the left */
}

/* Text content centered and responsive */
#title, #bio {
  text-align: center;
  margin: 20px auto;
  padding: 0 10px;
  max-width: 800px;
}

/* Add responsive spacing between the top-bar and the title */
#title {
  margin-top: 6vh; /* Add vertical space relative to the viewport height */
  margin-bottom: 4vh; /* Add space between the title and the bio */
}

/* Add responsive spacing between the bio and other elements */
#bio {
  margin-top: 4vh; /* Add vertical space relative to the viewport height */
}

/* Working time section styling */
#working-time {
  text-align: center;
  margin: 5vh auto; /* Add vertical spacing */
  padding: 2vh 1vw; /* Add internal spacing */
  background-color: #f9f9f9; /* Light background for contrast */
  border: 1px solid #ddd; /* Subtle border */
  border-radius: 10px; /* Rounded corners */
  max-width: 600px; /* Limit width for better readability */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a soft shadow */
}

#working-time h2 {
  font-size: 1.8rem;
  color: #db3434; /* Match the dropdown button color */
  margin-bottom: 1vh;
}

#working-time p {
  font-size: 1.2rem;
  color: #333;
  margin: 0.5vh 0;
}

#working-time strong {
  color: #000; /* Highlight the working hours */
}

/* Default (light theme) styles are already defined */

/* Dark theme styles */
body.dark-theme {
  background-color: #333; /* Dark background */
  color: snow; /* Light text color */
}

body.dark-theme .dropbtn {
  background-color: #555; /* Darker button background */
  color: white; /* Light text color */
}

body.dark-theme .dropbtn:hover, 
body.dark-theme .dropbtn:focus {
  background-color: #777; /* Slightly lighter hover effect */
}

body.dark-theme .dropdown-content {
  background-color: #444; /* Dark dropdown background */
  color: white; /* Light text color */
}

body.dark-theme .dropdown-content a {
  color: white; /* Light text for links */
}

body.dark-theme .dropdown-content a:hover {
  background-color: #555; /* Darker hover effect for links */
}

/* Dark theme styles for the working time section */
body.dark-theme #working-time {
  background-color: #444; /* Dark background for working time section */
  border-color: #555; /* Darker border */
  color: snow; /* Snow white text for the days */
}

body.dark-theme #working-time strong {
  color: white; /* Pure white for timestamps and "Затворено" */
}

body.dark-theme #working-time p {
  color: snow; /* Snow white for the days */
}

/* Ensure spacing adjusts for smaller screens */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    width: 90px;
  }

  .dropdown {
    margin-left: 0;
  }

  #title {
    margin-top: 5vh; /* Slightly reduce spacing on smaller screens */
    margin-bottom: 3vh;
  }

  #bio {
    margin-top: 4vh;
  }
}
