body {
    font-family: Arial, sans-serif;
    margin: 0; 
    padding: 120px 0 0; 
    background-color: #f4f4f4; 
}

.header {
    background-color: #FFA500; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    z-index: 1000;
    top: 0;
}

.header img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.header a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin-left: 20px;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.header a:hover {
    color: #333;
    text-decoration: underline;
}


.header div:last-child {
    display: flex;
    align-items: center;
}

.uvodnitext {
    text-align: justify;
    max-width: 80%; 
    margin: 20px auto;
    padding: 20px; 
    background-color: white; 
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    font-size: 16px;
    line-height: 1.5;
    color: #333; 
}

.content {
    max-width: 80%;
    margin: 20px auto; 
    background-color: white; 
    padding: 20px;
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

label {
    font-size: 12px; 
    margin-bottom: 5px; 
}

input[type="number"],
select {
    width: 100%; 
    padding: 10px;
    border-radius: 8px; 
    border: 1px solid #ccc;
    box-sizing: border-box; 
    margin-bottom: 15px; 
}

input[type="submit"] {
    width: 100%; 
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: none; 
    background-color: #4CAF50; 
    color: white;
    cursor: pointer; 
}

input[type="submit"]:hover {
    background-color: #45a049; 
}

.result {
    margin-top: 20px;
    font-size: 18px;
    font-family: sans-serif;
    font-weight: bold;
    color: black; 
    text-align: center;
}


.form-row > div {
    width: 30%;
    margin-right: 5%; 
}

.form-row > div:last-child {
    margin-right: 0; 
}

.yap {
    max-width: 80%; 
    margin: 20px auto; 
    padding: 20px; 
    background-color: #ffffff; 
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
    font-size: 16px; 
    line-height: 1.6; 
    color: #333;
    text-align: justify;
}
.bilkoviny {
    max-width: 90%; 
    margin: 20px auto; 
    padding: 20px; 
    background-color: #ffffff;
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.bilk-container {
    font-size: 20px;
    display: flex; 
    align-items: flex-start; 
}

.bilk {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    width: 50%; 
}

.bilk img {
    width: 48%; 
    
    margin-bottom: 10px; 
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); 
}

.bilk-container p {
    width: 50%; 
    margin-right: 20px;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.button {
    background-color: #4CAF50;
    color: white;
    border: none;
    width: 150px;
    height: 60px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0;
}

.button:hover {
    background-color: #45a049;
}
.kontakt {
    max-width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.kontakt h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.kontakt p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
}

.kontakt form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.kontakt form div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    width: 45%;
}

.kontakt label {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
    display: block;
    float: left;
    width: 150px;
}

.kontakt input[type="text"], .kontakt input[type="email"]{
    width: 95%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    float: left;
    margin-left: 10px;
}

.button {
    background-color: #4CAF50;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #45a049;
}
@media only screen and (max-width: 800px) {
    .header {
        flex-direction: column; 
        align-items: flex-start; 
        width: 100%;
        position: relative;
        top: 0;
        margin-top: 0;
        
    }
    body {
        margin-top: 0;
        padding-top: 0; 
        
    }
    
    

    .header img {
        width: 80px; 
        height: 80px; 
        display: block; 
        margin:  auto;
        
        
    }
    .odkazy{
        flex-wrap: wrap;
    }

    .header a {
        margin-left: 0;
        margin-top: 10px; 
    }
    .container{
        margin-top: 20px;
    }
    .form-row{
        flex-direction: column;
    }
    .form-row > div {
        width: 100%; 
        margin-right: 0; 
        margin-bottom: 15px; 
    }
    input[type="number"],
    select {
        width: 100%;/
    }
    .bilk-container {
        display: flex; 
        flex-direction: column; 
        align-items: flex-start; 
        
    }

    .bilk-container {
        display: flex;
        flex-direction: column; 
        align-items: stretch; 
        width: 100%; 
    }

    .bilk-container p {
        width: 100%; 
        margin: 0;
        padding: 10px;
        box-sizing: border-box; 
    }

    .bilk {
        display: flex; 
        flex-wrap: wrap;
        justify-content: flex-start; 
        margin-top: 15px; 
        width: 100%; 
    }

    .bilk img {
        width: 48%; 
        margin-bottom: 10px; 
        border-radius: 5px; 
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); 
    }
    .button-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .button{
        width: 80%;
    }
    .kontakt {
        max-width: 80%;
        margin: 20px auto;
        padding: 20px;
        background-color: #ffffff;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .kontakt h2 {
        font-size: 24px;
        margin-bottom: 15px;
        color: #4CAF50;
    }

    .kontakt p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
        color: #333;
    }



    .kontakt input[type="text"], .kontakt input[type="email"]{
        width: 95%;
        border: 1px solid #ccc;
        float: left;
    }


    .kontakt form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .kontakt form div {
        display: flex;
        justify-content: space-between;
    }

    .button {
        background-color: #4CAF50;
        color: white;
        border: none;
        width: 100%;
        padding: 10px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .button:hover {
        background-color: #45a049;
    }
}