
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC&display=swap');

:root {
    --primaryColor: #191919;
    --fontColor: #191919;
    --navColor1: #EE6C4D;
    --navColor2: #077187;
    --navColor3: #BB3311;
}

body {
    margin: 0;
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1515462277126-2dd0c162007a?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=670&q=80');
    background-size: cover;
    color: var(--fontColor);
    font-family: 'Noto Serif TC', serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

section {
    flex-direction: column;
    justify-content: stretch;
    min-height: 400px;
    min-width: fit-content;
    margin: 20px;
    padding: 5vw;
    align-items: center;
}

section#home {
    background-color: rgba(215, 229, 233, 0.7);  /* fallback for old browsers */
    border-radius: 3px;
    width: stretch;
}

section#quotesApp {
    background: #06beb6;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #48b1bf, #06beb6);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #48b1bf, #06beb6); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    border-radius: 45% 55% 48% 52% / 36% 50% 50% 64%;
}

section#scrollApp {
    background: #36D1DC;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #5B86E5, #36D1DC);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #5B86E5, #36D1DC); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    border-radius: 41% 59% 26% 74% / 52% 44% 56% 48%;
}

a {
    text-decoration: underline;
    color: var(--fontColor);
}

a:active {
    text-decoration: underline;
    color: var(--fontColor);
}

img {
    height: 25%;
    border-radius: 10px;
}

footer {
    padding:5px;
    margin: 10px;
    color: var(--navColor2)
}

footer a {
    color: var(--navColor2)
}


/* --- Menu Bars ------------------------------------ */

.menu-bars {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 10;
    display: inline;
    cursor: pointer;
  }
  
  .bar1,
  .bar2,
  .bar3 {
    width: 35px;
    height: 2px;
    background-color: #fff;
    margin: 8px 0;
    transition: 0.4s;
  }
  
  /* Rotate first bar */
  .change .bar1 {
    transform: rotate(-45deg) translate(-7px, 8px);
  }
  
  /* Fade out the second bar */
  .change .bar2 {
    opacity: 0;
  }
  
  /* Rotate last bar */
  .change .bar3 {
    transform: rotate(45deg) translate(-6px, -8px);
  }

.subtitle {
    font-size: 1.5rem;
}

.title {
    font-size: 2rem;
    font-weight: bolder;
}

.overlay {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    transform: translateX(-100vw);
}

.overlay-slide-right {
    transition: all 0.4s ease-in-out;
    transform: translateX(0);
}

.overlay-slide-left {
    transition: all 0.8s ease-in-out;
    transform: translateX(-100vw);
}

/* Nav Menu Items */
nav,
nav ul {
    height: 100vw;
    margin: 0;
    padding: 0;
}

nav ul li {
    height: 20%;
    overflow: hidden;
}

nav ul {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    list-style: none;
}

nav li a {
    position: relative;
    top: 45%;
    color: var(--fontColor);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
    display: block;
    text-align: center;
}

nav li a:hover {
    transform: scale(1.2);
}

nav li a::before {
    content: "";
    width: 25vw;
    height: 3px;
    background-color: var(--fontColor);
    position: absolute;
    top: 47.5%;
    left: 0;
    opacity: 0;
}

nav li a:hover::before {
    opacity: 1;
}

nav li:nth-of-type(1) {
    background: #C9D6FF;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #E2E2E2, #C9D6FF);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #E2E2E2, #C9D6FF); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

nav li:nth-of-type(2) {
    background: #06beb6;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #48b1bf, #06beb6);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #48b1bf, #06beb6); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

nav li:nth-of-type(3) {
    background: #36D1DC;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #5B86E5, #36D1DC);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #5B86E5, #36D1DC); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

/* Nav Item Slide in Animation */
.slide-in-1 {
    animation: slide-in 0.4s linear 0.2s both;
}

.slide-in-2 {
    animation: slide-in 0.4s linear 0.4s both;
}

.slide-in-3 {
    animation: slide-in 0.4s linear 0.6s both;
}

.slide-in-4 {
    animation: slide-in 0.4s linear 0.8s both;
}

@keyframes slide-in {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.slide-out-1 {
    animation: slide-out 0.3s linear 0.4s both;
}

.slide-out-2 {
    animation: slide-out 0.3s linear 0.3s both;
}

.slide-out-3 {
    animation: slide-out 0.3s linear 0.2s both;
}

.slide-out-4 {
    animation: slide-out 0.3s linear 0.1s both;
}

@keyframes slide-out {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.menu-bars {
    position: fixed;
    top: 1rem;
    right: 2rem;
    z-index: 10;
    display: inline;
}

/* Media Query: Tablet or Smaller */
@media screen and (max-width: 480px) {
    .quote-container {
        margin: auto 10px;
    }

    .quote-text {
        font-size: 2.3rem;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .menu-bars {
        top: 0.5rem;
        right: 1rem;
    }

    section#home,
    section#scrollApp,
    section#quotesApp {
        border-radius: 3px;
    }
}