body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}
main {
    padding: 2rem;
    text-align: center;
    margin-bottom: 80px; /* Added for footer space */
}
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.course-image {
    margin-top: 10px;
}

.example-image {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto; 
}

/* Styles for course tiles */
.course-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.course-tile {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-tile a {
    text-decoration: none;
    color: #333;
    display: block;
}

.course-tile img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.course-tile h3 {
    margin: 15px;
    color: #1a73e8;
    padding-bottom: 15px;
}


/*  */
/* Courses */
/*  */
.back-link {
    margin-bottom: 20px;
    display: inline-block;
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Styles for exercise groups */
.exercise-group {
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.exercise-group h2 {
    color: #1a73e8;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Styles for example tiles */
.example-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.example-tile {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.example-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.example-tile h3 {
    color: #1a73e8;
    margin-top: 0;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.resource-links a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.resource-links a:hover {
    background-color: #e0e0e0;
}

.resource-links a.pdf {
    background-color: #f44336;
    color: white;
}

.resource-links a.solution {
    background-color: #4CAF50;
    color: white;
}

.resource-links a.github {
    background-color: #24292e;
    color: white;
}

.example-description {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

.resource-links a.matlab {
    background-color: #EDB120;
    color: white;
}

.resource-links a.python {
    background-color: #0072BD;
    color: white;
}

.resource-links a.python-app {
    background-color: #FFD43B;
    color: #306998;
}

.example-description {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}