body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #333;
    color: white;
    padding: 1em 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

textarea, button {
    margin: 10px 0;
    padding: 10px;
    width: 95%;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#outputArea {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
    width: 100%;

}

/* This will make images responsive */
img {
    /* Set max-width to 100% so that the image will never be larger than its container */
    max-width: 100%;
    
    /* Setting height to auto ensures the aspect ratio is maintained */
    height: auto;
    
    /* Optional: If you want some padding around the image */
    padding: 5px;
    box-sizing: border-box;
}

/* For demonstration purposes, let's add a container */
.container {
    width: 100%;
    max-width: 800px; /* or whatever max width you want */
    margin: 0 auto; /* Centers the container */
}


/* Assuming your images are within this container */
.container img {
    display: block; /* Removes any space below the image due to line-height */
}

.bulb-container {
    display: inline-block;
    text-align: center;
    margin: 5px;
}

.bulb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ccc;
    margin-bottom: 5px;
    transition: background-color 0.3s;
}

.bulb.active {
    background-color: #ff0;
}

.switch {
    width: 30px;
    height: 50px;
    background: #ccc;
    border-radius: 15px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 5px auto; /* Centers the switch horizontally */
}

.switch::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 25px;
    left: 5px;
    transition: all 0.3s;
}

.switch.active::before {
    top: 5px;
    background: #000;
}

#counter {
    font-size: 24px;
    margin-top: 20px;
    text-align: center;
}

#binary {
    font-size: 24px;
    margin-top: 20px;
    text-align: center; 
}


#result {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


#card-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.card {
    width: 50px;
    height: 70px;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    background-color: #f9f9f9;
}

.card.small {
    background-color: #e0f7fa;
}

.card.large {
    background-color: #ffcdd2;
}

#controls {
    margin-top: 20px;
}

button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

select, input[type="number"], button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}