@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.flex {
    display: flex;
}

body {
    background-image: url('../img/wood-texture.jpg');
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

h1 {
    background-color: #c6c5c5;
    text-align: center;
    color: #147B1E;
}

h2 {
    color: #147B1E;
}

header {
    justify-content: space-between;
    align-items: center;
    align-content: center;
    background: #c6c5c5;
    width: 80%;
    margin-top: 1rem;
    padding: 2rem 1rem;
    margin: auto;
}

#logo {
    width: 10rem;
}

#header-links {
    flex-direction: row;
    gap: 0.5rem;
    align-self: center;
    font-size: 1.25rem;
    font-weight: 700;
    align-items: center;
}

#header-links a {
    padding: 1rem;
    text-decoration: none;
    color: rgb(58, 58, 58);
    border-radius: 0.5rem;
    transition: background-color 0.2s ease-in-out;
}

#header-links a:hover {
    color: white;
    background-color: rgba(45, 117, 56, 0.7);
}

#burger {
    display: none;
}

#slider {
    display: none;
    position: absolute;
    z-index: 100;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: hsla(0, 0%, 100%, 0.9);
    flex-direction: column;
    gap: 4rem;
    padding: 1rem;
}

#close-slider-button {
    align-self: flex-end;
    margin-top: 1.5rem;
    margin-right: 1rem;
    font-size: 3.5rem;
    font-weight: bold;
}

#slider a {
    font-size: 3rem;
    text-decoration: none;
    color: black;
}

main {
    width: 80%;
    display: flex;
    flex-direction: column;
    margin: auto;
    position: relative;
    background: #c6c5c5;
}

#main-img-container {
    position: relative;
}

#main-img {
    width: 100%;
}

#catch {
    position: absolute;
    left: 50%;
    top: 50%;
}

#catch-tag {
    animation: welcome 1.5s;
    opacity: 1;
    transform: translateX(-50%) translateY(-50%);
    color: white;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 0 7px black;
}

#catch-quote-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: none;
    background-color: #147B1E;
    color: white;
    left: 50%;
    top: 30%;
    transform: translateX(-50%) translateY(-50%);
    font-weight: 600;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

section:not(:first-child) {
    padding-block: 3rem;
    background: #c6c5c5;
    text-align: center;
    border-bottom: 1px solid black;
}

#introduction-text,
#work-categories-text,
#contact-section-text {
    max-width: 90ch;
    line-height: 3rem;
    margin: auto;
    padding: 0 2rem;
}

#introduction-text p,
#work-categories-section p,
#contact-section-text p {
    font-size: 1.3rem;
}

#work-category-cards {
    padding-top: 2rem;
    display: grid;
    width: 90%;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: auto;
    margin-bottom: 2rem;
}

.work-category-card {
    padding: 1rem;
    border: 1px solid black;
    border-radius: 0.5rem;
    align-content: center;
    background: white;
}

#contact-us-section {
    padding-bottom: 6rem;
}

#contact-section-methods {
    margin-top: 3rem;
    width: 100%;
    justify-content: space-around;
    padding-inline: 2rem;
}

.contact-section-link {
    text-decoration: none;
}

.contact-section-method-box {
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: black;
}

.contact-section-method-box svg {
    padding: 1rem;
    width: 10rem;
}

.contact-section-method-box p {
    color: black;
    font-weight: 700;
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
}


#alternate-contact-text {
    margin-top: 4rem;
    padding: 0 1rem;
}

#contact-us-button {
    margin-top: 4rem;
    padding: 1rem 7rem;
    border: none;
    background-color: #147B1E;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
}


/* Project Gallery */


#image-viewer-container {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

#image-viewer {
    display: flex;
    justify-content: center;
    width: 80%;
}

.visible {
    display: flex !important;
}

#close-viewer-button {
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 8vw;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    background: radial-gradient(darkgray, transparent);
    padding: 0.25rem 1rem;
    padding-top: 0;
    border-radius: 2.5rem;
    transition: color 0.15s ease-in-out;
}

#close-viewer-button:hover {
    color: #147B1E;
}

#image-viewer-image {
    width: 100%;
    object-fit: contain;
}

#previous-image-button, #next-image-button {
    cursor: pointer;
    color: white;
    font-size: 5rem;
    font-weight: bold;
    align-content: center;
    background-color: rgba(0,0,0,0.65);
    padding-inline: 1.5rem;
    transition: color 0.15s ease-in-out;
}

