* {
    box-sizing: border-box;
}

body {
    background-color: rgb(240, 234, 225);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bolder;
    margin: 50px;
}

h1 {
    font-size: clamp(36px, 6vw, 70px);
}

h2 {
    font-size: clamp(24px, 4vw, 48px);
}

h4 {border: 3px; border-color: rgb(138, 106, 3); border-style: solid; border-radius: 10px;
    padding: 7px;
    margin: 5px;
    background-color: burlywood;
    color: brown;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: clamp(10px, 2vw, 16px);
    /* width: clamp(250px, 20%, 270px); */
}

input {
    margin-bottom: 15px;
    font-weight: bolder;
}

@media (max-width: 600px) {
    .father {
        flex-direction: column;
        gap: 10px;
    }

    main {
        min-width: 100%;
        padding: 10px;
    }

    .column {
        width: 100%;
        margin: 0;
    }
    
}

.fatherCategories {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mainCategories {
    height: 850px;
    flex: 150px;
    display: grid;
    place-items: start;
    min-width: 60%;
    padding: 6%;
    margin-left: 3%;

}

.columnCategories {
    height: 1000px;
    flex: 150px;
    display: grid;
    place-items: center;
    margin-left: 6%;
    margin-right: 5%;
    margin-top: 45px;
    background-color: hsl(25, 38%, 53%);
    border-radius: 5px;
}

#lateral {

    background-color: bisque;
}

a {
    text-decoration: none;
}

header a {

    color: #000;
    font-weight: bolder;
    text-decoration: none;
    padding: 10px;
}

.languages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.title {
    text-align: center;
}

.title-bar {
    /* height: 40px; */
    background-color: brown;
    margin: 15px auto;
    width: clamp(270px, 60%, 550px);
    height: clamp(25px, 4vw, 40px);
}

.title_family {
    display: flex;
    justify-content: center;
    height: 100px;
    color:rgb(54, 24, 2)
}

.subtitle {
    display: flex;
    justify-content: center;
    text-align: center;
}

.landing {
    display: flex;
    justify-content: center;
    text-align: center;
}

.reverse {
    display: flex;
    justify-content: center;
    height: 70px;
    margin-top: 65px;
}

.units {
    color: brown;

}

ul {
    list-style-type: none;
    padding-right: 20px;
}


#results {
    margin-top: 5%;
    margin-bottom: 20%;
    height: 400px;
    width: clamp(270px, 60%, 550px);
    font-weight: bold;
    justify-content: center;
    font-size: clamp(24px, 6vw, 50px);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

footer {
    width: 100%;
    display: flex;
    justify-content: center;
}

footer a {
    color: #000;
    padding: 10px;
    margin: 10px;
}

.footI a {
    color: #000;
    padding: 10px;
    margin-top: 390px;
}

#image1 {
    width: 60%;
    justify-content: center;
    display: flex;
}

#image2 {
    height: 400px;
    justify-content: center;
    display: grid;
}

.imageI {
    width: 60%;
    justify-content: center;
    display: flex;
    flex: 150px;
    margin-top: 100px;
}

main {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

main a {
    background-color: rgb(138, 106, 3);
    color: rgb(54, 24, 2);
}

.unit-box {
    width: 250px;
    height: 250px;
    background-color: rgb(138, 106, 3);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
    flex: 150px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(24px, 5vw, 40px);
    font-weight: bolder;
    padding: 16px;
    border-radius: 5px;
    text-align: center;
    overflow-wrap: break-word;
}


.container {
    max-width: 800px;
    margin: auto;
    font-weight:normal;
}


#unitsList {
    font-size: 13px;
    line-height: 25px;
    padding-left: 20px; padding-right: 20px;
}


@media (max-width: 768px) {

    #converterForm {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #converterForm select {
        width: 100%;
    }

}