:root {
--Very-Dark-Grayish-Blue: hsl(217, 19%, 35%);
--Desaturated-Dark-Blue: hsl(214, 17%, 51%);
--Grayish-Blue: hsl(212, 23%, 69%);
--Light-Grayish-Blue: hsl(210, 46%, 95%);
}


@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    background-color: var(--Light-Grayish-Blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.main-container {
    background-color: #fff;
    margin-top: 2rem;
    border: none;
    width: 350px;
    border-radius: 15px;
}

.container-above {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    height: 15rem;
    margin-bottom: 1rem;
}

.container-above .drawer {
    width: 100%;

}

.container-middle {
    padding: 1rem 2.8rem 1rem 2rem;
}

.container-middle h2 {
    color: var(--Very-Dark-Grayish-Blue);
    font-size: 1.1rem;;
    line-height: 1.3;
    font-weight: 700;
    padding-bottom: 1rem;;
}


.container-middle p {
    color:var(--Desaturated-Dark-Blue);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}


.container-below .front {
    padding: 0.5rem 1rem 0.5rem 1.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container-below .front .sub {
    display: flex;
    align-items: center;
}

.container-below .front .sub .profile {
    width: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.container-below .front .sub .detail h3 {
    color: var(--Very-Dark-Grayish-Blue);
}


.container-below .front .sub .detail p {
    color: var(--Desaturated-Dark-Blue);
}



.container-below .back {
    background-color: var(--Very-Dark-Grayish-Blue);
    padding: 0.78rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 15px 15px;
}

.container-below .back ul {
    list-style: none;
    display: flex;
    margin: 0.5rem 1rem 0;

}
.container-below .back ul .share {
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.2rem;
    margin-top: 2px;
}

.container-below .back ul li {
    padding-right: 1rem;
}

.container-below .button {
    width: 30px;
    padding: 8px;
    margin-right: 1rem;
    border-radius: 50%;
}

.container-below .back .button {
    background-color: var(--Desaturated-Dark-Blue);
}

.container-below .front .button {
   background-color: var(--Light-Grayish-Blue); 


}

.container-below .new-button {
    display: none;
}


.active {
    display: none !important;
}


.attribution { 
    font-size: 11px; text-align: center; 
}
.attribution a { 
    color: hsl(228, 45%, 44%); 
}


@media (min-width: 560px) {

    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }
    

    .main-container {
        background-color: #fff;
        min-width: 800px;
        border-radius: 15px;
        display: grid;
        grid-template-columns: 40% 60%;

    }
    
    .container-above {
        grid-row-start: 1;
        grid-row-end: 3;
        margin: 0;
        padding: 0;
        height: auto;
        border-radius: 15px 0 0 15px;
    }

    .container-above .drawer {
        width: 100%;
        height: 100%;
    
    }
    
    .container-middle {
        padding: 1.5rem 2.8rem 1rem 2.8rem;
    }
    
    .container-middle h2 {
        font-size: 1.2rem;
        word-spacing: 0.4rem;
    }

/*hiding the old buttons and adding a new one for toggle option*/
    .container-below .button {
        display: none;
    }

    .container-below .new-button {
        display: inline;
        width: 30px;
        padding: 8px;
        margin-left: 12rem;
        border-radius: 50%;
        background-color: var(--Light-Grayish-Blue);
    }


/*styling the options for desktop view*/

.container-below {
    position: relative;
}

    .container-below .back {
        position: absolute;
        padding: 0.78rem 1rem;
        width: 15rem;
        border-radius: 15px;
        left: 19.2rem;
        bottom: 4rem;
    }

    .container-below .back::after{
        content: '';
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-top: 20px solid var(--Very-Dark-Grayish-Blue);
        position: absolute;
        left: 40%;
        bottom: -60%
      }


    
    .container-below .back ul {
        list-style: none;
        display: flex;
        margin: 0.5rem 1rem 0;
    
    }
    .container-below .back ul .share {
        text-transform: uppercase;
        color: #fff;
        letter-spacing: 0.2rem;
        margin-top: 2px;
    }
    
    .container-below .back ul li {
        padding-right: 1rem;
    }
}