/* rooot colors */
:root {
    --primary: #f3f7f4;
    --secondary: #1caee7;
    --tertiary: #a0aaaa;
    --light-dark: #d57ddd;
    --light-green: #138d64;
    --dark: #020202;
    
  }
  
  * {
    box-sizing: border-box;
  }
  /* style the body */
  body {
    padding: 0;
    font-family: "Georgia", sans-serif;
    line-height: 1.5;
    background-image: url("https://wallpapercave.com/wp/wp1945909.jpg");
    
  }
  main{
    width: 80%;
    margin: 0 auto;
    background-color: var(--dark);
    height: 100vh;
    color: var(--primary);
    padding: 15px;
    border: 10px solid gray;
    border-radius: 20px;
    box-shadow: 4px 4px 4px 4px grey;
  }
  
  
  nav{
    background-color: var(--dark);
  }
  /* style the title */
  .title{
    text-align: left;
    padding: 15px;
    color: var(--primary);
  }
  /* style the poster section */
.poster-article{
    padding: 2%;
   
}
.poster{
    height:auto;
    margin: 10% auto;
    justify-content: center;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    border: 10px solid var(--primary);
}
/* set the width of images */
img{
  width: 100%;
  
}
p{
  font-size: 16pt;
}
/* style the link text */
a:active{
  color: rgb(0, 255, 149);
  
}
a:visited{
  color: #1caee7;
}
/* style the input form */
input[type=text] {
    font-size: 1.3rem;
    padding: 12px 8px;
    width: 80%;
    display: inline;
    border-radius: 5px;
    
  }
  /* style the buttons */
 button{
    font-size: 1.3rem;
    padding: 12px 8px;
    width: 15%;
    background-color: var(--light-green);
    display: inline;
    border-radius: 5px;
    cursor: pointer;
 }
button:hover {
    color: #000;
    background-color: var(--secondary);
    transform: translate(0, 0);
    
  }
  /* style the dropdown or button history */
  #dropdown{
    overflow: auto;
    float: right;
    padding: 1em;
    margin: 0 auto;

  }
  
  .list-item{
    list-style:none;
    padding: 5px 8px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    color: var(--primary);
    margin: 2% auto;
    text-align: center;
    background-color: #18aeae;
    
  }
  /* style the reviews section*/
  .reviews-section{
      text-align: left;
      
  }
  iframe{
      height: 400px;
      width: 100%;
      padding: 15px;
      margin: 8% auto;
  
  }
  /* style the h2 element */
  h2{
    font-size: 35px;
    background-color:var(--light-green);
    border-radius: 50px;
    border: 5px solid var(--tertiary);
    color: var(--primary);
  }
  h3{
    font-size: 35px;
    padding: 2%;
    
  }

  /* style the textarea and article */
 textarea, article{
      padding: 3%;
      width: 100%;
      height: 280px;
      margin: 2% auto;
      background-color: var(--primary);
      text-align: center;
      font-size: 18px;
      border-radius: 10px;
      
  }
  /* style the footer */
  footer{
      width: 100%;
      text-align: center;
      background-color: var(--dark);
      color: var(--primary);
      padding: 1%;
      font-size: 22px;
  }
  i:hover{
      color: white;
      
  }
 
  /* HEIGHT / WIDTH UTILS */
  .min-100-vh {
    min-height: 100vh;
  }
  
  .min-100-vw {
    min-width: 100vw;
  }
  
  
  /* FLEX CONTENT */
  .flex-row {
    display: flex;
    flex-wrap: wrap;
  }
  
  .justify-space-between {
    justify-content: space-between;
  }
  
  .col-12 {
    flex: 0 0 100%;
  }
  /* set layout for 280px device */
  @media screen and(max-width:280px){
    .poster-article{
     width: 100%;
    }
    .poster{
      width: 100%;
    }
    h2{
      font-size: 20px;
    }
    .reviews-section{
      width: 100%;
    }

  }
  /* set layout for 575px devices */
  @media screen and (max-width:575px) {
    .poster-article{
      width: 100%;
      
    }
    #dropdown{
      width: 100%;
    }
    .reviews-section{
      width: 100%;
      
    }
    article{
      height: auto;
    }
  }
  @media screen and (max-width:768px) {
     .reviews-section{
       width: 100%;
     }
    .poster-article{
      text-align: center;
      margin: 0 auto;
      width: 100%;
      
    }
   #dropdown, .list-item{
      text-align: center;
      width: 100%;
     
   }
  }
@media screen and (max-width:970px) {
  .poster-article{
    width: 100%;
  }
}

  @media screen and (min-width:575px){
    #dropdown, .list-item{
      width: 75%;
    }
    .poster-article{
      width: 80%;
      
    }
    .reviews-section{
      width: 100%;
    }
  }
/* col-sm */
@media screen and (min-width: 768px) {
  .poster-article{
    text-align: center;
    margin: 0 auto;
    
  }
  textarea, article{
    margin: 0 auto;
    width: 90%;
  }
  #dropdown{
    width: 50%;
  }
  .reviews-section{
    width: 100%;
    
  }
  iframe{
    width: 80%;
    height: 450px;
  }
}
@media screen and (min-width:1200px){
  .poster-article{
    width: 35%;
  }
  .reviews-section{
    width: 45%;
    padding: 1%;
  }
  #dropdown{
    width: 20%;
  }
  iframe{
    width: 100%;
  }
}
