/* MAIN CSS */

@import url('root.css');

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

html {
  scroll-behavior: smooth;
}

::selection {
    background: var(--accent);
    color: var(--text)
}

/* LANDING PAGE */
body {
  background-image: linear-gradient(to bottom, rgba(44, 47, 41, 0.4), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2), rgba(208, 229, 98, 1)), url('/bug_assets/buglanding2.gif');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 100vh;
  margin: 0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* HEADINGS */
h1, h2 {
    text-transform: lowercase;
    margin: 1rem 0;
    color: var(--text);
}

h1 {
    padding: 0.5rem;
    font-family: 'Ouvrieres', serif;
    font-size: 10rem;
    font-weight: normal;
    text-align: left;
}

h2 {
    font-family: serif;
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: right;
    color: var(--text);
}

h3 {
    font-family: 'Ouvrieres', serif;
    font-size: 5rem;
    font-weight: normal;
    text-transform: lowercase;
    text-align: left;
}

header, section {
    margin-left: 20px;
    position: relative;
}

header {
  z-index: 2;
}

section {
  margin-top: 60vh;
  padding: 1rem 1rem 1.5rem 0;
}

/* TEXT */
p, a {
    margin: 0.5rem 0 1rem 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
}

/* NAV */
nav {
    position: absolute;
    top: 10rem;
    left: 20%;
    width: 80%;
    height: 70vh;
    overflow-x: scroll;
    white-space: nowrap;
    scrollbar-width: none;
    z-index: 3;
}

nav::-webkit-scrollbar {
    height: 8px;
}

.navtxt {
    position: relative;
    display: inline-block;
    height: 90%;

}

.navtxt img {
    display: block;
    height: 100%;
    object-fit: contain;
    margin: 0 30px;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.25);
}

.navtxt span {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 2;

    font-family: 'Cutive', serif;
    font-size: 2.5rem;
    color: var(--accent3);
    text-transform: lowercase;
    transition: opacity 0.3s;

    filter: drop-shadow(1px 1px 0 var(--text))
            drop-shadow(-1px 1px 0 var(--text))
            drop-shadow(1px -1px 0 var(--text))
            drop-shadow(-1px -1px 0 var(--text));
}

.navtxt:hover span {
    opacity: 1;
}

/* FOOTER */
footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    background-color: var(--accent);
    z-index: 5;
}

footer.tab {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 65%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    background-color: var(--accent);
    z-index: 5;
}

.footer-left {
    margin: 0;
    text-align: left;
}

.footer-right {
    margin: 0;
    text-align: right;
    font-size: 1.5rem;
}

/* MOBILE */

@media (max-width: 700px) {

/* LAYOUT */
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow-x: hidden;
  }

  main {
    flex: 1;

    display: flex;
    flex-direction: column;
  }

/* HEADINGS */
  h1 {
    font-size: clamp(3.5rem, 16vw, 5rem);
    line-height: .9;
    margin: 0;
    padding: 1rem;
  }

  h2 {
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-align: right;
    margin: 0;
  }

  h3 {
    font-size: 2.2rem;
  }

  header {
    margin: 0;
    padding: 2rem 0 0 0;
    flex-shrink: 0;
  }

  section {
    margin: 0;
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: flex-end;
  }

/* TEXT */
  p, a {
    font-size: .95rem;
  }

/* NAV */
  nav {
    position: static;

    display: flex;
    align-items: center;
    gap: 1rem;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    justify-content: flex-start;

    padding: 0 1rem;
    box-sizing: border-box;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .navtxt {
    flex: 0 0 auto;
    position: relative;
    height: 350px;
  }

  .navtxt img {
    height: 100%;
    margin: 0;
    object-fit: contain;
  }

  .navtxt span {
    opacity: 1;
    font-size: 1.5rem;
    transition: none;
  }

  .navtxt:hover span {
    opacity: 1;
  }

   
/* FOOTER */

  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem;

    margin: 0;

    background: var(--accent);
  }

  .footer-left {
    font-size: 2rem;
    margin: 0;
  }

  .footer-right {
    font-size: 0.9rem;
    margin: 0;
  }

}

@media (max-width: 500px) {

body {
  background-image: linear-gradient(to bottom, rgba(44, 47, 41, 0.4), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5), rgba(208, 229, 98, 1)), url('/bug_assets/buglandingmob.gif');
}
  .footer-right {
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 1;
  }

}