/**
Palette: https://scrimba.com/links/hometown-palette
RED: #E63946
LIGHT: #F1FAEE
AQUA: #A8DADC
LIGHT BLUE: #457B9D
DARK BLUE: #1D3557

*/

@font-face {
  font-family: "HurryUp";
  src:
    url("fonts/Hurry-Up.otf") format("opentype") tech(color-COLRv1),
}

body {
    margin: 0;
    text-align: center;
    font-family: "HurryUp", sans-serif;
    text-shadow: 0px 0px 1px black;
    background-color: #264653;
    color: #e9c46a;
    
}

img {
    width: 100px;
}

h3 {
    margin: 0px;
    font-size: 2rem ;
}

#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url("images/hero-pr.webp");
    background-repeat: no-repeat;
    background-size: cover;
    text-shadow: 1px 1px 4px black;
    font-size: 2rem;
    padding: 40px 20px 80px;
    margin: 0;
    min-height: 600px;
}

#hero h2 {
    background-color: rgba(38, 70, 83, 10) ;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 24px;
    box-shadow: 4px 4px 20px black;
}

#activities {
    background-color: #2a9d8f;
    padding: 30px;
}

.activities-cards {
    display: flex;
    flex-direction: row;
    padding: 2rem;
    justify-content: space-around; 
    max-width: 1200px;
    margin: 0 auto;

}



.card {
    display: flex;
    flex-direction: column ;
    align-items: center;
    padding: .5rem 1rem;
    width: 280px;
}

.card img {
    object-fit: cover;
    min-width: 150px;
    height: 150px ;
    border-radius: 80px;
    box-shadow: -1px -1px 6px #264653;
}

.card h2 {
    font-size: 1.25rem;
    height: 92px;

}

.card p {
    font-size: 1rem;
}


.avatar {
    margin-left: 12px;
    width: 150px;
    border-radius: 12px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    object-fit: cover;
}

#guide {
    width: 400px;
    margin: 50px auto 120px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-direction: row-reverse;
    text-align: center;
    background: #6fffe9;
    color: #1c2541;
    border-radius: 8px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px; 
    border-bottom: 6px solid #5bc0be;
    /*
    Challenge:
    Find a color palette you like on Coolors.co
    and use it in your business card.
     */
}


/*
Stretch goals:
Find other ways you can personalize 
the design of your business card, e.g.:
- change the border(s)
- add border radius
- shuffle the layout
- shadows        🤯
- hover effects  🤯🤯
- animations     🤯🤯🤯
*/

#guide:hover {
animation-name: cardHoverAnimation ;
animation-duration: .6s;
animation-delay: 0s;
animation-fill-mode: forwards;
animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95) ;
  }
  
@keyframes cardHoverAnimation {
  0%   {transform: translateY(0px); }
  25%  {transform: translateY(0px); border-bottom: 6px solid #5bc0be;}
  50%  {transform: translateY(16px); border-bottom: 4px solid #5bc0be;}
  75%  {transform: translateY(10px);}
  100% {transform: translateY(8px); border-bottom: 2px solid #5bc0be;}
  }

@media (max-width: 720px) {
    .activities-cards {
        flex-direction: column;
        align-items: center;
    }
    .card { 
        box-shadow: -1px 1px 6px #264653 inset ;
        border-radius: 16px;
        border-bottom: 1px solid #264653;
        margin-bottom: 1rem;
    }
}

