@font-face {
    font-family: typewriter-clean;
    src: url(assets/fonts/typewriter-clean/atwriter.ttf);
}
@font-face {
    font-family: a-typewriter;
    src: url(assets/fonts/a-typewriter-for-me/ATypewriterForMe.ttf);
}
@font-face {
    font-family: monospace-typewriter;
    src: url(assets/fonts/monospace-typewriter/MonospaceTypewriter.ttf);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: a-typewriter;
    line-height: 1;
    box-sizing: border-box;
}

.sr-only { display: none; }


/* ************************************** */
/*             NAV BAR STYLES             */
/* ************************************** */
nav {
    background-color: #72A38A; /* green#72A38A / brown#6a3629 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-family: monospace-typewriter;

    /* makes static */
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;

    /* bottom border */
    border-bottom: 1px solid black; 
    box-shadow: 0 1px 7px 5px rgba(0, 0, 0, 0.3);
}

/* LOGO */
nav .logo img {
    height: 80px;
    width: auto;
    max-width: 100%;
}

/* NAV MENU */
nav .nav-links {
    list-style: none;
    display: flex;
    margin-right: 2%;
        
    padding: 0; /* removes default padding on list elements */
}

/* NAV MENU BUTTONS */
nav .nav-links li {
    margin: 0; /* Adds space between list items */
    margin-left: 10px;
    margin-right: 10px;
    background-color: #6d4b45;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.5);
}
nav .nav-links li:hover {
    background-color: #83534a;
    box-shadow: 0 3px 2px rgba(0, 0, 0, 0.5);
}
nav .nav-links li:active {
    transform: scale(0.99) translateY(1px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

nav .nav-links li a {
    display: block;
    text-decoration: none;
    color: #ffca98;
    border: 1px dashed #ffca98;
    padding: 15px;
}
nav .nav-links li#current { /* highlights the active page */
    background-color: #83534a;
    box-shadow: 0 3px 2px rgba(0, 0, 0, 0.9);
}


/* ************************************** */
/*          BURGER MENU FOR MOBILE        */
/* ************************************** */
.burger { 
    /* hide until small screen */
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #72A38A;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hide burger */
nav .ham-menu {
    display: none;
}

/* Hide secret menu */
.secret-menu {
    display: none;
}

/* SECRET MENU */
@media (max-width: 768px) {

    /* MAIN IMAGE FOR NOW */
    .carousel-track img#small {
        object-position: -370px -5px;
    }

    nav .nav-links {
        display: none; /* hide normal menu */
    }
    
    /* Show secret menu button */
    nav .ham-menu {
        display: block;
    }

    /* sets area for secret button */
    .ham-menu {
        height: 50px;
        width: 40px;
        margin-left: auto;
        margin-right: 8%;
        position: relative;
    }
    .ham-menu:hover {
        cursor: pointer;
    }

    /* Creates secret button lines */
    .ham-menu span {
        height: 5px;
        width: 100%;
        background-color: black;
        border-radius: 25px;
        position: absolute;
        left: 40%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: .3s ease;
    }
    .ham-menu span:nth-child(1) {
        top: 25%;
    }
    .ham-menu span:nth-child(3) {
        top: 75%;
    }

    /* Rotates lines when active */
    .ham-menu.active span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .ham-menu.active span:nth-child(2) {
        opacity: 0; /* hides middle */
    }
    .ham-menu.active span:nth-child(3) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* SECRET MENU STYLES */
    .secret-menu {
        background-color: #6b423b;
        height: 100vh;
        width: 100%;
        max-width: 450px;
        position: fixed;
        top: 0;
        right: -450px;
        display: flex;
        flex-direction: column;
        align-items: center;    
        justify-content: center;
        text-align: center;
        font-size: 3rem;
        transition: .3s ease;
        z-index: 999;
    }
    .secret-menu.active {
        right: 0;
        box-shadow: 1px 0 10px 1px rgba(0, 0, 0, 0.8);
    }

    .secret-menu ul {
        list-style: none;
    }

    .secret-menu ul li {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
        background-color: #6d4b45;
        padding: 5px;
        border-radius: 4px;
        box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.5);
    }
    .secret-menu ul li:hover {
        background-color: #83534a;
        box-shadow: 0 3px 2px rgba(0, 0, 0, 0.5);
    }
    .secret-menu li#current {
        background-color: #83534a;
        box-shadow: 0 3px 2px rgba(0, 0, 0, 0.9);
    }

    .secret-menu ul li a {
        text-decoration: none;
        color: #f9bb99;
        display: block;
        border: 1px dashed #ffca98;
        padding: 15px;
    }  
}


/* ************************************** */
/*           HOME SECTION STYLES          */
/* ************************************** */
section {
    padding-top: 30px;
    width: 100%;
}
section#home-section {
    padding: 0;
}

/* .home {
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
} */

/* .home img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
} */


/* ************************************** */
/*              IMAGE CAROUSEL            */
/* ************************************** */
.carousel {
  position: relative;
  height: calc(100vh - 120px);
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
  width: 100vw; /* each slide gets full viewport width */
  height: 100%;
  object-fit: cover;
  object-position: 0px -120px;
  flex-shrink: 0;
}

/* Navigation Buttons */
button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 18px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 1;
}

/* Button styling */
button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1;
}

button.prev { left: 20px; }
button.next { right: 20px; }


/* ************************************** */
/*              FOOTER STYLES             */
/* ************************************** */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #72A38A; /* green#72A38A / brown#6a3629 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0; /* controls top/bottom spacing */
    text-align: center;

    border-top: 1px solid rgb(85, 70, 70);
    min-height: 80px;
    gap: 10px;
}

.social-media {
    display: flex;
    gap: 20px;
}

.social-media a img {
    height: auto; /* adjust icon size as needed */
    width: 45px;
    margin: 0;
}

.copyright {
    margin: 0;
    font-size: 0.8rem;
    /* line-height: 1.4; */
}


/* 
    Thank you @dustinusey for the hamburger menu:
    https://github.com/treehouse/ham-menu
*/