@import "/variables.css";

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--font-family)
}


/* Text styles */
h2 { font-size: var(--service-h2-font-size); }
h3 { font-size: var(--service-h3-font-size); }
p  { font-size: var(--service-p-font-size); }


body {
    min-width: 100vw;
    min-height: 100vh;
    background-color: var(--background-color);
    padding-bottom: 40px;
}

/* header */
.header {
    padding-top: 80px;
    padding-bottom: 20px;
    text-align: center;
}

.body-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
}


/* Contains the text and imageList container*/
.tree-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 90%;
}

/* Make two columns */
.imageList-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 30px;
    height: 100%;
    width: 100%;
    padding: 20px 0;
}

.text-container {
    border: 4px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background-color: var(--section-color);
    text-align: left;
}


/* Text style */
.text,
.list-text {
    text-align: left;
}


/*Services list, left aligned*/
.services-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
    width: 100%;
    border: 4px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    background-color: var(--service-color);
    margin: 0;
    gap: 10px;
}

.list-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Image list, right aligned*/
.image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

/* style for the image list */
.service-image {
    border: 4px solid var(--border-color);
    border-radius: 10px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    width: 100%;
}

.service-vertical-image{
    border: 4px solid var(--border-color);
    border-radius: 10px;
    height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    width: auto;
}

/* Contact style */
.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 90%;
    gap: 10px;
    border: 4px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--section-color);
    padding: 20px;
}

/* Phone number/email style*/
.info {
    color: #000;
    text-emphasis: bold;
    font-size: var(--info-font-size);
    text-decoration: none;
    transition: .7s ease;
}

.info:hover {
    /* bump up the font size */
    font-size: calc(var(--info-font-size) + 2px);
    color: #353232;
    text-decoration: underline;
}


/* Video style */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 10px;
}

.video {
    border: 4px solid var(--border-color);
    border-radius: 10px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    width: 100%;
}

/* Make scrolling easier */
html {
    scroll-behavior: smooth;
}

/* =======================
   Tablet styles (iPads)
   ======================= */
@media (min-width: 768px) and (max-width: 1023px) 
{
    .image-container {
        flex-direction: row;
    }

    .service-image{
        width: 48%;
    }
}

/* =======================
     Laptop & desktop styles
     ======================= */
@media (min-width: 1024px) {
    .service-image{
        width: 45%;
    }

   .image-container {
        flex-direction: row;
        justify-content: space-evenly;
    }

    .tree-container,
    .contact {
        width: 80%;
    }
}