#previous-image-button:hover, #next-image-button:hover {
    color: #147B1E;
}

#image-controls-container {
    display: flex;
    justify-content: center;
    max-height: 100vh;
}

#previous-image-button {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

#next-image-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}

#gallery {
    background-color: #c6c5c5;
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    padding-bottom: 1rem;
}

.gallery-preview-container {
    cursor: pointer;
    background-color: #aaa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-inline: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.gallery-preview {
    width: 100%;
    height: 250px;
    object-fit: cover;
}


/* Testimonials Page */


#google-reviews-link {
    align-self: center;
    color: black;
    text-decoration: none;
}

#google-reviews-button {
    font-weight: bold;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 3rem;
    background: white;
    border-radius: 0.5rem;
}

#google-reviews-button img {
    width: 3rem;
}


/* Contact Page */


#contact-success-modal {
    animation: success-message 700ms;
    z-index: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-15%);
    padding: 2rem;
    background: #147B1EEE;
    color: #c6c5c5;
    top: 10rem;
    font-weight: bold;
    border-radius: 0.5rem;
}

#close-contact-success-modal-button {
    position: absolute;
    right: 0;
    top: 0;
    padding: 1rem;
    cursor: pointer;
}

#contact-success-modal-message {
    margin: 0.5rem;
}

#contact-page-section {
    flex-direction: column;
    padding-block: 2rem;
    background-color: #c6c5c5;
    text-align: center;
    align-items: center;
}

#contact-page-form {
    margin-top: 3rem;
    flex-direction: column;
    width: 60%;
    gap: 1rem;
}

#contact-form-note {
    font-weight: bold;
}

#contact-page-form label {
    font-weight: 600;
}

#contact-page-form input {
    font-size: 1.5rem;
    text-align: center;
}

#project-description-input {
    font-size: 1rem;
    text-align: left;
    min-height: 10rem;
}

#contact-page-submit {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #147B1E;
    color: #c6c5c5;
    font-weight: 600;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
}


/* Login Page */


#login-form-container {
    flex-direction: column;
    background: #c6c5c5;
    align-items: center;
}

#login-form {
    flex-direction: column;
    width: 80%;
    gap: 1rem;
}

.login-input {
    padding: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
}

#login-button {
    padding: 1rem;
    font-size: 1.5rem;
}


/* Create Testimonial Page */


#write-testimonial-form-container {
    flex-direction: column;
    background: #c6c5c5;
    align-items: center;
    width: 100%;
}

#testimonial-form {
    flex-direction: column;
    width: 90%;
    gap: 2rem;
}

#testimonial-name-input {
    font-size: 1.25rem;
    padding: 1rem;
}

#testimonial-message {
    font-size: 1rem;
    height: 30ch;
}

#post-testimonial-button {
    font-size: 1.25rem;
    padding: 1rem;
    background-color: #147B1E;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
}


/* Footer */


footer {
    margin-bottom: 1rem;
    width: 80%;
    padding: 2rem;
    margin: auto;
    background-color: black;
    color: #c6c5c5;
    line-height: 2rem;
}


/* Animations */


@keyframes welcome {
    from {
        opacity: 0;
    }
}

@keyframes success-message {
    from {
        transform: translateX(-50%) translateY(25%);
    }
}


/* Mobile */


@media screen and (max-width: 1200px) {
    #header-links {
        display: none;
    }

    #burger {
        display: block;
    }

    #burger-button {
        background: none;
        border: none;
    }

    #burger img {
        width: 4rem;
        height: 4rem;
    }

    #close-viewer-button {
        right: 12vw;
    }
}

@media screen and (max-width: 900px) {
    body {
        background-image: none;
        overflow-x: hidden;
    }

    header {
        width: 100vw;
    }
    
    main {
        width: 100%;
    }

    #catch-tag {
        font-size: 1.5rem;
    }

    #catch-quote-button {
        margin-top: 1rem;
        font-size: 1rem;
    }

    #introduction-text,
    #work-categories-text,
    #contact-section-text {
        line-height: 2rem;
    }

    #introduction-text p,
    #work-categories-section p,
    #contact-section-text p {
        font-size: 1rem;
    }

    #gallery {
        grid-template-columns: 1fr;
    }

    #contact-section-methods {
        flex-direction: column;
    }

    footer {
        width: 100%;
    }
}