body, html {
    margin: 0;
    padding: 0;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background-color: #f0f8ff;
    color: #000;
}

body.dark-mode {
    background-color: #333;
    color: #fff;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.logo-container {
    align-self: flex-start;
    text-align: left;
    width: 100%; /* Ensures the container spans the full width */
}

.logo {
    font-size: 40px;
    color: #ff6347;
    margin-bottom: 20px;
    padding-left: 10px;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000000;
}

button {
    display: inline-flex; /* Use Flexbox */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    padding: 10px 20px; /* Uniform padding */
    font-size: 16px; /* Uniform font size */
    line-height: 1; /* Uniform line height */
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 10px; /* Increased margin for better spacing */
}

button:hover {
    background-color: #0056b3;
}

.social-share button {
    padding: 5px 10px; /* Smaller padding for smaller buttons */
    font-size: 14px; /* Smaller font size */
    margin: 5px;
}
.social-share button i {
    font-size: 16px; /* Adjust this value as needed */
}
.social-share button:nth-child(1) {
    background-color: #55acee;
}

.social-share button:nth-child(2) {
    background-color: #3b5998;
}

/* Light Theme Styles for Joke Box */
#joke {
    border: 2px solid #007bff; /* Blue border for light theme */
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    text-align: center;
    border-radius: 10px;
    background-color: #f9f9f9; /* Light background for the joke box */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for theme change */
}

/* Dark Theme Styles */
body.dark-mode #joke {
    border-color: #e0e0e0; /* Lighter border color for contrast in dark mode */
    background-color: #424242; /* Darker background for the joke box */
    color: #fff; /* Light text color for readability in dark mode */
    box-shadow: 0 4px 8px rgba(255,255,255,0.1); /* Shadow adjusted for dark theme */
}


section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.dark-mode section {
    background-color: #424242;
    color: #e0e0e0;
}

footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
    border-top: 1px solid #ddd;
}

footer a {
    color: #007bff;
}

footer a:hover {
    text-decoration: underline;
}

.dark-mode-toggle-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

#darkModeToggle {
    background: none;
    border: none;
    font-size: 24px; /* Larger icon for better visibility */
    cursor: pointer;
    color: #007bff; /* Adjust color to fit your theme */
}

#darkModeToggle:hover {
    color: #0056b3;
}