body {
    margin: 0;
    padding: 0;
}

.title {
    text-shadow: 2px 2px 5px #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.stage-container {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos pasen a otra línea */
    position: relative;
    transform: translate(-50%, 0);
    left: 50%;
    top: 0;
    margin-top: 1em;
    width: 90%;
    height: max-content;
    border: 1px solid #ccc;
    justify-content: center; /* Centra los stages en cada línea */
}

.stage {
    display: flex;
    flex: 0 0 auto;      /* No se estira ni se encoge */
    align-items: center;
    justify-content: center;
    width: 22.5vw;
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid #ccc;
    background-color: #000;
    margin: 5px;
    cursor: pointer;
    box-sizing: border-box;
    opacity: 1;
    cursor: pointer;
}

#stage1 {
    background: url(https://ssb.wiki.gallery/images/thumb/7/7e/SSBU-Small-Battlefield.jpg/1200px-SSBU-Small-Battlefield.jpg) center center/cover no-repeat;
}
#stage2 {
    background: url(https://ssb.wiki.gallery/images/thumb/8/86/SSBU-Battlefield.png/1200px-SSBU-Battlefield.png) center center/cover no-repeat;
}
#stage3 {
    background: url(https://ssb.wiki.gallery/images/thumb/0/02/SSBU-Smashville.png/1200px-SSBU-Smashville.png) center center/cover no-repeat;
}
#stage4 {
    background: url(https://ssb.wiki.gallery/images/thumb/7/73/SSBU-Pok%C3%A9mon_Stadium_2.png/1200px-SSBU-Pok%C3%A9mon_Stadium_2.png) center center/cover no-repeat;
}
#stage5 {
    background: url(https://ssb.wiki.gallery/images/thumb/2/26/SSBU-Town_and_City.png/1200px-SSBU-Town_and_City.png) center center/cover no-repeat;
}

#stage6 {
    background: url(https://ssb.wiki.gallery/images/thumb/9/91/SSBU-Final_Destination.jpg/800px-SSBU-Final_Destination.jpg) center center/cover no-repeat;
}
#stage7 {
    background: url(https://ssb.wiki.gallery/images/thumb/b/bf/SSBU-Kalos_Pok%C3%A9mon_League.png/1200px-SSBU-Kalos_Pok%C3%A9mon_League.png) center center/cover no-repeat;
}
#stage8 {
    background: url(https://ssb.wiki.gallery/images/thumb/7/7e/SSBU-Hollow_Bastion.jpg/1200px-SSBU-Hollow_Bastion.jpg) center center/cover no-repeat;
}