body {
    background-color: black;
}

* {
    margin: 0;
    color: white;
    box-sizing: border-box;       
    font-family: monospace; 
}

h1 {
    font-weight: 300;
}

h2 {
    font-weight: 200;
}

#maindiv {
    height: 100vh;
    text-align: center;
    padding: 20px;
    background-image: url(files/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
}


#odliczanie {
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#countdownp, #WhatIsDate {
    font-size: 50px;
    font-style: italic;
    font-weight: 100;
    color: rgb(220, 220, 220);
    text-shadow: 5px 5px 0 black;
}

#WhatIsDate {
    font-size: 25px;
}

@keyframes stepFadeIn {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    75% {
        opacity: 0;
        transform: scale(0.75);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#countdown {
    animation: stepFadeIn 8s steps(4, end);
}

#dolna {
    height: 30%;
}

#countdown {
    font-size: 40px; 
    font-weight: bold;
    margin-bottom: 20px;
}

#kontakt {
    color: rgb(220, 220, 220);
    opacity: 0;
    animation: blink 1.5s steps(1) infinite;
    transition: transform 0.5s ease-in-out;
    animation-delay: 4s;
}

#kontakt:hover {
    opacity: 1;
    animation: none;
    cursor: pointer;
    scale: 1.1;
    color: rgb(240, 240, 240);
}

#kontakt.stop-delay {
    animation-delay: 0s;
}

@keyframes blink {
    0%, 50% { scale: 1; opacity: 1;}
    50%, 75% { scale: 1.05; opacity: 1;}
}

.typewriter {
    font-size: 25px;
    white-space: nowrap;
    overflow: hidden;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typewriter h2 {
    font-size: 25px;
}

#text {
    font-size: 100px;
    text-shadow: 10px 10px 0 black;
}

#form-container {
    display: none; /* Ukryj formularz na początku */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(20, 20, 20);
    border: 1px solid #ccc;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 18px;
}

#form-container input[type="text"], #form-container input[type="email"], #message, #form-container input[type="tel"], #form-container select {
    width: 100%;
    color: black;
}

select option {
    color: black;
}

#form-container h2 {
    margin-right: 70px;
}

.form-group {
    margin-top: 10px;
}

#form-container h2 {
    margin-top: 0;
}

#form-container button.close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    margin: 10px;
    font-size: 25px;
}

#overlay {
    display: none; /* Ukryj overlay na początku */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

#form-container input[type="submit"] {
    color: black;
    background-color: white;
}


@media (max-width: 1600px) {
    #text {
        font-size: 80px;
    }
    .typewriter {
        font-size: 25px;
    }
    #countdownp {
        font-size: 40px;
    }
    #WhatIsDate {
        font-size: 22px;
    }
    #dolna {
        font-size: 28px;
    }
}

@media (max-width: 1050px) {
    #text {
        font-size: 60px;
    }
    .typewriter {
        font-size: 20px;
    }
    #countdownp {
        font-size: 35px;
    }
    #WhatIsDate {
        font-size: 20px;
    }
    #dolna {
        font-size: 25px;
    }
}

@media (max-width: 550px) {
    #text {
        font-size: 50px;
    }
    .typewriter {
        font-size: 15px;
    }
    #countdownp {
        font-size: 30px;
    }
    #WhatIsDate {
        font-size: 18px;
    }
    #dolna {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    #text {
        font-size: 40px;
    }
    #countdownp {
        font-size: 30px;
    }
    #WhatIsDate {
        font-size: 16px;
    }
    #dolna {
        font-size: 16px;
    }
}

@media (max-width: 300px) {
    #text {
        font-size: 30px;
    }
    #countdownp {
        font-size: 25px;
    }
    #WhatIsDate {
        font-size: 14px;
    }
    #dolna {
        font-size: 14px;
    }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
}

.cursor {
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
}
