
@import url('https://fonts.googleapis.com/css2?family=Condiment&family=Ephesis&family=Griffy&family=Meow+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Potta+One&family=Radley:ital@0;1&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

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

body {
    font-family: 'Radley', sans-serif;
    min-height: 100vh;
    display: flex;
    background-color: rgb(209, 198, 47);
    flex-direction: column;
    justify-content: space-between;
}
body.dark {
    background: rgb(170, 138, 30);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: relative;
    justify-content: center;
    gap: 50px;
    background: rgb(221, 158, 41);
    top: 0;
    z-index: 10;
}
body.dark nav {
    background: rgb(146, 102, 51);
}
nav ul {
    list-style: none;
    display: flex;
    text-decoration: rgb(128, 108, 19) wavy underline;
    gap: 20px;
    justify-content: center;
    font-size: 1.5rem;
    font-style: italic;
}
body.dark nav ul li a {
    color: rgb(245, 222, 180);
    text-decoration: rgb(243, 223, 180) wavy underline;
}
nav ul li a {
    text-decoration: none;
    color: #666511;
    font-size: 1.4rem;
    font-family: 'Radley', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

#themeToggle {
    position: relative;
    padding: 10px 30px;
    margin-top: 50px;
    margin-bottom: 50px;
    margin: 15px 40px 0 auto;
    background: rgb(238, 240, 116);
    font-size: 0.89rem;
    font-weight: 600;
    font-family: 'Radley', sans-serif;
    border: rgb(126, 126, 57) dashed;
}

body.dark #themeToggle {
    background: rgb(238, 196, 60);
    border: rgb(126, 68, 35) dashed;
}

h2 {
    text-align: center;
    color: rgb(114, 114, 26);
    text-decoration: rgb(114, 114, 29) wavy underline;
    margin-bottom: 21px;
}

body.dark h2 {
    color: rgb(247, 229, 192);
    text-decoration: rgb(247, 229, 192) wavy underline;
}

p {
    color: rgb(100, 79, 38);
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    align-items: center;
    margin-bottom: 30px;
}
body.dark p {
    color: rgb(247, 229, 192);
}
.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 0;
    background: #b32222;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;

}
body.dark form {
    background: rgb(180, 178, 52);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: rgb(110, 5, 23);
    text-align: center;
}
body.dark h1 {
    color: rgb(218, 198, 161);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 500px;
    margin: 50px auto;
    background: rgb(235, 232, 106);
    padding: 30px;
    box-shadow: 3px 4px 12px rgba(116, 99, 7, 0.4);
    border-radius: 0;
    font-family: 'Radley', sans-serif;
    
}

label {
    font-size: 16px;
    text-align: left;
    font-weight: bold;
    color: rgb(151, 93, 5);
    font-size: 1.3rem;
}

body.dark label {
    color: rgb(117, 59, 12);
}

input, select {
    padding: 12px;
    font-size: 16px;
    font-family: 'Radley', sans-serif;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #616913;
    width: 45%;
}

body.dark input, select {
    color: rgb(73, 50, 1);
}

input::placeholder {
    color: rgba(91, 97, 3, 0.7);
    font-size: 1.1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    background-color: rgb(126, 133, 37);
    color: #fff;
    font-size: 1.3rem;
    font-family: 'Radley', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35%;
    padding: 12px 20px;
}

.btn:hover {
    background-color: rgb(158, 158, 8);
}

body.dark .btn {
    background: rgb(153, 97, 12);
    color: rgb(243, 233, 224);
}

body.dark .btn:hover {
    background: rgb(170, 84, 4);
    color: rgb(190, 174, 128);
}
.output {
    margin-top: 1.4rem;
    font-size: 1.54rem;
    font-weight: bold;
    color: rgb(145, 142, 19);
    text-align: center;
}

body.dark .output {
    color: rgb(128, 65, 6);
    font-size: 1.54rem;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: rgb(207, 147, 35);
    color: #2e3008;
    font-size: 1.3rem;
    font-style: italic;
}

body.dark footer {
    background: rgb(129, 80, 39);
    color: rgb(248, 217, 159);
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 22px;
    }
}

@media (Max-width: 700px) {
    nav {
        flex-direction: column;
        gap: 12px;
        padding: 12px 21px;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        font-size: 1.23rem;
    }

    #themeToggle {
        margin: 15px auto 0 auto;
        display: block;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    input, select {
        width: 80%;
    }

    form {
        width: 95%;
        padding: 21px;
    }

    .btn {
        width: 70%;
    }
    
    p {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .output {
        font-size: 1.19rem;
    }
}
