* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    position: relative;
    text-align: center;
    z-index: 2;
    color: #fff;
    text-shadow: 2px 2px #000000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    pointer-events: none; /* Uniemożliwienie zasłaniania innych elementów */
}

.menu {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10; /* Poprawiono z-index */
}

.menu-icon {
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: relative;
    z-index: 11;
}

.dropdown-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 50px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 5; /* Zmieniono na niższy z-index niż menu-icon */
    font-size: 14px;

}

.dropdown-menu.active {
    transform: translateX(0);
}

h1, h2 {
    z-index: 2;
    position: relative;
}

.logo-placeholder {
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

.logo {
    max-width: 60%;
    height: auto;
    z-index: 2;
    position: relative;
}

#newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    pointer-events: auto; /* Dodane aby formularz był interaktywny */
}

#newsletter-form input {
    padding: 10px;
    font-size: 1em;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#newsletter-form button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

#message {
    margin-top: 10px;
    color: #ff0;
    font-size: 1em;
}

.footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    z-index: 2;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(16, 50px);
    grid-gap: 10px;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.grid-cell {
    width: 50px;
    height: 50px;
    position: relative;
}

.square {
    width: 100%;
    height: 100%;
    transition: background-color 0.3s;
    position: relative;
}

 a, a:hover, a:focus, a:active {
      text-decoration: none;
      color: inherit;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1em;
    }

    .menu-icon {
        font-size: 25px;
    }

    .dropdown-menu {
        width: 250px;
        padding: 40px;
    }

    .logo {
        max-width: 70%;
    }

    #newsletter-form input, #newsletter-form button {
        width: 80%;
        font-size: 0.9em;
    }
}
