/* MAIN CSS */

@import url('root.css');

:root {
    --main: #784f41ff;
    --basebox: #FAFDEDff;
    --text: #2c2f29ff;
    --accent: #f5b5d8ff;
    --accent2: #d0e562ff;
    --accent3: #bbe5edff;
}

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

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: var(--text);
    box-sizing: border-box;
    
    -webkit-justify-content: center;
    -webkit-align-items: center;
}

body.dev {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgb(from var(--text) r g b / 45%), rgb(from var(--main) r g b / 45%)),
        url('/bug_assets/butterfly.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    box-sizing: border-box;
    
    -webkit-justify-content: center;
    -webkit-align-items: center;
}

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

/* BASEBOX */
.basebox-self, .basebox-dev {
    width: 50%;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    
    font-size: 18px;
    color: var(--text);

    background-color: var(--basebox);
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    
    margin-bottom: 0;
    
    scroll-behavior: smooth;
    scrollbar-width: none;
}


.basebox-dev {
  height: auto;
}

.basebox-self {
      height: 70%;
      background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.8)), url('/bug_assets/angel.gif');    background-size: cover;
}

/* NAV */

nav a {
    padding: 0.125rem;
      color: var(--basebox);

}

nav a:hover {
  font-style: italic;
}

nav {
  width: 50%;
  padding: 0 0;
  display: flex;
  justify-content: flex-end;
  color: var(--basebox);
  font-size: 18px;
  margin-top: 0;
}

/* PHOTOPILE */
.photopile { 
  display: flex; 
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  max-width: 100%;
}
.photopile figure { 
  display: inline-block;
  background: white;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  transform: rotate(2deg);
  margin: 0 -25px;
}
.photopile figure img {
    width: 150px;
    display: block;

    margin: 1rem 1rem 0;
    border: 2px inset rgba(0,0,0,.55);
}

.photopile figcaption, .popovers figcaption {
  font-family: 'Cutive', serif;
  text-align: center;
  margin: 0.5rem 1rem 1rem 1rem;
  font-size: 1rem;
  color: var(--text);
}
.photopile button { 
  background: none; 
  border: none;
  max-width: 40%;
}
.photopile button:hover, .photopile button:focus { 
  z-index: 3;
  cursor:pointer;
}
.photopile button:nth-child(2n) { 
  transform: rotate(-10deg);
}
.photopile button:nth-child(3n) {
  transform: rotate(5deg);
}
.photopile button:nth-child(4n) { 
  transform: rotate(4deg);
}
.photopile button:nth-child(5n) { 
  transform: rotate(-2deg);
}
.photopile button:nth-child(6n) {
  transform: rotate(-7deg);
}
:popover-open {
  border: none;
  box-shadow: 1px 4px 5px rgba(0,0,0,0.55);
  position: fixed;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%,-50%);
}
.popovers figure:popover-open {
  display: block;
  background: white;
  width: 60vmin;
}
.popovers figure:popover-open figcaption {
  margin: 2.5vmin 1rem 4vmin 1rem;
  font-size: 175%;
  color: black;
}
.popovers figure:popover-open img {
  margin: 4vmin 4vmin 0 4vmin;
  width: 54vmin;
  border: 4px rgb(0,0,0,0.55) inset;
}

/* SECTION */
.self {
    margin: 2rem;
    margin-top: 3rem;
}

/* IMGS */
img {
  pointer-events: all;
}

img.caps {
    height: 250px;
    padding: 1px;
    margin: 2px;
    border: 1px dotted var(--border);
    object-fit: contain;
}

.img-scroll {
    min-width: auto;
    overflow-x: scroll;
    white-space: nowrap;
    scrollbar-width: none;
}

.img-scroll img {
    height: 200px;
    padding: 1px;
    margin: 2px;
    object-fit: contain;
}

/* TEXT */

p, a, span {
    margin: 1rem 0 0.5rem;
    line-height: 1.5;
    font-family: 'Times New Roman', Times, serif;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--border);
    text-decoration: underline 1px solid;
}

h1, h2, h3 {
  margin: 1rem 0 0 0;
  text-transform: lowercase;
}

h1 {
  font-size: 5rem;
  font-family: 'Ouvrieres', serif;
  font-weight: normal;
}

h2, h3 {
  font-style: italic;
  letter-spacing: 2px;
  font-family: 'Cutive', serif;
}

h2 a {
  color: var(--text);
  margin: 1rem 0;
  text-transform: lowercase;
  font-family: "Doto", serif;
  letter-spacing: 2px;
}

footer {
  width: 50%;
  padding: 0 0;
  display: flex;
  justify-content: flex-end;
  color: var(--text);
  font-size: 18px;
}


/* MOBILE */

@media screen and (max-width: 800px){
    .basebox-self, .basebox-dev {
        width: 90%;
        height: auto;
        margin: 0 0;
        font-size: 12px;
    }
    
    h1 {
      margin-top: 0;
      font-size: 2.75rem;
      text-align: center;
      line-height: 1;
    }
    
    .self {
      margin: 0;
    }
    
    .self p {
      padding-top: 0.5rem;
      margin: 0;
    }
    
    nav {
      width: 90%;
    }
    
    nav a {
      font-size: 1rem;
    }
    
    .photopile {
    gap: 0.3rem;
    margin-bottom: 12px;
    }

    .photopile figure {
      margin: 0 -15px;
    }

    .photopile figure img {
      width: 90px;
      margin: 0.7rem 0.7rem 0;
    }

    .photopile figcaption {
      font-size: 0.5rem;
      margin: 0.4rem 0.7rem 0.7rem;
    }

    .photopile button {
      max-width: 32%;
    }
    
}

@media screen and (max-width: 400px){
h1 {
      margin-top: 0.125rem;
      font-size: 2.75rem;
      text-align: center;
      line-height: 1;
    }
    .photopile {
    margin-bottom: 15px;
    }
    
    .basebox-self, .basebox-dev {
        font-size: 11px;
    }
.img-scroll img {
    height: 250px;
    padding: 1px;
    margin: 2px;
    object-fit: contain;
}
}

