html, body {
    height: 100%;
    background-image: linear-gradient(rgba(140,0,39,0.7), rgba(140,0,39,0.7)), url(/static/tlo.png);
    background-size: cover;
    background-position: 10% 100%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main{
    background-color: white;
    text-align: center;
    width: 30vw;
    max-width: 600px;
    padding: 3rem;
    margin: 3rem auto;
    margin-top: 10rem;
    border-radius: 8px;
    box-shadow: 0 0 25px #3f001381;
}

.main h2{
    color: #595959;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.main button{
    background-color: #8c0027;
    color: white;
    width: 15rem;
}

.main button:hover{
    background-color: white;
    color: #8c0027;
    border: 2px solid #8c0027;
}

.main form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.input-wrapper{
    width: 100%;
    max-width: 25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
    position: relative;
    margin: 0 auto;
}

.input-wrapper input{
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
}

.autocomplete-suggestions{
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-suggestion{
    padding: 8px 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.active{
    background: #f6f6f6;
}

.autocomplete-suggestions.show{
    display: block;
}

.container-fluid{
    flex: 1 0 auto;
}

.copyright{
    margin-top: auto;
    text-align: center;
    color: #ff5887;
    width: 100%;
    background: transparent;
}

.copyright a{
    text-decoration: none;
    color: #ff5887;
}

@media (max-width: 1024px) {
    .main{
        width: 90vw;
        padding: 1.75rem;
    }
    .input-wrapper{
        max-width: 100%;
    }
    .main button{
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main{
        padding: 1rem;
    }
    .input-wrapper input{
        padding: 6px 8px;
        font-size: 0.95rem;
    }
    .autocomplete-suggestions{
        top: calc(100% + 4px);
    }
}

@media (max-width: 1024px) {
    .ics-link{
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .ics-link{
        font-size: 0.95rem;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

.ics-link{
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
}

.instrukcja{
    color: #8c0027;
}