body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background: #333;
    color: white;
    padding: 0.5rem;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 5px;
}

nav ul li a:hover {
    background-color: lightgray;
    border-radius: 5px;
}

section {
    padding: 20px;
}

.project {
    background: #f4f4f4;
    margin: 10px auto;
    padding: 10px;
    width: 80%;
    border-radius: 5px;
}

.project img {
    border: 2px dashed #333;
    width: 50%;
}

.project p {
    font-size: 0.9rem;
    font-family: "Times New Roman", serif;
    color: green;
}

iframe {
    width: 50%;
    height: 300px;
}

form {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: auto;
}

input, textarea, button {
    margin: 5px;
    padding: 10px;
}

button {
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: lightgray;
}

.source-code-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.source-code-btn:hover {
    background-color: lightgray;
    color: black;
}

#projects {
    position: relative;
    text-align: center;
    padding: 20px;
    height: 5%;
    width: 90%;
}

#projects-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    max-width: 100vw;
    padding: 20px 0;
}

.project {
    flex: 0 0 60%; /* Reduce width to 60% of the viewport */
    scroll-snap-align: center;
    margin: 0 10px;
    background: #f4f4f4;
    padding: 15px; /* Reduce padding */
    border-radius: 5px;
    display: inline-block;
    white-space: normal;
    max-height: 800px; /* Set a max height */
    overflow: hidden; /* Prevent content overflow */
}

/* Reduce image size */
.project img {
    width: 100%;
    max-width: 250px; /* Smaller image */
}

/* Reduce iframe size (videos) */
.project iframe {
    width: 25%;
    height: 25%; /* Smaller video */
}

