:root {
    --blue: #1e90ff;
    --red2: #780618;
    --red: #e92a41;
    --yellow: #ffa218;
    --orange: #f86d31;
  }
  @font-face {
    font-family: BreeSerif;
    src: url("/fonts/BreeSerif-Regular.ttf")
      format("truetype");
  }
  
  @font-face {
    font-family: Roboto;
    src: url("/fonts/RobotoSlab-Regular.ttf")
      format("truetype");
  }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100dvh;
    background-color: #369;
    
}

#zoom {
    width: 100%;
    height: 100%;
    transform-origin: 0px 0px;
    transform: scale(1) translate(0px, 0px);
    cursor: grab;
    z-index: -1;
    display: flex;
    justify-content: center;
}
  
#zoom svg {
    height: 100vh;
    width: auto;
}

.zoom_outer {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.contenedor-botones {
    width: 100%;
    height: 100%;
    display: flex;
    margin: 1rem;
    gap: 0.5rem;
    justify-content: center;
}

.boton {
    background-color: #e92a41;
    display: flex;
    border-radius: 1rem;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
    color: white;
    font: 600 0.8rem Roboto;
    z-index: 0;
    cursor: pointer;
    transition: 0.2s ease;
    user-select: none;
}

.boton:hover {
    scale: 1.1;
}

.container-imperialismo {
    width: 100%;
    height: 100%;
}

.imperialismo {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    gap: 1%;
    background-color: transparent;
    box-shadow: 2px 2px 10px rgb(0, 0, 0, 0.25);
    overflow: hidden;
}

.pais {
    width: 22vw;
    height: 8vw;
    background-color: white;
    box-shadow: 2px 2px 10px rgb(0, 0, 0, 0.25);
    border-radius: 1vw;
    color: white;
    padding: 1%;
    transition: 0.2s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.pais h1 {
    font-family: BreeSerif;
    font-size: 1.5vw;
    margin: 0;
}

.pais p {
    font-family: Roboto;
    font-size: 1vw;
    width: 60%;
    margin: 0;
}

.pais:hover {
    filter: brightness(110%);
}

.contenedor-paises {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.contenedor-imagen {
    height: 120%;
    width: 50%;
    position: absolute;
    border-radius: 1vw;
    bottom: 0;
    right: 0;
    overflow-x: hidden;
}

.contenedor-imagen img {
    height: 100%;
    position: absolute;
    right: -70%;
}

.carta-pais {
    background-color: #e73a2d;
    color: white;
    font-family: Roboto;
    font-size: 1.2vw;
    width: 15vw;
    height: 28vw;
    padding: 1%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 1%;
    right: 1%;
    border-radius: 1vw;
    box-shadow: 2px 2px 10px rgb(0, 0, 0, 0.25);
}



#i-1 {
    background-color: #e73a2d;
}

#i-2 {
    background-color: #9ac31c;
}

#i-2 img {
    left: 15%;
}

#i-3 {
    background-color: #b24995;  
}

#i-3 img {
    left: 15%;
}

#i-4 {
    background-color: var(--yellow); 
}

#i-4 img {
    left: 15%;
}


#egipto:hover {
    filter: brightness(120%);
}

#imperio-belga {
    display: none;
}

@media only screen and (max-width: 600px) {
    #zoom svg {
        scale: 3;
    }

    .contenedor-paises {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pais {
        width: 150px;
        height: 75px;
        align-items: center;
        justify-content: center;
    }

    .pais img {
        height: 80%;
        bottom: 0;
    }

    .pais p {
        font-size: 0.5rem;
    }

    .pais h1 {
        font-size: 0.8rem;
    }

    .pais img {
        height: 80%;
        pointer-events: none;
    }

    .boton {
        font-size: 0.5rem;
    }
}