#s1{
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 20%);
}
#s1::before{
    content: "";
    background-image: url('https://spot-excellent.com/media/img/medium/headerProfil-potrait-720.jpg');
    background-position:center;
    background-repeat:no-repeat;
    background-size: cover;
    opacity: 1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}
#s1 .container {
    position:absolute;
    bottom: 0;
    left: 0;
    padding:5%;
    color: #FFDE66;
    font-weight: bold;
    font-size: 1.23rem;
    background-color: rgba(0, 0, 0, 50%);
}
#s1 .container span{
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    font-style: normal;
    color:#19FF5A;
}
#s2,#s3 {
    width:90%;
    padding: 100px 5%;
    overflow-x: hidden;
}
#s2 h2, #s3 h2{
    text-align: center;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 60%));
}

#s2 .flex-container, #s3 .wrap-flex{
    display: flex;
    flex-direction:column;
    flex-wrap: wrap;
    align-items:center;
    align-content:center;
    justify-content:space-around;
    margin: 0 auto;
    gap: 20px;
}

.flex-container .container {
    margin-top: 50px;
    flex: 0 0 300px;
    /*overflow: hidden;*/
    width: 85%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    max-height: 300px;
    border-radius: 9px;
}


.flex-container .container div {
    text-align: center;
    width:80%;
    margin: 0 auto;
    border-radius: 5px;
    position: relative;
    bottom:-250px;
    padding: 10px;
    min-height: 80px;
}
.flex-container .container p{
    line-height: 1.5rem;
    font-size: 0.95rem;
}
.flex-container .container:first-child{
    background-image: url("https://spot-excellent.com/media/img/medium/layanan-outbound-learning.jpg");
    border: 5px solid #FE0000;
}
.flex-container .container:first-child div{
    background-color: #FE0000;
    color: rgb(249, 249, 249);    
}
.flex-container .container:nth-child(2){
    background-image: url("https://spot-excellent.com/media/img/medium/layanan-virtual-team-event.jpg");
    border: 5px solid #19A6FF;
}
.flex-container .container:nth-child(2) div{
    background-color: #19A6FF;
    color: rgb(59, 59, 59);    
}
.flex-container .container:nth-child(3){
    background-image: url("https://spot-excellent.com/media/img/medium/layanan-virtual-team-event.jpg");
    border: 5px solid #5fda81;
}
.flex-container .container:nth-child(3) div{
    background-color: #5fda81;
    color: rgb(59, 59, 59);    
}
.flex-container .container:last-child{
    background-image: url("https://spot-excellent.com/media/img/medium/layanan-assesment-consulting.jpg");
    border: 5px solid #FFCE19;
}
.flex-container .container:last-child div{
    background-color: #FFCE19;
    color: rgb(59, 59, 59);    
}
#s3 h3{
    color: #FE0000;
    text-align: center;
}
.wrap-flex .container-flex {
    margin-top: 50px;
    flex: 0 0 300px;
    width: 90%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.container-flex img{
    width:100%;
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #s1::before {
        background-image: url('https://spot-excellent.com/media/img/big/headerProfil-landscape-1080.jpg');
    }
    #s1 .container {
        top: 60%;
        left: 20%;
        transform: translate(-20%, -20%);
    }
    #s2 .flex-container, #s3 .wrap-flex{
        flex-direction:row;
        flex-wrap: wrap;
        align-items:center;
        align-content:center;
        justify-content:space-around;
        margin: 0 auto;
        gap: 5px;
    }
    .flex-container .container {
        margin-top: 50px;
        flex: 0 0 300px;
        /*overflow: hidden;*/
        width: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        min-height: 300px;
        border-radius: 9px;
        
    }
    .wrap-flex .container-flex {
        margin-top: 50px;
        flex: 0 0 500px;
        width: 100%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        align-items: flex-start;
        align-content: flex-start;
        align-self: flex-start;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1230px) {
    /*#s2 {
        padding: 50px 10px 70px 10px;
    }
    .flex-container{
        justify-content:space-around;
    }
    .flex-container .container {
        flex: 0 0 350px;
        max-height: 350px;
    }
    .flex-container .container div {
        max-width: 350px;
    }
    .flex-container .container div:last-child {
        max-width: 350px;
    }
    .flex-container .container img{
        max-width: 350px;
    }
    .flex-container .container h3 {
        font-size: 1.7em;
    }*/
}
