h1{
    margin-top: 5%;
}

.title-container{
    padding-bottom: 1rem;
    text-align: center;
}

.card-title-container{
    height: 25%;
    width: 90%;
    margin: 0 auto;
}

.title{
    font-size: 24px;
}

.card{
    background-color: var(--white);    
    margin: 0 auto;
    margin-top: 3%;
    color: var(--black);
    position: relative;
    border-radius: 25px;
}

.read-more{
    display: none;
    position: absolute;    
    height: 3rem;
    background-color: var(--blue);
    border: none;
    color: var(--white);
    font-weight: 700;
    box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    outline: none;
    transition: 0.2s all;
    text-decoration: none;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.card-title{
    padding-top: 5%;
    display: block;
    font-weight: 700;
    width: 100%;
    margin: 0 auto;
    font-size: 16px;
}

.card-text{
    padding: 5%;
    font-size: 9px;
}

.overlay{
    display: none;
    justify-content: center;
    margin-top: 1rem;
}

.card-overlay{
    display: none;
    color: var(--white);
    text-align: center;
    padding-bottom: 10%;
    flex-direction: column;
    align-self: center;
}

.card-overlay > p{
    margin-top: 10%;
    padding: 0 5% 0 5%;        
}

.card-overlay > .card-subtitle{
    margin-top: 5%;      
}

.card-title-overlay{
    padding-top: 20%;
    display: inline-block;
    font-weight: 700;
    font-size: 18px;
}

.img-overlay-container{
    width: 70%;
    margin: 0 auto;
    margin-top: 5%;
}

.img-overlay-container > img{
    border-radius: 25px;
    width: 100%;
}

.img-container{
    margin: 0 auto;
    margin-top: 3%;
    height: 50%;
}

.img-container > img{
    height: 100%;
}

#service-two > p{
    margin-top: 10%;
}

ol{
    width: 75%;
    margin: 0 auto;
    margin-top: 6%;
    font-size: 14px;
}

li{
    margin-bottom: 10px; 
}

.bold{
    font-weight: 700;
    font-size: 18px;
}

.service-container{
    display: none;
}

.close{
    background-color: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0.5rem 2rem 0.5rem 2rem;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 2rem;
    width: 50%;
    align-self: center;
}

.close:hover{
    border: 2px solid var(--blue);
    background-color: var(--black);
    font-size: 18px;
    box-shadow: 0 10px 25px 2px var(--blue);
    -webkit-box-shadow: 0 10px 25px 2px var(--blue);
    -moz-box-shadow: 0 10px 25px 2px var(--blue);
}

@media screen and (min-width: 320px) and (max-width:599px){
    h1{
        margin-top: 5%;
    }

    .services-container{
      display: flex;
      flex-direction: column;
      margin: 5% 0 5% 0;
      text-align: center;
    }
  
    .card{
      height: 250px;
      width: 250px;
      margin-top: 2rem;
    }
  
    .read-more{
      top: 82%;
      width: 100%;
      left: 0%;        
      font-size: 15px;
    }    
  
    .card-subtitle{
      font-size: 10px;
    }
  
    .card-text{
      font-size: 12px;
    }
    
    .card-overlay{
      width: 80%;
    }
  
    .paragraph{
      font-size: 14px;      
    }
  
    .card-overlay > .card-subtitle{
      font-size: 12px;       
    }
  
    .img-container{        
      width: 70%;
      height: 100px;
    }
  
    .small-width{
      display: block;
    }
  
    .medium-width{
      display: none;
    }
  }
  
@media only screen and (min-width: 600px){
    .bold {
        font-weight: 700;
        font-size: 24px;
    }

    ol{
        font-size: 15px;
    }

    .services-container{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .card{
        height: 250px;
        width: 250px;
        margin-left: 1%;
        margin-right: 1%;
    }

    .card-title{
        width: 85%;
    }

    .read-more{
        top: 81%;
        width: 100%;
        left: 0%;        
        font-size: 15px;
    }    

    .card-subtitle{
        font-size: 10px;
    }

    .card-text{
        font-size: 12px;
    }

    .card-title-overlay {
        padding-top: 12%;
        font-size: 26px;
        width: 90%;
        display: inline-block;
        margin: 0 auto;
    }

    .card-overlay{
        width: 480px;
    }

    .paragraph{
        font-size: 16px;      
    }

    .card-overlay > .card-subtitle{
        font-size: 14px;       
    }

    .img-container{
        width: 70%;
        height: 100px;
    }    

    #service-two > .card-text{
        margin-top: 5%;
    } 

    #service-four > .card-text, #service-five > .card-text{
        padding: 0 5% 5% 5%;
    } 

    .close{
        top: 3%;
    }

    .small-width{
        display: block;
    }
    
    .medium-width{
        display: none;
    }
}

@media only screen and (min-width: 992px){
    .card-text{
        font-size: 12px;
    }

    .bold {
        font-weight: 700;
        font-size: 26px;
    }

    ol{
        font-size: 16px;
    }

    .paragraph{
        font-size: 18px;      
    }

    .title-container {
        padding-top: 5%;
    }

    .card-title-overlay {
        font-size: 32px;
    }    

    .small-width{
        display: none;
    }

    .medium-width{
        display: block;
    }
}

/* Text description size */
