@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

:root{
    --background-color: rgb(83, 168, 150); 
    --header-text-color:white;
    --secondary-color: #8390FA;
    --cta-color:#FAC748;
    --box-shadow:2px 2px 2px lightgray;
    --text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}


*{
    padding:0;
    margin:0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
}

body{
    background-color: var(--background-color);
    font-family: 'Lato', sans-serif;
}

.siteheader{
    background-color: black;
    height: 80px;
    padding: 40px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--header-text-color);
    font-weight: 700;
}

.navmenu{
    display:flex;
    list-style: none;
    gap: 25px;
}

.navicons{
    display:flex;
    list-style: none;
    gap: 5px;
}

.logo{
    font-size:26px;
}

.logoicon{
    font-size:26px;
    color: var(--secondary-color);
}


.logopart2{
    color: var(--secondary-color);
}

.headeranchor{
    padding: 4px 10px;
    border-radius: 8px;
    color: white;
}


.navicons__headeranchor{
    padding: 4px 10px;
    border-radius: 8px;
    font-size:26px;
    color: var(--secondary-color);
}


.headeranchor:hover{
    background-color: var(--cta-color);
}

.rightimage{
    width:300px;
}



.navicons__headeranchor:hover{
    color: var(--cta-color);
}


.card{
    width: 500px;
}


h1{
    font-size:70px;
    text-shadow: var(--text-shadow);
    text-transform: uppercase;
    margin-top: 10px;
}

h2{
   color: var(--secondary-color);
   letter-spacing: 3px;
   margin: 10px;
}

    
.ctabutton{
    padding: 20px 40px;
    margin: 30px;
    border-radius: 12px;
    font-weight:700;
    font-size:30px;
    color:black;
    background-color: var(--cta-color);
    display:inline-block; 
}

.ctabutton:hover{
    background-color: white;
    border: 1px solid black;
}

section{
    text-align: center;
    padding: 20px 7%;    
}



.home{
    background: url('860645.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    color:white;
    display:flex;
    align-items: center;
}

.home__content {
    max-width:800px;
}


.salesparagraf{
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color:black;
    font-weight: 700;
    opacity: 0.7;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
}


.products,
.contact{
    min-height:100vh;
    text-align: center;
}


.contact__content{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:20px;
}

.contact__form__box{
    font-size:22px;
    margin:10px;
    padding: 1px 5px;
    border: 1px solid grey;
}

.contact__form__box__input{
    padding:10px;
    font-size: 20px;
    border:none;
    outline:none; 
}



.productgallery{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.productcard{
    box-shadow: 10px 5px 5px grey;
    border: 1px solid grey;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.productcard img{
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
} 



::selection{
    color: #fff;
    background: #6563ff;
  }
  .wrapper{
    padding: 25px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .cards, .card, .view, .details, p{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cards{
    height: 550px;
    width: 550px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .cards .card{
    cursor: pointer;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    height: calc(100% / 4 - 10px);
    width: calc(100% / 4 - 10px);
  }
  .card.shake{
    animation: shake 0.35s ease-in-out;
  }
  @keyframes shake {
    0%, 100%{
      transform: translateX(0);
    }
    20%{
      transform: translateX(-13px);
    }
    40%{
      transform: translateX(13px);
    }
    60%{
      transform: translateX(-8px);
    }
    80%{
      transform: translateX(8px);
    }
  }
  .cards .card .view{
    width: 100%;
    height: 100%;
    user-select: none;
    pointer-events: none;
    position: absolute;
    background: #fff;
    border-radius: 7px;
    transition: transform 0.25s linear;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    backface-visibility: hidden;
  }
  .card .front-view img{
    max-width: 35px;
  }
  .card .back-view{
    transform: rotateY(-180deg);
    
  }
  .card .back-view img{
    max-width: 80px;
  }
  .card.flip .front-view{
    transform: rotateY(180deg);
  }
  .card.flip .back-view{
    transform: rotateY(0);
  }
  
    .details {
      line-height: 2;
      display: none;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      width: 20rem;
      margin-top: 2px;
      padding: 10px;
      border-radius: 7px;
      background: #fff;
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
      z-index: 10;
    }
  .details p{
    font-size: 25px;
    height: 17px;
    padding-right: 18px;
    border-right: 1px solid #ccc;
    }
    
  .details button{
    cursor: pointer;
    color: #6563ff;
    border-radius: 4px;
    padding: 4px 11px;
    background: #fff;
    border: 2px solid #6563ff;
    transition: 0.3s ease;
  }
  .hover-button{
    position: relative;  
    cursor: pointer;
    font-size: 22px;
    color: #6563ff;
    border-radius: 4px;
    padding: 8px 20px;
    background: #fff;
    border: 2px solid #6563ff;
    transition: 0.3s ease;
  }
  .hover-button:hover .details {
    display: block;
  }
  .details a:hover{background-color:  lightgreen;}
  .flips{margin-left: 18px; cursor:default;}

  @media screen and (max-width: 700px) {
    .cards{
      height: 350px;
      width: 350px;
    }
    .card .front-view img{
      max-width: 16px;
    }
    .card .back-view img{
      max-width: 40px;
    }
  }
  
  @media screen and (max-width: 530px) {
    .cards{
      height: 300px;
      width: 300px;
    }
    .card .back-view img{
      max-width: 35px;
    }
    .details{
      margin-top: 10px;
      padding: 0 15px;
      height: calc(100% / 4 - 20px);
    }
    .details p{
      height: 15px;
      font-size: 17px;
      padding-right: 13px;
    }
    .details button{
      font-size: 13px;
      padding: 5px 10px;
      border: none;
      color: #fff;
      background: #6563ff;
    }
  }

