/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f0f0f0;
}

/* Section styling */
.section {
    background-color: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header section */
#header {
    text-align: center;
    background-color: #e8e8e8;
}

#header h1 {
    margin-bottom: 10px;
}

/* About section */
#about {
    line-height: 1.6;
}
#twoPartSection{
    display: flex;
    gap: 10px;
    justify-content: center;
}
/* Image section */
#imageSection {
    text-align: center;

}

#chuckImage {
    max-width: 100%;

    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Movies table */
#movieSection {
    overflow-x: auto;
}

#moviesTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1px solid #ddd;
}

#moviesTable th,
#moviesTable td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

#moviesTable th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

#moviesTable tbody tr:nth-child(even) {
    background-color: #C2D7BF;
}

#moviesTable tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

#moviesTable tbody tr:hover {
    background-color: #f5f5f5;
}

/* Filter section */
#filterSection {
    display: flex;
    gap: 10px;
    align-items: center;
}

#yearFilter {
    padding: 8px;
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Joke section */
#jokeText {
    min-height: 50px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

/* Control buttons */
#controlSection {
    display: flex;
    gap: 10px;
    justify-content: center;
}

button {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .section {
        padding: 15px;
    }
    
    #controlSection {
        flex-wrap: wrap;
    }
    
    button {
        flex: 1 1 calc(50% - 5px);
    }
}