body{
    background: #f4f4f9;
}
main {
    margin: 2% 10%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project {
    border: none;
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    margin-left: 10vw;
    margin-right: 10vw;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.project h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    display: inline-block;
}
.project p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}
.project p strong {
    color: #2c3e50;
    font-weight: 600;
}

.add-button {
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.add-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.edit-button, .delete-button {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pictures {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}
.pictures a {
    display: block;
    width: 250px;
    height: 250px;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pictures a:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.pictures img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pictures a:hover img {
    transform: scale(1.05);
}

h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
h2 {
    color: #4b647d;
    font-size: 1.5rem;
    margin: 0 10vw;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 5px;
    background: #4b647d;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    text-align: center;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 80vw;
    height: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: auto;
    max-width: 80%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-overlay .close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.lightbox-overlay .close-lightbox:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-overlay .prev-arrow, .lightbox-overlay .next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #acacac;
    font-size: 50px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    transition: 0.1s ease-in;
    z-index: 1001;
}
.lightbox-overlay .prev-arrow {
    left: 20px;
}
.lightbox-overlay .next-arrow {
    right: 20px;
}
.lightbox-overlay .prev-arrow:hover, .lightbox-overlay .next-arrow:hover {
    font-size: 55px;
    color: white;
    text-shadow: 0 0 5px white;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.slider-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    aspect-ratio: 16 / 9;
    display: block;
    text-decoration: none;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    border-radius: 50%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 0 2px rgb(0, 0, 0);
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    text-align: center;
    transition: 0.1s ease-in;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow.prev-arrow {
    left: 10px;
}
.slider-arrow.next-arrow {
    right: 10px;
}
.slider-arrow:hover {
    font-size: 45px;
    color: white;
    text-shadow: 0 0 5px rgb(168, 168, 168);
}
main > p {
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    margin: 20px 0;
    color: #34495e;
    border-radius: 0 8px 8px 0;
}
main > p a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
main > p a:hover {
    color: #2980b9;
    text-decoration: underline;
}
.intro{
    width: 40%;
    color: #34495e;
    text-align: left;
    padding: 2px 20px;
    border-left: 1px solid #3498db;
    font-style: normal;
}

@media (max-width: 768px) {
    main {
        margin: 2% 5%;
   }
    .project {
        margin-left: 0;
        margin-right: 0;
        padding: 15px;
   }
    .pictures a {
        width: 150px;
        height: 150px;
   }
    h1 {
        font-size: 1.8rem;
   }
    h2 {
        font-size: 1.5rem;
        margin: 1% 0;
   }
    .intro{
        width: 80%;
        color: #34495e;
        margin-left: 2%;
        text-align: left;
   }
    .lightbox-content {
        width: 90%;
        max-width: 60vw;
        height: 90%;
        max-height: 60vh;
   }
   .lightbox-overlay .prev-arrow{
        left: 0px;
        font-size: 35px;
    }
    .lightbox-overlay .next-arrow{
        right: 0px;
        font-size: 35px;
    }
    .lightbox-overlay .prev-arrow:hover, .lightbox-overlay .next-arrow:hover {
        font-size: 40px;
    }
}
@media (max-width: 480px) {
    main {
        margin: 2% 3%;
   }
    .project {
        padding: 12px;
        border-radius: 8px;
   }
    .project h3 {
        font-size: 1.3rem;
   }
    .pictures a {
        width: 100px;
        height: 100px;
   }
    .actions {
        flex-direction: column;
        gap: 5px;
   }
    .edit-button, .delete-button {
        text-align: center;
   }
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 30px;
   }
    .slider-arrow:hover {
        font-size: 35px;
   }
}

.show-details {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.show-details:hover {
    background-color: #2980b9;
}

.show-details i {
    transition: transform 0.3s ease;
}

.show-details[aria-expanded="true"] i {
    transform: rotate(90deg);
}
main h1, main h2, main h3{
    animation: fadeIn 1s ease-in-out;
}
main p, main a{
    animation: slideIn 1s ease-in-out;
}
  
@keyframes fadeIn {
    from {
        opacity: 0;
   }
    to {
        opacity: 1;
   }
}
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
   }
    to {
        transform: translateY(0);
        opacity: 1;
   }
}