html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100vw;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: black;
    display: flex;
    flex-direction: column;
    text-align: center;
}
footer {
    background-color: #D69A2D;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: auto; 
    border-top: 2px solid orange;
    border-bottom: 2px solid orange;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #D69A2D;
    border-bottom: 2px solid orange;
    flex-wrap: wrap;
    text-align: center;
}
header img {
    height: 50px;
}
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 15px;
    flex-wrap: wrap;
}
.nav-bar a {
    color: black;
}
nav a:hover {
    color: #4169E1;
    text-decoration: none;
}
h1 {
    margin: 20px 0;
    color: black;
    animation: bounce 1.5s infinite ease-in-out;
}
.courses {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    flex: 1;
    min-height: 50vh;
}
.course {
    text-align: center;
    width: 150px;
}
.course img {
    width: 100px;
    height: auto;
}
.course a {
    color: black;
    text-decoration: none;
}
.course a:hover {
    color: #4169E1;
}
footer a {
    margin: 0 10px;
    text-decoration: underline;
    color: black;
}
footer a:hover {
    text-decoration: none;
    color: #4169E1;
}
@keyframes bounce {
    0%, 100% { 
    transform: translateY(0); 
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px #da291c;
 }
    50% { 
    transform: translateY(-5px); 
    background-color: #D69A2D;
    box-shadow: 0 8px 12px orange;
    }
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
 }
.nav-bar {
    flex-direction: column;
    gap: 10px;
 }
.courses {
    flex-direction: column;
    align-items: center;
 }
.course {
    width: 80%;
 }
footer {
    font-size: 12px;
    padding: 10px;
 }
}
/* For very small screens */
@media (max-width: 480px) {
.course {
    width: 95%;
 }
.course img {
    width: 80px;
 }
footer {
    text-align: center;
    font-size: 10px;
    padding: 5px;
 }
}
.course-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.course-search-container label {
    font-size: 14px;
    color: #333;
}

#courseSearchInput {
    width: 220px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

#courseSearchInput:focus {
    border-color: #007BFF;
    outline: none;
}