.header {
    /* Fill */
    min-height: 50vh;
    width: 100%;
    position: relative;

    /* Background image */
    background-image: linear-gradient(rgba(4, 9, 30, 0.3), rgba(4, 9, 30, 0.3)), url(../Pictures/MaxGolfCourse.jpg);
    background-size: cover;
    background-position: center;
    margin-bottom: 60px;
}


.text-box {
    color: #FAF3E0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    text-align: center;
}

.text-box h1 {
    font-size: 62px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 20px;
    color: #FAF3E0;
}

h2{
    text-align: center;
    font-size: 36px;
    margin-bottom: 25px;
}



/* --------SERVICES ----- */

.quote {
    width: 600px;
    margin: 50px auto;
    font-size: 20px;
    font-style: italic;
    text-align: center;
    justify-content: center;
    border-left: 5px solid #5C4B51;
}

.quote-info {
    font-size: 20px;
    text-align: center;
}
blockquote footer {
    font-size: 20px;
    text-align: center;
}

.quote-text {
    margin: 20px;
}
 
/* ---------Service Section ----------*/

.services {
    /* background-color: #3f522b54; */
    background-color: #3f522b1f;
    color: #5C4B51;
    min-height: 80%;
    margin: 100px auto;
    padding: 50px 15px;
    text-align: center;
}

 .services h1 {
    color: #5C4B51;
    /* color: #faf3e0; */
    font-size: 40px;
    margin-bottom: 10px;
}

.service-box {
    margin-top: 50px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

/*
.service-col {
    flex: 1;
    padding: 80px 20px;
    margin: 50px 20px;

    border-radius: 20px;
    background-color: #FAF3E0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.5s;
}

.service-col h2 {
    color: #5C4B51;
    font-size: 30px;
    margin-bottom: 50px;
}

.service-col:hover {
    border: 4px solid #5C4B51;
    transform: translateY(-15px);
    cursor: pointer;
}
*/
.serviceSection {
    color: #5C4B51;
    margin: auto;
    padding: 30px 15px;
}


.serviceTitle {
    text-align: center;
    font-size: 36px;
    margin: 50px auto;
}

.serviceInfo {
    width: 90%;
    margin: 10px auto;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.service-text-container{
    flex: 1;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 25px;
} 

/* MODAL */
/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #FAF3E0;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    color: #5C4B51;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.modal-content p {
    width: 80%;
    margin: 0px 50px;
    text-align: justify;
    padding:30px;
    font-size: 20px;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 44px;
    font-weight: bold;
    color: #5C4B51;
    cursor: pointer;
}

/* Service box to display just titles */
.service-col-temp {
    flex-basis: 32%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
    height: 600px;

    /* margin: auto; */
    /* align-items: center; */

    /* flex: 1;
    padding: 30px 20px;
    margin: 20px;
    
    background-color: #FAF3E0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
    transition: 0.5s; 
    cursor: pointer;
    text-align: center;
    
}



.layer h2 {
    text-transform: uppercase;
    color: #faf3e0;
    font-weight: 500;
    font-size: 38px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    position: absolute;
    /* opacity:0; */

    /* margin-bottom: 50px; */
}
.layer .service-title {
    /* font-size: 30px;
    margin-bottom: 20px;
    color: #5C4B51; */
    opacity: 1;
    transition: 0.2s;
}

.layer .hidden{
    /* text-transform: uppercase; */
    opacity: 0;
    transition: 1s;
}

.layer:hover .hidden{
    bottom:50%;
    opacity:1;
}

.layer:hover .service-title{
    opacity: 0;
}

.service-col-temp img{
    width: 100%;
    height: 100%;
    display: block;
}

.layer{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: 1s;
}

.layer:hover {
    background-color: #5C4B51;
    opacity: 0.5;
}

.service-col-temp:hover {
    transform: translateY(-10px);
}



@media(max-width: 700px) {
    .text-box{
        width: 90%;
    }
    .text-box h1 {
        font-size: 36px;
    }

    .text-box p {
        font-size: 20px;
        margin-top: 0;
    }
    /* ----- SERVICES MEDIA SETTINGS */
    .service-box {
        flex-direction: column;
    }

    .services h1 {
        font-size: 30px;
    }

    .service-col-temp {
        height: 400px;
        margin: 20px 30px;
    }

    .service-col-temp h2 {
        margin-bottom: 20px;
        font-size: 30px;
    }

    .service-col p {
        font-size: 16px;
    }
    
        /* --- OLD -- */
    .serviceInfo {
        flex-direction: column;
    }

    /* .servicePic-wrapper {
        align-items: center;
        margin: 20px auto;
        width: 80%;
        height: 300px;
    }

    .serviceInfo-box {
        text-align: center;
        align-items: center;
        width: 90%;
    } */
    .service-text{
        text-align: center;
    }

    .service-text-container {
        padding: 10px;
    }

    .quote {
        width: 90%;
    }
/* 

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }
     */
        .modal-content {
            padding: 5px;
            width: 70%;
        }
    
        .modal-content h2 {
            font-size: 20px;
            /* margin: 10px auto; */
            padding-top: 20px;
            margin-bottom: 5px;
        }
    
        .modal-content p {
            margin: 0px auto;
            padding: 10px;
            font-size: 16px;
        }
    
        .close {
            font-size: 34px;
        }
}
