#mezek{
    margin-top: 20px;
    display: flex;
    justify-content: center; 
    gap: 10px; 
    flex-wrap: wrap;
}

#mezek figure{
    width: 250px;
    margin: 0;
}

#mezek img{
    border-radius: 5px;
}

figcaption {
    text-align: center;
    margin-top: 10px;
}

.form-container {
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 20px 20px 20px;
    border-radius: 5px;
    border: 3px solid black;
    max-width: 500px;
}

.form-container h2{
    margin: 0 auto;
    margin-bottom: 15px;
}

.form-container label {
    display: flex;
    margin: 10px 0 3px;  
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

textarea {
    resize: none;                       
}

.gender-group{
    display: flex;
    gap: 20px;
    margin-top: 5px;;
}

.gender {
    display: block;
}

.checkboxes-group{
    display: flex;
    gap: 10px;
}

.checkboxes{
    margin-top: 10px;
}

.checkboxes label{
    display: contents;
}

.buttons {
    display: flex;                
    justify-content: center; 
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

input[type="submit"], input[type="reset"] {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    min-width: 120px;
}

.images{
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 20px;
    flex-wrap: wrap;
}

.images img {
    max-width: 250px;
    object-fit: contain; 
    flex: 1 1 30%;
}

