body {
    margin: 0;
    padding: 0;
    font-family: 'Arial';
    background-color: #293ad3;
    width: 100vw;
}
header{
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 20px;
}
header h1{
    margin-left: 20px;
    color: #d8d8d8;
}
header h2{
    color: rgb(219, 18, 18);
    align-self: center;
    width: 100%;
    text-align: center;
}
main h1{
    text-align: center;
    color: white;
}
.project-previews-and-content{
    display: flex;
    align-items: center;
    flex-direction: column;
}
.preview-container{
    display: flex;
    flex-direction: row;
    width: 80%;
    background-color: #3d92f3;
    padding: 20px;
    position: relative;
    margin-bottom: 50px;
}
.preview-img{
    width: 500px;
    height: auto;
}
.preview-img img{
    width: 75%;
}
.preview-description{
    width: 50%;
    display: flex;
    flex-direction: column;
}
.preview-description h3{
    color: rgb(255, 255, 255);
    font-size: 1.5em;
}
.preview-description p{
    color: white;
    font-size: 1.1em;
    flex-grow: 1;
}
.expand-btn {
    padding: 10px 20px;
    background-color: #ffffff;
    color: #293ad3;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-top: 15px;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}
.expand-btn:hover {
    background-color: #e0e0e0;
}
.expand-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
.project-content{
    display: flex;
    flex-direction: column;
    width: 80%;
    background-color: #1f2dac;
}
.project-content p{
    color: white;
    font-weight:500;
    font-size: 1.1em;
    padding: 10px;
}
.single-img{
    height: 600px;
    margin: auto;
}
.single-gif{
    margin: auto;
    text-align: center;
}
.double-img{
    width: 85%;
    display: flex;
    justify-content:space-between;
    align-items: center;
    margin: auto;
}
.single-img img{
    width: auto;
    height: 100%;
}
.double-img img{
    width: 49%;
    height: auto;
}
.video-container{
    text-align: center;
    margin: 20px auto;
}
.link-to-another-page{
    text-align: center;
    margin: 20px auto;
}
.link-to-another-page a{
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.link-to-another-page a:hover{
    color: #3d92f3;
}

/* Hide all project contents by default */
.project-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-bottom: 50px;
}

/* Show only the content following an opened preview */
.preview-container.preview-open + .project-content {
    max-height: 5000px;
    opacity: 1;
    display: flex;
}