.service {
    width: 100%;
    padding: 35px;
    box-sizing: border-box;
    text-align: center;
}

.service h2, .service h1 {
    text-align: center;
    justify-content: center;
    align-items: center;
    color: var(--theme);
    font-weight: bold;
    font-size: 35px;
    display: flex;
    width: 100%;
}

.service h2 {
    font-size: 18px;
}

.service p {
    text-align: center;
    font-size: 18px;
    display: block;
    width: 100%;
}

.service-line {
    border: 1px solid var(--theme);
    border-radius: 10px;
    margin: 25px;
    width: 25%;
    display: inline-block;
    overflow: hidden;
    box-shadow: 0px 0px 3px gray;
    vertical-align: top;
    transition: all 0.5s;
}

.service-line:hover {
    cursor: pointer;
    border-radius: 0px;
    box-shadow: 0px 10px 25px black;
}

.service-line .img-content {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    height: 250px;
}

.service-line .img-content div {
    cursor: pointer;
    transition: all 0.5s;
    position: absolute;
    width: 100%;
    height: 100%;
    top: -100%;
    left: 0%;
    z-index: 10;
    justify-content: center;
    align-items: center;
    display: flex;
}

.service-line .img-content div button {
    transition: all 0.5s;
    cursor: pointer;
    border-radius: 10px;
    border: 3px solid var(--theme);
    color: var(--theme);
    font-weight: bold;
    padding: 10px;
}

.service-line .img-content div button:hover {
    border-radius: 3px;
    background-color: var(--theme);
    color: white;
}

.service-line:hover .img-content div {
    top: 0%;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5);
}

.service-line .img-content img {
    cursor: pointer;
    filter: grayscale(0.5);
    width: 100%;
    height: 100%;
    transition: all 0.5s;
}

.service-line:hover img {
    filter: grayscale(0);
    margin-left: -10%;
    margin-top: -10%;
    width: 120%;
    height: 120%;
}

.service-line h2, .service-line p {
    cursor: pointer;
    text-align: justify;
    padding: 10px;
}

.service-line h2 label {
    cursor: pointer;
    transition: all 1s;
    border-radius: 25px;
    border: 3px solid var(--theme);
    color: var(--theme);
    padding: 3px;
    font-weight: bold;
    margin-left: 5px;
}

.service-line:hover h2 label {
    border-radius: 0px;
    background-color: var(--theme);
    color: white;
}

@media only screen and (max-width: 1660px) {
    .service-line {
        width: 30%;
    }
}

@media only screen and (max-width: 1488px) {
    .service-line {
        width: 35%;
    }
}

@media only screen and (max-width: 1200px) {
    .service-line {
        width: 40%;
    }
}

@media only screen and (max-width: 960px) {
    .service-line {
        width: 45%;
        margin: 15px;
    }
    .service {
        padding: 15px;
    }
}

@media only screen and (max-width: 780px) {
    .service-line {
        width: 400px;
    }
}

@media only screen and (max-width: 500px) {
    .service-line {
        width: 300px;
    }
    
    .service-line p {
        text-align: center;
    }
    
    .service-line h2 {
        color: white;
        background-color: var(--theme);
    }
    
    .service-line h2 label {
        color: white;
        border-color: white;
    }
}