body {
    background-image: url(https://images.hdqwalls.com/download/small-memory-8k-2a-1920x1080.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
}

#home {
    width: 2vw;
    height: 4vh;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px;
    position: fixed;
    top: 10px; 
    left: 10px; 
    z-index: 10;
}

#homeImg {
    width: 2vw;
    height: 4vh;
    color: #fff;
    display: block;
}

#home a {
    color: inherit;
    text-decoration: none;
}

#home:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#cont {
    width: 50vw;
    margin: 5vh auto;
    padding: 2vw;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    text-align: center;
    cursor: default;
}

#cont h1 {
    font-size: 2em;
    margin-bottom: 1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.reference-item {
    margin-bottom: 2em;
}

.reference-item h3 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.reference-item p {
    font-size: 1em;
    margin-bottom: 1em;
    line-height: 1.5;
}

.reference-item a {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.5em 1em;
    background-color: #ffd700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.reference-item a:hover {
    background-color: #a9d6e5;
}

.images {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.images img {
    width: 45%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.images img:hover {
    transform: scale(1.05);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

#close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

#close:hover {
    color: #ff6600;
}

.prev, .next {
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    transition: color 0.3s ease;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1200px) {
    #home {
        width: 2vw;
        height: 3vh;
    }
    
    #homeImg {
        width: 2vw;
        height: 3vh;
    }

    #cont {
        width: 60vw;
        padding: 4vw;
    }

    #cont h1 {
        font-size: 1.8em;
    }

    .reference-item h3 {
        font-size: 1.3em;
    }

    .reference-item p {
        font-size: 0.9em;
    }

    .reference-item a {
        padding: 0.4em 1em;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    #home {
        width: 4vw;
        height: 3vh;
    }
    
    #homeImg {
        width: 4vw;
        height: 3vh;
    }

    #cont {
        width: 80vw;
        padding: 6vw;
    }

    #cont h1 {
        font-size: 1.5em;
    }

    .reference-item h3 {
        font-size: 1.2em;
    }

    .reference-item p {
        font-size: 0.8em;
    }

    .reference-item a {
        padding: 0.3em 0.8em;
        font-size: 0.8em;
    }

    .images {
        gap: 0.5em;
    }

    .images img {
        width: 48%;
    }

    #lightbox img {
        max-width: 90%;
        max-height: 90%;
    }

    #close {
        font-size: 30px;
        right: 10px;
    }

    .prev, .next {
        font-size: 40px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    #home {
        width: 5vw;
        height: 3vh;
    }
    
    #homeImg {
        width: 5vw;
        height: 3vh;
    }

    #cont {
        width: 70%;
        padding: 8vw;
    }

    #cont h1 {
        font-size: 1.2em;
    }

    .reference-item h3 {
        font-size: 1.1em;
    }

    .reference-item p {
        font-size: 0.7em;
    }

    .reference-item a {
        padding: 0.3em 0.7em;
        font-size: 0.7em;
    }

    .images {
        flex-direction: column;
        align-items: center;
    }

    .images img {
        width: 90%;
        margin-bottom: 1em;
    }

    #lightbox img {
        max-width: 95%;
        max-height: 95%;
    }

    #close {
        font-size: 25px;
        right: 5px;
    }

    .prev, .next {
        font-size: 30px;
        padding: 6px;
    }
}
