/* code inspo from https://www.w3schools.com/howto/howto_js_slideshow.asp */
#code-projects, #art-projects {
  display: flex;
  flex-direction: row;
  margin: auto;
  align-items: center;  
  justify-content: center;
  width: 75vw;
  background-color: #04202b4d;
  border-radius: 40px;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.2) 5px 5px 5px;
  
  .slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 65vw;
    margin: 0 5% 0 5%;
    height: 90vh;

    h2 {
      margin: 10px 0 0 0;
    }
    .picture {
      margin: 20px;
      height: fit-content;
      width: min-content;
      max-height: 55vh;
      max-width: 70vw;

      img {
        height: auto;
        width: auto;
        max-width: 50vw;
        max-height: 40vh;
        min-height: 20vw;
      }
    }
    .description {
      margin: 10px 20px 0 20px;
      text-align: left;
      height: 17vh
    }
    .skills {
      margin: 10px 20px 20px 20px;
      text-align: center;
      font-style: italic;
      height: 8vh;
    }
  }
  .prev, .next {
    cursor: pointer;
    width: auto;
    height: 55px;
    padding: 16px;
    color: #ecfaff;
    background-color: #04202b;
    border: none;
    font-weight: bold;
    font-size: 18px;
    border-radius: 3px;
    user-select: none;
  }
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }
}

.fade {
  animation-name: fade;
  animation-duration: 0.75s;
}

@keyframes fade {
  from {opacity: 0}
  to {opacity: 0.5}
  to {opacity: 1}
}
@media only screen and (max-width:700px) {
  #code-projects,
  #art-projects {
      margin: 2px !important;
      width: auto !important;
      padding: 10px 0 !important;
      .slide {
          margin: 0;
          width: 100%;

          .description,
          .skills {
            height: fit-content;
          }
          
        .picture {
          margin: 10px 2px !important;
          width: auto !important;
          img {
              margin: 0;
              width: 100% !important;
              max-width: unset !important;
          }
        }
      }
      .prev, .next {
          padding: 8px;;
      }
      h2 {
          font-size: medium;
      }
  }
}
@media only screen and (min-width: 800px) and (max-width: 1000px) {
  #code-projects, #art-projects {
    width: 90vw;
      .slide {
        width: 80vw;
        margin: 0 2% 0 2%;
        height: fit-content;

        .picture {
          margin: 10px;
          height: auto;
          width: min-content;
          max-height: auto !important;
          max-width: 70vw !important;

          img {
            height: auto;
            width: auto;
            max-height: 70vh !important;
            max-width: 70vw !important;
          }
        }
        .description {
          height: 50vh;
        }
        .skills {
          height: 20vh;
        }
      }
  }
}

@media only screen and (min-width:1001px) and (max-width:1080px) {
  #code-projects, #art-projects {
    width: 90vw;
    
  .slide {
    width: 80vw;
    margin: 0 2% 0 2%;
    height: fit-content;
    max-height: min-content;
    justify-content: space-evenly;
    
    .picture {
      margin: 10px;
      height: auto;
      width: min-content;
      max-height: fit-content;
      max-width: 70vw !important;

      img {
        height: auto;
        width: auto;
        max-height: 30vh !important;
        max-width: 70vw !important;
        min-height: 15vh;
      }
    }
    .description {
      height: unset;
    }
    .skills {
      height: unset;
    }
  }
  }
}