html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    text-align: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f1f1f1;
}

.navbar {
    display: flex;
    gap: 20px;
}

.navbar a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.navbar a:hover {
    color: #007bff;
}

#mode-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #f1f1f1;
    color: black;
    margin-top: auto;
}

.footer a {
    text-decoration: none;
}

.dark-mode {
    background-color: #333;
    color: white;
}

.dark-mode .header {
    background-color: #444;
}

.dark-mode .navbar a {
    color: white;
}

.dark-mode .navbar a:hover {
    color: #007bff;
}

.dark-mode #mode-toggle {
    color: white;
}

.dark-mode .footer {
    background-color: #444;
    color: white;
}

.dark-mode .footer a {
    color: white;
}

.dark-mode .footer a:hover {
    color: #007bff;
}

.dark-mode .other-apks {
    color: white;
}

.dark-mode .other-apks a {
    color: white;
}

.dark-mode .other-apks a:hover {
    color: #007bff;
}

.dark-mode .contact {
    color: white;
}

.dark-mode .contact a {
    color: white;
}

.dark-mode .contact a:hover {
    color: #007bff;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.logo-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-item img {
    max-width: 100px;
    margin-bottom: 10px;
}

.logo-item a {
    text-decoration: none;
    color: inherit;
}

.about {
    max-width: 1300px;
    margin: 0 auto 124px;
}

.about a {
    text-decoration: none;
}

.title-about {
    text-align: center;
}

.underline {
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 10px;
}

.note {
    text-align: center;
}

@media (max-width: 768px) {
    .header {
        justify-content: space-between;
        position: relative;
    }

    .navbar {
        display: none;
        flex-direction: column;
        background-color: #f1f1f1;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .navbar.show {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    #mode-toggle {
        margin-left: auto;
    }

    .container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .logo-item img {
        max-width: 80px;
    }

    .about {
        padding: 0 10px;
    }

    .footer {
        padding: 20px;
    }

    .main-content {
        padding: 10px;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {

    .dark-mode .hamburger span {
        background-color: #fff;
    }

    .dark-mode .navbar {
        background-color: #f1f1f1;
    }

    .dark-mode .navbar a {
        color: #333;
    }

    .dark-mode .navbar a:hover {
        color: #007bff;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
