@charset "UTF-8";
@keyframes slidein {
    from{
      margin-right: 100%;
      width: 280px; 
    }
  
    to{
      margin-right: 0%;
      width: 100px;
    }
}
@keyframes move {
    from {
        left: 25%;
    }
    to {
        left: 75%;
    }
  }

a.enlace{
    text-decoration: none;
    position:absolute;
    top: 100px;
}

body{
    background-color: silver;
}
h1{
    color: yellow;
    font-style: italic;
    font-weight: bold;
    font-size: xx-large;
    text-align: center;
    text-decoration: underline;
    letter-spacing: 10px;
}
h2{
    color: yellow;
    text-align: left;
    position: absolute;
    right: 500px;
}
h2.segundo{
    top:450px;
    left: 150px;
    position:absolute;
}
p{
    position:absolute;
    right: 100px;
    top: 120px;
    width: 700px;
    background-color: aqua;
    color: maroon;
    letter-spacing: 2px;    
    font-weight: bold;
    word-spacing: 2px;
    font-size: 15px;
    text-align: justify;
    padding: 8px;
    border: dashed 3px;
}
p.segundo{
    top:300px;
    width: 1100px;
}
span{
    color: orange;
}
div.Ejemplo1 {
    text-align: center;
    width: 150px;
    height: 150px;
    background-color: yellowgreen;
    color: cyan;
    font-size: 20px;
    left: 150px;
    top: 130px;
    position:absolute;
    animation-duration: 5s;
    animation-name: slidein;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
div.Ejemplo2{
    width: 150px;
    padding-bottom: 10%;
    border-radius: 50%;
    background: green;
    box-shadow: -3px 5px 0px gray;
    position: absolute;
    top: 450px;
    left: 150px;
    text-align: center;
  }
div.Ejemplo2 {
    animation: 3s move infinite alternate;
  }