/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    padding: 10px;
}
/* header style start*/
header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.logo {
    width: 100px;
}
/* header style end*/
/* Main container */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Heading */
h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Labels and inputs */
label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Converter container */
#converter {
    display: flex;
    align-items: center;
    gap: 10px;
}

#converter input[type="text"] {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333;
}

/* Recent Conversions */
#recentConversions {
    margin-top: 20px;
}

#recentConversions h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

#history {
    list-style-type: none;
    max-height: 150px;
    overflow-y: auto;
}

#history li {
    padding: 5px;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid #ddd;
}

/* Dark mode button */
button {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
}
/* description section start*/
.description {
    max-width: 800px;
    margin: 10px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.description p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;

}
/* description section end*/
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    #converter {
        gap: 15px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 30px;
    }

    #converter {
        gap: 20px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    #converter {
        flex-direction: column;
        align-items: stretch;
    }

    #converter input, #converter select, button {
        width: 100%;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.25rem;
    }
}
.dark-mode {
    background-color: #333;
    color: #3a0505;
}
/* header responsive style*/
@media (max-width: 768px) {
nav {
    flex-direction: column;
}

nav ul {
    flex-direction: column;
    margin-top: 10px;
}

nav ul li {
    margin-left: 0;
    margin-bottom: 10px;
}}
