@font-face {
    font-family: sansita;
    src: url(fonts/Sansita-Regular.ttf);
}

body {
    background: url("img/background-service2.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 0.5em;
    transition: 1s;
}

h1 {
    font-size: 50px;
    text-transform: uppercase;
    font-family: sansita;
    transition: 700ms ease;
    font-variation-settings: "wght" 311;
    margin-bottom: 0.8rem;
    color: PaleGoldenRod;
    outline: none;
    text-align: center;
    text-shadow: 0 0 3px black, 0 0 5px black;
    cursor: default;
}

h1:hover {
    font-variation-settings: "wght" 582;
    letter-spacing: 1px;
}

main {
    margin-top: 2em;
    display: flex;
}

.services {
    border-style: solid;
    border-width: 3px;
    border-color: white;
    width: 21em;
    height: 13em;
    margin: 0 3em;
    color: PaleGoldenRod;
    display: flex;
    justify-content: center;
    align-items: end;
    cursor: pointer;
    transition: 0.5s;
    border-radius: 10px;
    font-weight: bold;
    font-family: sansita;
    text-shadow: 0 0 3px black, 0 0 5px black;
}

.services-text {
    cursor: pointer;
    font-size: 41px;
    margin-bottom: 15px;
}

.services:hover,
.services1 {
    transform: scale(1.2);
    border-color: yellow;
    letter-spacing: 3px;
}

.service1 {
    background: url("img/amenajari.png") center/contain no-repeat;
}

.service2 {
    background: url("img/scule.png") center/contain no-repeat;
}

.service3 {
    background: url("img/debitari.png") center/contain no-repeat;
}

.service1,
.service2,
.service3 {
    background-color: burlywood;
}

.loading {
    height: 200%;
    width: 100%;
    background-color: white;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

.loading-icon {
    background: url("img/loading.gif") center/contain no-repeat;
    height: 50px;
    width: 50px;
    transition: 0.5s;
}

.logo {
    background: url("img/Logo-white.png") center/contain no-repeat;
    height: 292px;
    width: 280px;
}


@media screen and (max-width: 1400px) {
    .services {
        height: 10em;
        width: 18em;
    }
}

@media screen and (max-width: 1300px) {
    .services {
        height: 8em;
        width: 15em;
    }

    .services-text {
        font-size: 28px;
    }
}

@media screen and (max-width: 1100px) {
    .services {
        margin: 0 1em;
    }

    .services-text {
        font-size: 24px;
    }
}

@media screen and (max-width: 1000px) {
    h1 {
        font-size: 50px;
    }
}

@media screen and (max-width: 850px) {
    .services {
        width: 12em;
    }
}

@media screen and (max-width: 700px) {
    main {
        flex-direction: column;
    }

    .services {
        margin: 1em;
        width: 14em;
    }
}

@media screen and (max-width: 500px) {
    .logo {
        width: 250px;
        height: 261px;
    }
}