body {
    background: #fffbf1;
    color: #333;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
}
.header {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-family: 'Pacifico', cursive;
}
.header h1 {
    font-size: 3rem;
    margin: 0;
}
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    margin-bottom: 20px;
}
.card-body {
    padding: 20px;
}
.card-title {
    font-family: 'Baloo 2', cursive;
    color: #f39c12;
}
.btn-primary {
    background: #e74c3c;
    border: none;
    color: #fff;
}
.btn-primary.active {
    background: #c0392b;
}
.footer {
    background: #f39c12;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-family: 'Pacifico', cursive;
}
.joke-interactions {
    margin-top: 20px;
    text-align: end;
}
.joke-interactions button {
    margin-right: 10px;
}
.joke-stats {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}
.top-joke-card {
    max-width: 600px;
    margin: 0 auto;
}
.slider-controls {
    text-align: center;
    margin-top: 20px;
}
.slider-controls .btn {
    background: #f39c12;
    border: none;
    color: #fff;
}
.slider-controls .btn:hover {
    background: #e67e22;
}
.slider-controls .btn:focus {
    box-shadow: none;
}
.slider-controls .btn i {
    font-size: 1.5rem;
}


.newsletter {
    background: #f39c12;
    color: #fff;
    padding: 30px 0;
    border-radius: 10px;
    margin-top: 30px;
    max-width: 560px;
    padding: 20px;
}

.newsletter h3 {
    margin-bottom: 20px;
    font-family: 'Pacifico', cursive;
}

.newsletter .form-control {
    border-radius: 20px;
    border: none;
    padding: 15px;
    max-width: 300px;
}

.newsletter .btn-primary {
    background: #e74c3c;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
}

.newsletter .btn-primary:hover {
    background: #c0392b;
}

.newsletter #email {
    width: 70%;
}

#newsletter-form .form-group {
    text-align: -webkit-center;
}

.newsletter .form-control::placeholder {
    font-family: 'Roboto', sans-serif;
    opacity: 0.8;
}

.joke-slider-wrapper {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.joke-slider {
    display: flex;
    overflow-x: hidden; /* Ensure no more than 3 jokes are visible */
    scroll-behavior: smooth;
    gap: 30px;
    max-width: 900px; /* This controls the total width of the visible area (3 jokes wide) */
}

.joke-slider > div {
    flex: 0 0 calc(33.3333% - 20px); /* Each joke takes up 1/3 of the container, showing 3 at a time */
    margin-right: 20px;
}