@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;900&display=swap');

html, body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
  background-color: #edeef3;
  background-image: linear-gradient(to bottom, #C6C6C6 0%, #F5F5F5 51%);
}

.frame {
  position: relative;
  width: 98%;
  height: 84vh;
  max-width: 400px;
  max-height: 600px;
  z-index: 1;
  border-radius: 2rem;
}

.icons {
  margin-top: 4vh;
  user-select: none;
  z-index: 1;
}

.icons > img {
    width: 8vh;
    height: 8vh;
    max-width: 60px;
    max-height: 60px;
    cursor: pointer;
}

.card {
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  user-select: none;
  cursor: pointer;
  background: transparent;
  touch-action: none;
  margin-top: 25px;
}

.card .is-swipe {
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
}
.card .is-swipe::after {
  position: absolute;
  left: 50%;
  bottom: 30%;
  transform: translateX(-50%) rotate(-10deg);
  width:70%;
  height: 13%;
  font-size: 3em;
  letter-spacing: 0.2em;
  font-weight: 600;
  border-radius: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ========CARD INNER============= */
html {
    background-color: #1f2026;
    font-family: "Arial";
}

h2, h3, hr {
    padding: 0;
    margin: 0;
}

h4 {
    padding: 0;
    margin: 0;
    font-weight: 300;
}

button {
    font-size: 1rem;
}

ul {
    margin: 1rem;
    padding: 0;
}

p {
    overflow-wrap: break-word;
    margin: 0;
    padding: 0;
    color: #3c3d41;
}

a {
    text-decoration: none;
    padding: 0;
    margin: 0;
}


/* ===================== */
.card--container {
    margin: 0.5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: 98%;
    display: inline-grid;
    border-radius: 2rem;
    transition: all 1s;
}
.card:hover .card--container{
    transform: translate(0, -1rem);
    box-shadow: 1rem 1rem 5rem 0 rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 1rem 1rem 5rem 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 1rem 1rem 5rem 0 rgba(0, 0, 0, 0.5);
    transition: all 1s;
}

.card--content {
    padding: 1rem 2rem;
}

.card--content__bg {
    background: #FFF;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

.card--cutout {
    display: flex;
    width: 7.5rem;
    height: 7.5rem;
    border: 0.375rem solid #FFF;
    border-radius: 25rem;
    margin: 0 auto 1rem auto;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    transition: all 1s;
}
.card--cutout > img{
    width: 10rem;
}

.card--heading__bg {
    padding: 2rem;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    background: linear-gradient(0deg, #50f5ff 0%, #49acdf 100%);
    opacity: 1;
}

.card--subtitle {
    margin-top: 0.25rem;
    display: flex;
    justify-content: center;
    vertical-align: middle;
    color: #FFF;
}

.content--subtitle {
    font-weight: 900;
    display: inline-block;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #3c3d41;
}

.card--title {
    display: flex;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
    color: #FFF;
}

.header--divider {
    margin: 0.5rem;
    border: 0.0625rem solid #FFF;
    border-radius: 2rem;
}

.social--divider {
    margin: 0 2rem;
    border: 0.0625rem solid #DDD;
    border-radius: 2rem;
}

.social--container {
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}

.social--icon {
    display: inline-flex;
    background: linear-gradient(180deg, #50f5ff 0%, #49acdf 100%);
    border-radius: 2rem;
    width: 3rem;
    height: 3rem;
    margin: auto 0.25rem;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    color: #FFF;
    border: 0.125rem solid #FFF;
    transition: all 0.5s;
}
.social--icon:hover {
    transform: scale(1.2);
    transition: all 0.5s;
}
.social--icon:focus {
    transform: scale(1.2);
    transition: all 0.5s;
}
.social--icon:active {
    transform: scale(1.2);
    transition: all 0.5s;
}

.text--black {
    color: #000;
}


.grow { 
animation-duration: 2s;
animation-name: grow-effect;
animation-timing-function: cubic-bezier(0.740, 0.740, 0.740, 1);
animation-iteration-count: infinite;
}

@keyframes grow-effect {
    0%   { transform: scale(1)    }
    10%  { transform: scale(1.05)   }
    30%  { transform: scale(1.08)   }
    50%  { transform: scale(1.10)   }
    57%  { transform: scale(1.08)      }
    64%  { transform: scale(1.05)       }
    100% { transform: scale(1)      }
}

/**
* The "shine" element
*/
/* Hover state - trigger effect */
.shine-effect{
    overflow: hidden;
    position: relative;
}
.shine-effect:after {
    animation: shine 5s ease-in-out  infinite;
    animation-fill-mode: forwards;  
    content: "";
    position: absolute;
    top: -110%;
    left: -210%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.13);
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.13) 77%,
        rgba(255, 255, 255, 0.5) 92%,
        rgba(255, 255, 255, 0.0) 100%
    );
}
/* Hover state - trigger effect */
/* Active state */
.shine-effect:active:after {
    opacity: 0;
}

@keyframes shine{
    10% {
        opacity: 1;
        top: -30%;
        left: -30%;
        transition-property: left, top, opacity;
        transition-duration: 0.7s, 0.7s, 0.15s;
        transition-timing-function: ease;
    }
    100% {
        opacity: 0;
        top: -30%;
        left: -30%;
        transition-property: left, top, opacity;
    }
}
/**
* The "shine" element END
*/

.contacts{
/*margin-top: 5px;*/
list-style-type: none;
}

.skills{
margin-top: 13px;
display: block;
}

.project-image{
filter: grayscale(100%); /* Standard */
-webkit-filter: grayscale(100%); /* Webkit */
filter: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' height='0'><filter id='greyscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0' /></filter></svg>#greyscale"); /* Firefox4-34*/
filter: gray;  /* IE6-9 */
-webkit-filter: grayscale(1); /* Old WebKit */
}
.project-image:hover {
-webkit-filter: none;
filter:none;
}

.project-image > img {
width: 23%;

}

.project-image > img:nth-child(1) {
margin-top: 5px;
}


@media screen and (max-width: 720px) {
    .icons > img {
        width: 6vh;
        height: 6vh;
        max-width: 40px;
        max-height: 40px;
        cursor: pointer;
    }
    .skills{
        margin-top: 5px;
        display: block;
    }
    .frame {
        width: 98%;
        height: 81vh;
        font-size: 14px;
    }
}

@media screen and (max-height: 720px) {
    /*.icons{
        display: none;
    }*/
    .icons > img {
        width: 5vh;
        height: 5vh;
        max-width: 25px;
        max-height: 25px;
        cursor: pointer;
    }

}

@media screen and (max-height: 540px) {
  .frame {
    width: 98%;
    height: 81vh;
    font-size: 13px;
    
  }
  .card--container {
    width: 54vh;
    height: 81vh;
    font-size: 13px;
  }
  

}

@media screen and (max-height: 440px) {
  .frame {
    font-size: 8px;
  }
}