body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(../img/bg.png);
    background-color: rgb(33, 33, 33); 
}

nav {
    background-color: rgb(67, 67, 67);
    color: white;
    margin-top: 20px;
    border-radius: 5px;    
    padding-left: 50px;
    padding-right: 50px;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 10px;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Add this line for responsive nav */
}

nav ul li {
    margin: 0 10px;
    transition: all 0.5s ease-in-out;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 0px;
    transition: all 0.5s ease-in-out;
}

nav ul li a:hover {
    transform: scale(1.2);
    text-decoration: underline;
}

.main-div {
    width: 80%; /* Adjusted for responsiveness */
    background-color: #ffffff;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    border-radius: 5px;
}
.main-div-button {
    width: 30%; /* Adjusted for responsiveness */
    background-color: #ffffff;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    border-radius: 5px;
}

.main-div-img img {
    width: 100%; /* Adjusted for responsiveness */
    border-radius: 15px;
    margin-top: 10px;
}

.columns {
    display: flex;
    flex-wrap: wrap; /* Add this line for responsive columns */
    width: 80%; /* Adjusted for responsiveness */
    justify-content: space-between;
}

.column {
    display: flex;
    flex-direction: column;
    width: 100%; /* Adjusted for responsiveness */
    margin: 10px 0;
}
.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffacac;
    border-radius: 5px;
    padding: 15px;
    margin: 10px auto;
    width: 50%;
}

label {
    margin-right: 20px;
    min-width: 100px; /* Nastavení minimální šířky pro štítek */
    max-width: 100px;
}

input {
    flex: 1;
    padding: 5px; /* Přidání vnitřního odsazení pro vstupní pole */
}
select {
    flex: 1;
    padding: 5px;
    max-width: 185px;
}


.sub-div {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 15px;
    margin: 10px auto 10px auto;
    text-align: center;
    width: 50%;
}
.sub-div-nabizime {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 15px;
    margin: 10px auto 10px auto;
    text-align: center;
    width: 50%;
}
.sub-div-popis {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 15px;
    margin: 10px auto 10px auto;
    text-align: center;
    font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    width: 50%;
    font-weight: 600;
}
.sub-div-vycvik {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 15px;
    margin: 10px auto 10px auto;
    text-align: center;
    width: 50%;
}
.sub-div-vycvik img{
    width: 80%;
    border-radius: 5px;
}

#uvodnitext {
    font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    font-weight: bold;
    text-align: center;
}
.hlavni-button a {
    font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: blue;
    font-size: 38px;
    transition: all 1s ease-in-out;
}
.hlavni-button a:hover {
    transform: scale(1.5);
}
.hlavni {
    font-size: 40px;
    color: red;
    font-weight: bolder;
    margin: 0;
    padding: 0;
}
#hlavni2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
}

.vedlejsi {
    font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    font-weight: 30px;
    font-size: 20px;
    margin: 0;
    padding: 0;
}
.vedlejsi_nab {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

.blue {
    color: blue;
    font-weight: bolder;
}
.boldtext {
    font-weight: 700;
}

#motorka {
    width: 20%;
}

.moto h2 {
    color: rgb(54, 54, 54);
    background-color: rgb(226, 226, 226);
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 100px;
}

.motocykl {
    width: 100%;
}
.upravaautoosobni {
    background-color: yellow;
    border-radius: 5px;
}
.upravaautoosobnib_e {
background-color: aquamarine;
border-radius: 5px;
}
.upravamotorka {
    background-color: pink;
    border-radius: 5px;
}
.sikmobold {
    font-style: italic;
    font-weight: 700;
}
.stazeni {
    text-align: left;
}
.textprihlaska {
    font-weight: bold;
    text-align: left;
    padding: 0 40px 0 40px;
}
.cenik {
    width: 80%; 
    text-align: left;
    font-size: 20px; 
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-div {
        width: 90%;
    }
    .fotom3 {
        width: 80%;
    }

    .columns {
        flex-direction: column;
    }

    .column {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        display: none; /* Skryté pro mobilní zobrazení */
    }

    .nav-toggle {
        display: block;
        background-color: rgb(67, 67, 67);
        color: white;
        border: none;
        padding: 15px;
        font-size: 18px;
        cursor: pointer;
    }
    .nav ul li a {
        padding: 0;
    }

    .nav-toggle:focus {
        outline: none;
    }
    #motorka {
        width: 40%;
    }
    #auto {
        width: 50%;
    }
    .sub-div {
        width: 300px;
    }
    .main-div-img {
        width: 90%;
    }
    .moto {
        margin: 10px auto 5px auto;
        text-align: center;
        width: 80%;
    }
    .sub-div-nabizime {
        width: 300px;
    }
    #uvodnitext {
        font-size: 20px;
    }
    .sub-div-vycvik {
        width: 90%;
    }
    .hlavni {
        font-size: 30px;
    }
    #hlavni2 {
        font-size: 20px;
    }
    .sub-div-popis {
        width: 80%;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none; /* Skryté pro větší obrazovky */
    }
}
