/* RESET */
html {
    box-sizing: border-box;
    font-family: 'Karla', sans-serif;
    font-size: 16px;
}

h2, h4, p, ul, li {
    margin: 0;
}

*, *:before, *:after {
    box-sizing: inherit;
}
/* END OF RESET */

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

body{
    background-color: hsl(204, 43%, 93%);
}

#container {
    width: 634px;
    height: 476px;
    /* border: 3px solid red; */
    border-radius: 10px;
    background-color: white;
    box-shadow: 8px 7px 16px -8px rgba(14,44,87,0.42);    
    overflow: hidden;
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

#top-section {
    width: 100%;
    height: 45%;
    padding: 40px;
    line-height: 25px;    
}

#bottom-section {
    width: 100%;
    height: 55%;
    line-height: 35px;
    display: flex;

}

#bottom-left {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    background-color: hsl(179, 62%, 43%);
    padding-top: 40px;
    padding-left: 40px;
    color: white;
}

#bottom-right {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    background-color: hsla(179, 62%, 43%, 0.8);
    padding-top: 40px;
    padding-left: 40px;
    color: white;
}

button {
    font-family : inherit;
    font-size: 1em;
    width: 85%;
    background-color:  hsl(71, 73%, 54%);
    color: white;
    border-radius: 5px;
    padding: 15px 32px;
    text-align: center;
    border: 1px solid rgb(187, 187, 187);
    margin-top: 10px;
    font-weight: 400;
    font-size: 1.1rem;
    box-shadow: 8px 7px 16px -8px rgba(126, 126, 126, 0.42);   
}

button:hover {
    cursor: pointer;
    background-color: hsl(218, 22%, 67%);
}


#top-section h2 {
    color: hsl(179, 62%, 43%);
    font-weight: 700;
    margin-bottom: 20px;
}

#top-section h4 {
    color: hsl(71, 73%, 54%);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#top-section p {
    color: hsl(218, 22%, 67%);
    font-weight: 400;
}

#price {
    font-weight: 700;
    font-size: 2rem;
}

#price, #duration {
    display: inline-block;
}

#duration {
    position: relative;
    top: -5px;
    font-size: 0.8rem;
    opacity: 0.7;
}

ul {
    list-style-type: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 20px;
    opacity: 0.8;
}

footer {
    position:absolute;
    width: 99%;
    margin: 0 auto;
    bottom: 20px;
    text-align: center;
}

@media screen and (max-width: 675px) {
  #container {
    width: 340px;
    height: 670px;
  }
  button{
    margin-bottom: 30px;
  }
  ul{
    padding-bottom: 20px;
  } 
  #bottom-section {
    display: flex;
    flex-direction: column;
  }
  
  #top-section {
    height: 35%;
    padding: 20px;
    }
  
  #bottom-right {
    padding-top: 20px;
    padding-left: 20px;
  }
 
  #bottom-left{
    padding-top: 20px;
    padding-left: 20px;
  }
}

