@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Montserrat:wght@500;700&display=swap');

:root {
    --dark-cyan : hsl(158, 36%, 37%);
    --dark-cyan-hover : hsl(158, 33%, 29%);
    --cream: hsl(30, 38%, 92%);
    --very-dark-blue: hsl(212, 21%, 14%);
    --dark-grayish-blue: hsl(228, 12%, 48%);
    --white: hsl(0, 0%, 100%);
    font-family: 'Montserrat', sans-serif;
}

html,body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body{
    background-color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--dark-grayish-blue);
}

@media (max-width: 800px) {
    .mobile-image {
        display: block;
        height:40%;
    }   
    .desctop-image{
        display: none;
    }     
    #card {
        flex-direction: column;
        width: 90%;
        height: 37rem;
    }
    
    .main-content > h4 {
        font-size: 0.7rem;
    }

    .main-content {
        height: 60%;
    }
}
@media (min-width : 800px){
    .mobile-image {
        display: none;       
    }   
    .desctop-image{
        display: block;
        width: 19rem;
    }     
    #card {
        width: 38rem;
    };
}

#card {
    display: flex;
    border-radius: 1rem;    
    background-color: var(--white);
    margin: auto;
    overflow: hidden;
}

.main-content {
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-content > h4 {
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin: 0;
}

.main-content > h1 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.9rem;
    margin: 0;
    width: 90%;
    color: var(--very-dark-blue);
}

.main-content > p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    padding-right: 3%;
}

.cost-wrap {
    display: flex;
    align-items: center;
}

.saled {
    font-size: 2rem;
    color : var(--dark-cyan);
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    margin-right: 1.2rem;
}

.before {
    text-decoration: line-through;
    font-size:0.8em;
}

.main-content > button {
    background-color: var(--dark-cyan);
    color: var(--white);
    border-radius: 7px;
    border:none;
    height: 2.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.main-content > button:hover {
    background-color: var(--dark-cyan-hover);
}

button > img {
    margin-right: 1em;
}

.attribution {
    font-size: 11px;
    text-align: center;
}
.attribution a {
    color: hsl(228, 45%, 44%);
}
