body {
    background-color: black;
    color: white;
    margin: 0;
}

#title {
    background-image: url(./Images/Background.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: auto;
}

.navbar {
    position: fixed;
    width: 100%;
    z-index: 1;
}

.navbuttons {
    display: flex;
    gap: 0px;
    background-color: black;
    margin: 0;
    padding: 0;
    flex-direction: row-reverse;
}

.TAlogo {
    height: 50px;
    border-radius: 50%;
    position: fixed;
    margin: 5px;
}

.TAlogosmall {
    height: 50px;
    border-radius: 50%;
    position: fixed;
    margin: 5px;
}

.nav {
    padding: 0 8px;
    min-width: 80px;
    height: 10px;
    text-align: center;
    margin-block-start: 8px;
    top: 10;
}

.navlink {
    color: white;
}

.title {
    text-align: left;
    padding: 80px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@font-face {
    font-family: Limelight-Regular;
    src: url(./Images/Limelight-Regular.ttf);
}

@font-face {
    font-family: Merriweather-light;
    src: url(./Images/Merriweather/Merriweather-Light.ttf);
}

p {
    font-family: 'Arial', sans-serif;
    font-weight: light;
    font-style: normal;
}

h3 {
    font-family: 'Merriweather-light', serif;
    font-weight: light;
    font-style: normal;
}

h4 {
    font-family: 'Arial', sans-serif;
    font-weight: light;
    font-style: normal;
}

h5 {
    font-family: 'Arial', sans-serif;
    font-weight: lighter;
    font-style: normal;
}

.title>h1 {
    font-family: Limelight-Regular;
    font-size: 6.5rem;
    font-weight: lighter;
    margin: 0%;
    text-align: center;
}

.title>h3 {
    font-family: Merriweather-light;
    font-size: 2.5rem;
    font-weight: lighter;
    margin: 0%;
    text-align: center;
}

.title>h5 {
    font-family: Merriweather-light;
    font-size: 1.3rem;
    font-weight: lighter;
    text-align: center;
}

.intro {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto auto;
    padding: 10px;
    margin: 0 20%;
    gap: 10px;
}

#intro-title {
    grid-column-start: 1;
    grid-column-end: 4;
}

#services {
    background-image: url(./Images/books_background.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: auto;


}

.services {
    display: grid;
    grid-template-columns: 33% 33% 33%;
    grid-template-rows: auto auto auto auto;
    margin: 0 20%;
    gap: 20px;
}

.subtitle {
    font-family: Merriweather-light;
    font-size: 2rem;
    font-weight: lighter;

}

.services-intro-title {
    grid-column-start: 1;
    grid-column-end: 4;
    text-align: center;
    padding-top: 20px;
}

.services-intro {
    grid-column-start: 1;
    grid-column-end: 4;
    text-align: left;
}

#testimonials {
    background-color: black;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.testimonials {
    display: flex;
    overflow: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin: 5% 20%;
    width: 60%;
    background-color: rgb(39, 38, 38);
    border-radius: 3%;
}

.testi {
    flex: 0 0 auto;
    margin: 20px;
    scroll-snap-align: start;
    width: 97%;
    padding: 20px;
}

.testpic {
    height: 100px;
    border-radius: 50%;
}

* {
    box-sizing: border-box;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    width: 60%;
    z-index: 0;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 12px 12px;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background-image: url(./Images/bookpicturecrop.png);
    max-height: auto;
    position: relative;
}


/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    margin-bottom: 20px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

#contact-me {
    background-image: url(./Images/libraryfade.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: auto;
    padding: 5% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.contact-me {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto auto;
    margin: 0 20%;
    gap: 10px;
}

#subject {
    height: 20rem;
    width: 45rem;
}

#about-me {
    position: relative;
    display: inline-block;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.about-me {
    position: relative;
    display: inline-block;
    margin: 0 20%;
}

.mepic {
    float: right;
    height: 500px;
}

hr {
    border: 1px 0 0 0;
    border-color: rgb(26, 25, 25);
}

footer {
    padding: 10px;

}

.footer {
    position: relative;
}

.copyright {
    display: inline-block;
    margin-top: 70px;
}

.eco {
    float: right;
}

@media (max-width: 880px) {
    .navbuttons {
        display: none;
    }

    .TAlogo {
        display: none;
    }

    .title>h1 {
        font-size: 3rem;
    }

    .title>h3 {
        font-size: 1.5rem;
    }

    .title>h5 {
        font-size: 1rem;

    }

    .intro {
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto;
    }

    #intro-title {
        grid-column-start: 1;
        grid-column-end: 2;
    }

    .services {
        grid-template-columns: auto;
        grid-template-rows: auto auto auto auto auto;
    }

    .services-intro-title {
        grid-column-start: 1;
        grid-column-end: 2;
        text-align: left;
    }

    .services-intro {
        grid-column-start: 1;
        grid-column-end: 2;
    }

    .testimonials {
        width: 60%;
    }

    .slideshow-container {
        width: 90vw;
    }

    .text {
        width: 100%;
    }

    .contact-me {
        width: 60%;
    }

    #about-me {
        width: 100%;
    }

    .mepic  {
        height: 350px;
        
       }

    .abouttext {
        align-content: center;
        display: inline-flex;
        flex-direction: column;
        max-width: 65vw;
    }

    #subject {
        width: 25rem;
    }
}
