* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: rgb(197, 197, 197);
    color: rgb(247, 244, 244);
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: 'Raleway', sans-serif, 'Times New Roman';
}

body.dark {
    background: rgb(110, 109, 109);
}
main {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav {
    background: rgb(180, 43, 43);
    color: grey;
    padding: 10px 30px;
    text-align: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

nav ul {
    list-style: none;
    justify-content: space-around;
    display: flex;  
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: grey wavy underline;
}

nav a {
    text-decoration: none;
    color: grey;
    font-style: italic;
}

#themeToggle {
    padding: 10px 30px;
    float: right;
    margin: 15px 40px 0 auto;
    margin-top: 30px;
    margin-bottom: 30px;
    color: rgb(83, 83, 83);
    font-size: 1.12rem;
    border: rgb(78, 78, 78) dashed;
    background: rgb(207, 177, 177);
}

body.dark #themeToggle {
    background: rgb(235, 114, 114);
    border: rgb(131, 66, 66) dashed;
}

h2 {
    text-align: center;
    align-items: center;
    justify-content: center;
    color: rgb(153, 15, 38);
    text-decoration: rgb(110, 26, 51) wavy underline;
    margin-bottom: 21px;
}

body.dark h2 {
    color: rgb(252, 207, 207);
    text-decoration: rgb(252, 207, 207) wavy underline;
}

.use-cases {
    text-align: center;
    align-items: center;
    justify-content: center;
    color: rgb(133, 6, 44);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
}

body.dark .use-cases {
    color: rgb(253, 207, 207);
}
.container-converter {
    background: rgb(187, 66, 66);
    color: grey;
    padding: 10px 30px;
    width: auto;
    height: auto;
    text-align: center;
}

h1 {
    font-size: 1.5rem;
    color: rgb(233, 228, 228);
    margin-bottom: 30px;
    margin-top: 21px;
}

body.dark h1 {
    color: rgb(228, 202, 202);
}
label {
    color: rgb(221, 218, 218);
    font-size: 1.1rem;
    padding: 10px 30px;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

body.dark label {
    color: rgb(223, 195, 195);
}
input, select {
    background: rgb(214, 177, 177);
    color: rgb(197, 18, 48);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    margin: 21px;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    margin-right: 30px;
}

body.dark input, select {
    color: rgb(99, 4, 4);
}

button {
    background: rgb(238, 186, 186);
    padding: 10px 30px;
    margin-top: 30px;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif, 'Times New Roman';

}

body.dark button {
    background: rgb(189, 147, 147);
    color: rgb(77, 8, 8);
    font-weight: 600;
}
p {
    color: rgb(240, 221, 224);
    font-size: 1.3rem;
}

body.dark .result p {
    color: rgb(179, 145, 145);
}

footer {
    padding: 10px 30px;
    background: rgb(165, 38, 38);
    color: grey;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    margin-top: 50px;
    width: 100%;
}

@media (max-width: 768px) {
    container-converter {
        width: auto;
        height: auto;
    }
    button {
        font-size: 1rem;
    }
    input, select {
        width: 100%;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.3rem;
    }
    label {
        display: block;
        margin: 7px 0;
    }
    input, select {
        width: 100%;
        font-size: 0.8rem;
    }

    nav ul {
        flex-direction: column;
        padding: 1px;
    }
    nav ul li {
        margin: 7px 0;
    }
}