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

body {
    background: rgb(226, 202, 202);
    color: orange;
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    font-family: 'Tagesschrift', sans-serif, 'Times New Roman';
    cursor: auto;
    flex-direction: column;
    overflow: auto;
}

body.dark {
    background: rgb(214, 117, 133);
}

nav {
    background: rgb(236, 88, 88);
    color: pink;
    padding: 10px 30px;
    margin-bottom: 30px;
    justify-content: center;
    font-size: 1.5rem;
    font-style: italic;
    width: 100%;
    display: flex;
}

body.dark nav {
    background: rgb(165, 37, 37);
}
nav ul {
    justify-content: center;
    gap: 50px;
    display: flex;
    list-style: none;
    text-decoration: rgb(206, 158, 68) wavy underline;
    font-style: italic;
}

nav a {
    text-decoration: none;
    color: orange;
}

#themeToggle {
    background: tomato;
    color: yellow;
    padding: 10px 30px; 
    margin: 15px 40px 0 auto;
    border: yellow dashed;
}

h2 {
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: orange;
    text-decoration: orange wavy underline;
    margin-top: 21px;
    margin-bottom: 17px;
}
body.dark h2 {
    color: yellow;
    text-decoration: yellow wavy underline;
}

p {
    text-align: center;
    align-items: center;
    justify-content: center;
    color: orange;
    font-size: 1.1rem;
    font-style: italic;
}

body.dark p {
    color: yellow;
}

.container-converter {
    background: rgb(245, 53, 53);
    flex-direction: row;
    width: 50%;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 50px 100px;
    width: auto;
    height: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

body.dark .container-converter {
    background: rgb(216, 82, 58);
}
main {
    justify-content: center;
    display: flex;
    flex: 1;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

label {
    text-align: center;
    font-size: 1.1rem;
    display: flex;
    display: flex;
    margin-bottom: 12px;
}

input, select {
    background: rgb(126, 77, 77);
    color: rgb(226, 190, 112);
    padding: 5px 7px;
    font-size: 0.8rem;
    font-weight: 600;
}

body.dark input, select {
    background: rgb(211, 139, 92);
    color: brown;
}
footer {
    text-align: center;
    color: orange;
    padding: 10px 30px;
    background: rgb(231, 64, 64);
    font-size: 1.3rem;
    font-style: italic;
    width: 100%;
}

body.dark footer {
    background: rgb(165, 37, 37);
}

@media (max-width: 600px) {
    nav ul {
        gap: 27px;
    }

    h2 {
        font-size: 1.31rem;
    }
    
    p {
        font-size: 1.09rem;
    }
    
    #themeToggle {
        padding: 10px 21px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.43rem;
        margin-top: 0;
        margin-bottom: 1.2rem;
    }

    label {
        font-size: 0.98rem;
    }

    input, select {
        padding: 5px 7px;
        margin-bottom: 11px;
        margin-top: 5px;
    }

    .container-converter {
        padding: 11px 21px;
    }

    footer {
        font-size: 1.1rem;
        padding: 11px 21px;
        margin-top: 21px;
    }
}