body {
    margin: 0px;
}

#Terrassement, #Drainage, #Renovation {
    display: none;
}

.maincontentcontainer {
    margin: 5rem 15% 5rem 15%;
    display: grid;
    column-gap: 20px;
    row-gap: 50px;
    grid-template-columns: auto auto auto;
    margin-top: 7rem;
    margin-bottom: 15rem;
}

.Maincontentgridbox {
    position: relative; 
    width: 400px;
    height: 425px;
}

.Maincontentgridbox img {
    width: 400px;
    height: 400px;
    border-radius: 4px;
    object-fit:cover;       
    object-position: center;   
    display: block; 
}

.Maincontentgridbox div {
    position: absolute; 
    top: 85%;
    left: 5%;
    width: 90%;
    height: 80px;
    background-color: rgb(255, 255, 255);
    border-bottom: 3px solid rgb(243, 208, 11);
    border-right: 3px solid white;
    border-left: 3px solid white;
    border-top: 3px solid white;
    z-index: 1;
}

.Maincontentgridbox div:hover {
    border: 3px solid rgb(243, 208, 11);
    color: black;
    animation: Maincontentmove 0.9s ;
}

@keyframes Maincontentmove {
    0% {
        border-bottom: 3px solid rgba(243, 208, 11, 0);
        border-right: 3px solid rgb(243, 208, 11);
        border-top: 3px solid rgba(243, 208, 11, 0);
        border-left: 3px solid rgba(243, 208, 11, 0);
    }

    25% {
        border-bottom: 3px solid rgba(243, 208, 11, 0);
        border-right: 3px solid rgb(243, 208, 11);
        border-top: 3px solid rgb(243, 208, 11);
        border-left: 3px solid rgba(243, 208, 11, 0);
    }

    50% {
        border-bottom: 3px solid rgba(243, 208, 11, 0);
        border-right: 3px solid rgb(243, 208, 11);
        border-top: 3px solid rgb(243, 208, 11);
        border-left: 3px solid rgb(243, 208, 11);
    }

    100% {
        border-bottom: 3px solid rgb(243, 208, 11);
        border-right: 3px solid rgb(243, 208, 11);
        border-top: 3px solid rgb(243, 208, 11);
        border-left: 3px solid rgb(243, 208, 11);
    }
}

.Maincontentgridbox div:nth-child(2) {
    display: flex;
}

.Maincontentgridbox h4 {
    flex: 70%;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin-top: 22px;
    padding: 0px 0px 0px 25px;
    font-size: 20px;
    text-align: left;
    justify-content: center;
}

.Maincontentgridbox button {
    flex: 30%;
    background-color: rgb(255, 255, 255);
    border: none;
}

.Maincontentgridbox span {
    flex: 30%;
    font-size: 35px;
    text-align: right;
    color: black;
    cursor: pointer;
    transition: 0.5s;
}

.Maincontentgridbox span:hover{
    color: rgb(243, 208, 11);
    rotate: 90deg;
}

.maintcontentselector {
    margin: 5rem 17.2% -5rem 15%;
}

.maintcontentselector h2 {
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(0, 0, 0);
    font-size: 35px;
}

.maintcontentselector p {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: rgb(49, 49, 49);
    font-size: 18px;
}

.maintcontentselector button {
    background-color: white;
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    border: 2px solid rgb(243, 208, 11);
    background-color: rgb(255, 255, 255);
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.maintcontentselector button:hover {
    animation: maintcontentselectorbutton 0.9s ease forwards;
}

@keyframes maintcontentselectorbutton {
    33% {
        border-bottom: 2px solid rgb(243, 208, 11);
    }

    80% {
        border-top: 2px solid rgb(243, 208, 11);
        border-bottom: 2px solid rgb(243, 208, 11);
    }

    100% {
        border-top: 2px solid rgb(243, 208, 11);
        border-bottom: 2px solid rgb(243, 208, 11);
        background-color: rgb(243, 208, 11);
    }
}
