@import "semantic.css";
/*  CHANGE BASIC  */
body{
    background-image:linear-gradient(transparent, var(--body) 50%), url("../img/hero.webp");
    background-repeat: no-repeat;
    background-size: contain;
}
header{
    background-color: var(--header);
}
main{
    margin: 2%;
}
/*  HERO  */
.hero{
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero h1{
    font-weight: bold;
}
.hero > *{
    text-shadow: 0 0 5px black;
}
.hero span{
    transition: .3s ease;
    color: var(--ac1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero span:hover{
    font-size: larger;
    text-shadow: 1px 1px 3px var(--ac1), -1px 0 3px blue;
}
.hero img{
    width: 40px;
}
/*  ARTICLE  */
article{
    margin: 1% 0;
    font-size: 17px;
    text-align: justify;
}
article div{
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: larger;
}
article h3{
    display: inline;
    transition: .3s ease;
    letter-spacing: 5px;
}
article span{
    color: var(--ac1);
    transition: .3s ease;
    display: block;
    text-align: center;
}
article :is(span,h3):hover{
    text-shadow: 0 0 5px;
    cursor: pointer;
}
article a{
    color: var(--ac1);
    font-size: large;
}
/*  NEWS  */
.card_news{
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: var(--bg);
    overflow: hidden;
    transition: .2s ease-in;
    text-align: justify;
}
.text{
    padding: 10px;
}
:is(.card_service,.card_news):hover{
    box-shadow: 1px 1px 5px 1px var(--ac1), -1px -1px 5px 1px blue;
}
.card_news .img{
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom:solid 3px var(--ac1);
}
.card_news :is(h3,p){
    margin: 0;
}
.card_news span{
    color: darkgray;
}
/*  SERVICES  */
.card_service{
    display: flex;
    flex-direction: column;
    padding: 1%;
    background-color: var(--bg);
    max-width: 20%;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: .2s ease-in;
}
.card_service img{
    height: 100px;
}
.card_service :is(h3,p){
    margin: 2% 0;
}
main .flex:last-child{
    justify-content: center;
    gap: 10%;
    align-items: center;
}
figure img{
    height: 150px;
}
figcaption{
    font-size: larger;
    text-align: center;
}
/*  MEDIA  */
@media screen and (width < 700px) {
    /*  CHANGE BASIC  */
    body{
        background-image:linear-gradient(transparent, var(--body) 5%), url("../img/hero.webp")
    }
    /*  ARTICLE  */
    article{
        margin: 1%
    }
    /*  CARDS  */
    .card_news,.card_service{
        min-width: 100%;
    }
    .card_service{
        padding: 2%;
    }
}