* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: url(https://syloww.github.io/Outdoor-Escape-Game-App-in-Mulhouse/images/fond.png);
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

.titre {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFF;
    z-index: 4;
    font-family: "Jersey 10", sans-serif;
    font-style: normal;
    letter-spacing: 2px;
}
.titre h1{
    margin-bottom: 40px;
    letter-spacing: 4px;
}

.preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
    width: 100%;
    height: 200px;
}

.preloader-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

.preloader-item svg {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
}

.preloader-item h3 {
    color: #FFF;
    font-size: 1rem;
    font-style: italic;
}

/* Animation pour le son */
.sound-item {
    animation-name: fadeInOut;
}

/* Animation pour la localisation */
.location-item {
    animation-name: fadeInOut;
    animation-delay: 3s;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Styles pour les bâtiments et l'église */
.church-container {
    position: fixed;
    bottom: 20%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1; /* Changé de 9 à 1 */
    pointer-events: none;
}

.building-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2; /* Gardé à 2 (mais maintenant supérieur à l'église) */
    overflow: hidden;
    pointer-events: none;
}

.building-img {
    width: 100%;
    height: auto;
    min-width: 100%;
    object-fit: cover;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}


.church-img {
    width: 100%;
    height: auto;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.show-buildings .building-img {
    animation: slideUp 1s ease-out forwards;
}

.show-buildings .church-img {
    animation: slideUpChurch 1s ease-out 0.3s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpChurch {
    to {
        opacity: 1;
        transform: translateY(0);
        bottom: 10%;
    }
}