/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #hero-text {margin-top: 440px;
                overflow: hidden;}
}
  
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    #hero-text {margin-top: 300px;
                overflow: hidden;}
}
  
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #hero-text {margin-top: 200px;}
} 
  
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #hero-text {margin-top: 150px;}
} 
  
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    #hero-text {margin-top: 120px;}
}


#cards-container {
    max-=width: 1100px;
    margin: auto;
    overflow: auto;
    padding: 0 2rem;
  }

img {
    width: 100%;
  }
  
  .card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
    background: white;
    margin-bottom: 2rem;
  }
  
  .card h3 {
    text-align: center;  
    margin-bottom: 10px;  
    font-size: large;
    font-weight: bold;
  }

  .secondheading{
    text-align: left;  
    margin-top: 2rem;   
  }
  
  .card img { 
    height: 420px;
    margin: auto;

  }

  .card > div {
    padding: 2rem;
  }
  
  .card:nth-child(even) img {
    order: 2;
  }
  
  
  @media(max-width:600px) {
    .card {
      display: block;
    }
  }

  