Template:Sandbox/styles.css

From Archon Arcana - The KeyForge Wiki
@keyframes fade-five-1 {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  24% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-five-2 {
  0% {
    opacity: 1;
  }
  4% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  24% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-four-1 {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-four-2 {
  0% {
    opacity: 1;
  }
  8% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-three-1 {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  44% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-three-2 {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  44% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade-two-1 {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-two-2 {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}



@media screen and (min-width: 451px) {
  .artGallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .artistCards {
    background-color: #c0c0c0;
    width: 100%;
    height: 200px;
    max-width: 200px;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5%;
    transition: all 0.3s ease-in-out;
    margin-bottom: 1%;
    margin-left: 0.5%;
    margin-right: 0.5%;
    box-shadow: 3px 3px 0px #202020;
    border-top: 1px solid #202020;
    border-left: 1px solid #202020;
    opacity:.8;
  }
  
    .artistCards .one .cardFull {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: -9px 10px;
    margin: 0px;
    opacity: 1;
    transition: all .3s ease-in-out;
  }

  .artistCards .one .cardArtifact {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: -5px -15px;
    margin: 0px;
    opacity: 1;
    transition: all .3s ease-in-out;
  }

  .artistCards .one .cardUpgrade {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: 0px -90px;
    margin: 0px;
    opacity: 1;
    transition: all .3s ease-in-out;
  }
  

  .artistCards .four .cardFull,
  .artistCards .three .cardFull,
  .artistCards .two .cardFull,
  .artistCards .five .cardFull {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: -9px 10px;
    position: absolute;
    margin: 0px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
  }

  .artistCards .four .cardArtifact,
  .artistCards .three .cardArtifact,
  .artistCards .two .cardArtifact,
  .artistCards .five .cardArtifact {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
        position: absolute;
    object-position: -5px -15px;
    margin: 0px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
  }

  .artistCards .four .cardUpgrade,
  .artistCards .three .cardUpgrade,
  .artistCards .two .cardUpgrade,
  .artistCards .five .cardUpgrade {
    max-width: 200px;
    width: 100%;
    height: 100%;
    transform: scale(1.5);
    object-fit: cover;
    object-position: 0px -90px;
    margin: 0px;
        position: absolute;
    opacity: 0;
    transition: all 0.3s ease-in-out;
  }

  .artistCards .artistName {
    width: 100%;
    text-align: center;
    background-color: #101010;
    color: white;
    font-size: 1.3em;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding-top: 11px;
    padding-bottom: 8px;
    box-sizing: border-box;
  }

  .artistCards:hover {
    box-shadow: 3px 3px 0px #505050, 3px 3px 8px #505050;
    opacity:1;
  }

  /* code for sets of five images */
  .artistCards .five img:nth-of-type(1) {
    animation: fade-five-2 10s;
    animation-delay: 0s;
    animation-play-state: paused;
  }

  .artistCards .five img:nth-of-type(2) {
    animation: fade-five-1 10s infinite;
    animation-delay: 0.5s;
    animation-play-state: paused;
  }

  .artistCards .five img:nth-of-type(3) {
    animation: fade-five-1 10s infinite;
    animation-delay: 2.5s;
    animation-play-state: paused;
  }
  .artistCards .five img:nth-of-type(4) {
    animation: fade-five-1 10s infinite;
    animation-delay: 4.5s;
    animation-play-state: paused;
  }
  .artistCards .five img:nth-of-type(5) {
    animation: fade-five-1 10s infinite;
    animation-delay: 6.5s;
    animation-play-state: paused;
  }
  .artistCards .five img:nth-of-type(6) {
    animation: fade-five-1 10s infinite;
    animation-delay: 8.5s;
    animation-play-state: paused;
  }

  /* code for sets of four images */
  .artistCards .four img:nth-of-type(1) {
    animation: fade-four-2 8s;
    animation-delay: 0s;
    animation-play-state: paused;
  }
  .artistCards .four img:nth-of-type(2) {
    animation: fade-four-1 8s infinite;
    animation-delay: 0.5s;
    animation-play-state: paused;
  }
  .artistCards .four img:nth-of-type(3) {
    animation: fade-four-1 8s infinite;
    animation-delay: 2.5s;
    animation-play-state: paused;
  }
  .artistCards .four img:nth-of-type(4) {
    animation: fade-four-1 8s infinite;
    animation-delay: 4.5s;
    animation-play-state: paused;
  }
  .artistCards .four img:nth-of-type(5) {
    animation: fade-four-1 8s infinite;
    animation-delay: 6.5s;
    animation-play-state: paused;
  }
  
    /* code for sets of three images */
  .artistCards .three img:nth-of-type(1) {
    animation: fade-three-2 6s;
    animation-delay: 0s;
    animation-play-state: paused;
    opacity: 1;
  }
  .artistCards .three img:nth-of-type(2) {
    animation: fade-three-1 6s infinite;
    animation-delay: 0.5s;
    animation-play-state: paused;
  }
  .artistCards .three img:nth-of-type(3) {
    animation: fade-three-1 6s infinite;
    animation-delay: 2.5s;
    animation-play-state: paused;
  }
  .artistCards .three img:nth-of-type(4) {
    animation: fade-three-1 6s infinite;
    animation-delay: 4.5s;
    animation-play-state: paused;
  }
  
      /* code for sets of two images */
  .artistCards .two img:nth-of-type(1) {
    animation: fade-two-2 4s;
    animation-delay: 0s;
    animation-play-state: paused;
    opacity: 1;
  }
  .artistCards .two img:nth-of-type(2) {
    animation: fade-two-1 4s infinite;
    animation-delay: 0.5s;
    animation-play-state: paused;
  }
  .artistCards .two img:nth-of-type(3) {
    animation: fade-two-1 4s infinite;
    animation-delay: 2.5s;
    animation-play-state: paused;
  }
  
  /* code to trigger animation on hover */
    .artistCards:hover .five img,
  .artistCards:hover .four img, .artistCards:hover .three img, .artistCards:hover .two img {
    animation-play-state: running;
  }

}

/* average sized phones */
@media screen and (min-width: 360px) and (max-width: 450px) {
  .artGallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .artistCards {
    background-color: #c0c0c0;
    width: 100%;
    height: 150px;
    max-width: 150px;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 2px 2px 0px #505050;
    border-top: 1px solid #505050;
    border-left: 1px solid #505050;
  }

  .artistCards .cardFull {
    width: 300px;
    height: 420px;
    object-fit: cover;
    object-position: -100px -60px;
    margin: 0px;
    opacity: 1;
  }

  .artistCards .cardArtifact {
    width: 300px;
    height: 420px;
    object-fit: cover;
    object-position: -60px -70px;
    margin: 0px;
    opacity: 1;
  }

  .artistCards .cardUpgrade {
    width: 300px;
    height: 420px;
    object-fit: cover;
    object-position: -40px -190px;
    margin: 0px;
    opacity: 1;
  }

  .artistCards .artistName {
    width: 100%;
    text-align: center;
    background-color: #303030;
    color: white;
    font-size: 1em;
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding-top: 5px;
    padding-bottom: 5px;
    box-sizing: border-box;
  }
}

/* very small phones */
@media screen and (max-width: 359px) {
  .artGallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .artistCards {
    width: 100%;
    flex: 1;
    display: block;
    overflow: hidden;
  }

  div.artistCards:nth-child(even) {
    background-color: #e0e0e0;
  }

  div.artistCards:nth-child(odd) {
    background-color: #ffffff;
  }

  .artistCards .cardFull {
    display: none;
  }

  .artistCards .cardArtifact {
    display: none;
  }

  .artistCards .cardUpgrade {
    display: none;
  }

  .artistCards .hiddenMobile {
    display: none;
  }

  .artistCards .artistName {
    width: 100%;
    text-align: left;
    opacity: 1;
    color: black;
    padding-left: 20px;
    font-size: 1.1em;
    padding-top: 8px;
    padding-bottom: 8px;
    box-sizing: border-box;
  }

  .artGallery a:link,
  .artGallery a:hover,
  .artGallery a:visited {
    color: black;
    text-decoration: none;
    border-bottom: 1px dotted black;
  }
}

.artGallery a:link,
.artGallery a:hover,
.artGallery a:visited {
  color: white;
  text-decoration: none;
}