BODY {
    background-image: url('back.jpg');
    font-family: 'cwTeXYen', sans-serif;
    background-color: #E8E7D2;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-attachment: fixed;
    background-position: center;
}

    @font-face {
        font-family: 'cwTeXYen';
        font-style: normal;
        font-weight: 500;
        src: url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.eot);
        src: url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.eot?#iefix) format('embedded-opentype'), url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.woff2) format('woff2'), url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.woff) format('woff'), url(//fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.ttf) format('truetype');
    }

    audio {
    padding-right: 1500px;
    width: 200px;
    height: 30px;
}

header {
    background-color: #D2D5B8;
    color: white;
    padding: 20px;
    width: 100%;
    height: 130px;
}

h1 {
    font-family: 'cwTeXYen', sans-serif;
}

.h1-1 {
    font-size: 30px;
    margin-top: 15px;
}

nav {
    background-color: #C9BA9B;
    padding: 15px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    nav ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 20px;
    }

        nav ul li {
            font-size: 18px;
        }

            nav ul li a {
                color: white;
                text-decoration: none;
                padding: 10px 15px;
                border-radius: 5px;
                transition: background 0.3s, transform 0.2s;
            }

                nav ul li a:hover {
                    background: linear-gradient(to right, white 0%, #f5d289 100%);
                    color: #333;
                    transform: scale(1.1);
                }

p {
    font-size: 20px;
    line-height: 1.8;
    max-width: 800px;
    margin: 20px auto;
    color: #555;
}

button {
    background-color: #C9BA9B;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    button:hover {
        background-color: #ffcc00;
        transform: translateY(-3px);
    }

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

.photo-item {
    position: relative;
    text-align: center;
}

    .photo-item img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(189, 194, 187, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 16px;
    display: none; 
    text-align: center;
    box-sizing: border-box;
}

.photo-item:hover .hover-text {
    display: block; 
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #C9BA9B;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background-color 0.3s;
}

    .back-to-top:hover {
        background-color: #ffcc00;
        transform: scale(1.1);
    }

@media screen and (max-width: 768px) {
    BODY {
        background-size: cover;
    }

    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-item img {
        border-radius: 5px;
    }
}