* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: MagicSchoolTwo;
    src: url('fonts/MagicSchoolTwo.ttf');
}

.font-magic {
    font-family: MagicSchoolTwo !important;
}

#header {
    width: 100vw;
    height: 100vh;
    background-image: url("imgs/fondo-top.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

#button-container {
    position: absolute;
    bottom: 30px;
    margin: auto;
}

#button-container img {
    width: 165px;
    height: auto;
    cursor: pointer;
}

#button-container img:hover {
    transform: scale(1.1);
}

@keyframes float {
    0% {
        /* box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6); */
        transform: translatey(0px);
    }

    50% {
        /* box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2); */
        transform: translatey(-20px);
    }

    100% {
        /* box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6); */
        transform: translatey(0px);
    }
}

@keyframes bienvenidos {
    0% {
        /* box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6); */
        transform: translatey(0px);

    }

    50% {
        /* box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2); */
        transform: translatey(-30px);

    }

    100% {
        /* box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6); */
        transform: translatey(0px);

    }
}

.avatar {
    overflow: hidden;
    transform: translatey(0px);
    animation: float 6s ease-in-out infinite;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    margin-top: -50px;
}

.avatar img {
    width: 500px;
    height: auto;
}

.bienvenidos img {
    width: 350px;
    transform: translate(0px, 0);
    animation: bienvenidos 8s ease-in-out infinite;
}

@keyframes dementor1 {
    0% {
        transform: translate(1000px, 600px);
        opacity: 0.01;
        width: 70%;
    }

    50% {
        transform: translate(1400px, 300px);
        opacity: 0.2;
        width: 120%;
    }

    100% {
        transform: translate(1450px, 550px);
        opacity: 0;
        width: 60%;
    }
}

@keyframes dementor2 {
    0% {
        transform: translate(10px, 800px);
        opacity: 0.01;
        width: 30%;
    }

    50% {
        transform: translate(500px, 600px);
        opacity: 0.2;
        width: 120%;
    }

    100% {
        transform: translate(450px, 550px);
        opacity: 0;
        width: 70%;
    }
}

@keyframes dementor3 {
    0% {
        transform: translate(0px, 50px);
        opacity: 0.01;
    }

    50% {
        transform: translate(-150px, 100px);
        opacity: 0.2;
    }

    100% {
        transform: translate(-10px, 950px);
        opacity: 0;
    }
}

.dementor1 {
    overflow: hidden !important;
    transform: translate(600px, 500px);
    animation: dementor1 20s ease-in-out infinite;
    opacity: 0.01;
    position: fixed;
    z-index: 1000;
}

.dementor2 {
    overflow: hidden !important;
    transform: translate(0px, -500px);
    animation: dementor2 20s ease-in-out infinite;
    opacity: 0.01;
    position: fixed;
}

.dementor3 {
    overflow: hidden !important;
    transform: translate(0px, -500px);
    animation: dementor3 20s ease-in-out infinite;
    opacity: 0.01;
    position: fixed;
}

/* DIVIDER */
#divider {
    background-color: #d08929;
    height: 30px;
    width: 100vw;
}

/* MAIN */
#agenda-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
}

#agenda {
    margin: auto;
    width: 350px;
    height: auto;
}

#main {
    z-index: 5;
    width: 100%;
    min-height: 100vh;
    background-color: #174b59;
    background-image: url("imgs/castillo.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding-top: 30px;
    padding-bottom: 30px;
}

#main #agenda {
    margin: auto;
}

#farmas-container {
    width: auto;
    padding: 0 100px;
}

.flex-parent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.child {
    flex-basis: 24%;
}

.child img {
    background-color: transparent;
    cursor: pointer;
}

/* MODAL */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content */
  .modal-content {
    background-color: transparent;
    margin: auto;
    padding: 20px;
    width: 60%;
    position: relative;
  }
  
  /* The Close Button */
  .close {
    color: #aaaaaa;
    position: absolute;
    left: calc(100% + 20px);
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  #agenda-img {
    width: 100%;
    height: auto;
  }
  

  @media (max-width: 780px) {
    .modal-content {
        width: 90%;
    }

    .avatar img {
        width: 300px;
    }

    .bienvenidos img {
        width: 250px;
    }

    #agenda {
        width: 290px;
    }

    #button-container {
        bottom: 20px;
    }
  }
  