body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #333;
    color: #fff;
}

body.dark-mode .sidebar {
    background-color: #444;
}

body.dark-mode .sidebar button {
    background-color: #555;
    color: #fff;
}

body.dark-mode .about-container {
    background-color: #444;
    color: #fff;
}

body.dark-mode .about-container a {
    color: #fff;
}

body.dark-mode .about-container .contact-info a:hover {
    color: #ddd;
}

.header {
    display: flex;
    padding: 10px 20px; /* Reduced top/bottom padding */
    align-items: center;
    justify-content: space-between;
    background-image: url('https://i.imgur.com/XzWMLTJ.png');
    background-size: cover;
    background-position: center;
    height: 100px; /* Fixed header height */
    min-height: 100px; /* Ensure minimum height */
    position: relative;
    box-sizing: border-box; /* Include padding in height calculation */
            border-radius: 5px;
}

.logo-container {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    height: 100%; /* Make it span the header height */
    align-items: center; /* Vertically center the logo */
}

.logo {
    max-height: 80%; /* Adjust logo size relative to container */
    cursor: pointer;
}

.header-text {
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 20px;
}

.header-text p {
    margin-left: auto;
    margin-right: 20px;
    margin-bottom: 0;
}

.top-content {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.top-content img {
    max-width: 100px;
    margin-right: 20px;
}

.sidebar {
    width: 100px;
    background-color: #f0f0f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
            border-radius: 5px;
}

.sidebar button {
    margin-bottom: 10px;
    padding: 10px;
    cursor: pointer;
    border: none;
    background-color: #ddd;
            border-radius: 5px;
}
.admin-button {
        margin-bottom: 16px;
          padding: 18px;
          cursor: pointer;
          border: none;
          background-color: gray;
          border-radius: 12px;
        }
.content {
    flex: 1;
    padding: 20px;
    text-align: center;
    overflow-y: auto;
}

.footer {
    text-align: center;
    padding: 10px;
    font-size: 0.8em;
    border-top: 1px solid #eee;
}

.footer a {
    text-decoration: none;
}

.main-container {
    display: flex;
    flex: 1;
}

.mode-switch {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.2em;
}

.cookie-message {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #eee;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-message button {
    margin-left: 10px;
    cursor: pointer;
}

body.dark-mode .cookie-message {
    background-color: #333; /* темна тема */
    color: #eee; /* темна тема */
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

body.dark-mode .cookie-message button {
    background-color: #555; /* темна тема */
    color: #eee; /* темна тема */
}

input[type=checkbox][id=switch][onclick] {
  height: 0;
  width: 0;
  visibility: hidden;
}

.custom-switch {
  cursor: pointer;
  text-indent: 0px;
  padding-top: 7px;
  font-size: 15px;
  width: 60px;
  height: 30px;
  background: grey;
  display: block;
  border-radius: 100px;
  position: relative;
}

.custom-switch:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 25px;
  height: 25px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

input:checked + .custom-switch {
  background: grey;
}

input:checked + .custom-switch:after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

 .custom-switch:active:after {
  width: 50px;
}

@media (max-width: 768px) {
    .header {
        padding: 10px;
        flex-direction: row; /* Keep elements in a row */
        align-items: center; /* Align items vertically in the center */
        height: auto; /* Allow height to adjust */
        min-height: 80px; /* Minimum height for small screens */
    }

    .logo-container {
        position: relative; /* Stay in the flow on small screens */
        height: auto;
        align-items: center;
        padding: 5px;
    }

    .logo {
        max-height: 60px;
    }

    .header-text {
        flex-direction: row; /* Keep elements in a row */
        margin-left: auto; /* Push to the right */
        padding-right: 10px;
    }

    .header-text p {
        margin: 0 10px 0 0; /* Adjust spacing */
    }

    .sidebar {
        width: 80px;
        padding: 10px;
    }

    .sidebar button {
        padding: 8px;
        font-size: 0.9em;
    }
}