/* Format for applying styling rules */
[selector] {
  [property]: [value];
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

@media (max-width: 800px) {
  html {
    font-size: 14px;
  }
}

.clearfix {
   overflow: auto;
}

a:link, a:visited {
color: black;
text-decoration: none;
}

a:active { color: black;}
a:hover { color: black;}

@media (max-width: 800px) {
  a:link, a:visited {
    color: black;
  }
}


/* *** font things *** */

@font-face {
  font-family: 'hoefler-text-ornaments';
  src: url(../fonts/hoefler-text-ornaments.ttf);
}

@font-face {
  font-family: 'Herculanum.ttf';
  src: url(../fonts/Herculanum.ttf);
}

.special {
  font-family: 'hoefler-text-ornaments', hoefler-text-ornaments;
  font-weight: normal;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.3;
  animation: shake 10s;
  animation-iteration-count: infinite;
  display: inline-block;
}

@keyframes shake {
 0% { transform: translate(1px, 1px) rotate(0deg); }
 10% { transform: translate(-1px, -2px) rotate(-1deg); }
 20% { transform: translate(-3px, 0px) rotate(1deg); }
 30% { transform: translate(3px, 2px) rotate(0deg); }
 40% { transform: translate(1px, -1px) rotate(1deg); }
 50% { transform: translate(-1px, 2px) rotate(-1deg); }
 60% { transform: translate(-3px, 1px) rotate(0deg); }
 70% { transform: translate(3px, 1px) rotate(-1deg); }
 80% { transform: translate(-1px, -1px) rotate(1deg); }
 90% { transform: translate(1px, 2px) rotate(0deg); }
 100% { transform: translate(1px, -2px) rotate(-1deg); }
}


/* *** Main styles *** */
body {
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'Herculanum.ttf';
  /* text-transform: uppercase; */
  letter-spacing: 0.045rem;
  margin: 0;
  padding: 1.3rem;
  background: DarkKhaki;
  overflow-x: hidden;
  width: 100%;
}


.work-container {
  padding-top: 10rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  float: left;
  display: block;
  overflow: auto;
}

.page-introduction {
  max-width: 60%;
}


.view-1 .small {
  max-width: 10%;
  animation: shake 10s;
  animation-iteration-count: infinite;
}

.view-1 .small:hover {
  width: 60%;
}

@media (max-width: 800px) {
.view-1 .small {
    max-width: 40%;
    display: block;
  }
}

.view-1 .medium {
      max-width: 30%;
  }

  @media (max-width: 800px) {
  .view-1 .medium  {
      width: 60%;
      display: block;
    }
  }

.view-1 .large {
  max-width: 60%;
}

@media (max-width: 800px) {
.view-1 .large  {
    width: 750%;
    display: block;
  }
}

.ornaments {
  font-family: 'hoefler-text-ornaments', hoefler-text-ornaments;
  font-size: 1rem;
}

img {
  max-width: 100%;
  width: 400px;
  height: auto;
  z-index: 1;
  border: 1px;
  overflow-x: hidden;
}


img:hover {
  border-radius: 0;
  border: 0;
  transition: 3s;
}


figure {
  margin: 0;
  padding: 0;
  margin-right: 1.5rem;
  margin-bottom:1.5rem;
  width: 500px;
  display: block;
  position: relative;
}

@media (max-width: 800px) {
  figure {
    width: 100%;
    display: block;
    overflow-x: hidden;

  }
}

figcaption {
  display: none;
  padding-top: 0.5rem;
  width: 650px;
}

figcaption:hover {
  color: black;
}

@media (max-width: 800px) {
  figcaption {
    width: 100%;
  }
}


.work {
  float: left;
  display: block;
  max-width: 100%;
}

@media (max-width: 800px) {
  .work {
    width: 100%;
  }
}



/* *** Navigation and dropdown *** */

.text-frag {
  display: inline-block;
  margin-right: 3ch;
  vertical-align: top;
  position: relative;
}

@media (max-width: 800px) {
  .text-frag {
    margin-right: 2ch;
    padding-bottom: 1ch;
  }
}

@media (max-width: 800px) {
  .info {
    padding-bottom: 2rem;
  }
}

@media (max-width: 800px) {
  .info .text-frag .dropdown {
    margin-right: 0px;
    /* padding: 4rem; */
    float: left;
    display: inline-block;
    vertical-align: middle;
  }
}


  button {
  background-color: transparent;
  border: none;
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'Herculanum.ttf';
  letter-spacing: 0.045rem;
  cursor: grab;
  padding: 0;
  color: black;
  
}

.navbar {
  display: inline-block;
  margin-right: 3ch;
  color: black;
  font-family: 'Herculanum.ttf';
}

.navbar a {
  float: left;
  font-size: inherit;
  color: black;
  /* padding: 14px 16px; */
  text-decoration: none;
}

.dropdown .dropbtn {
  cursor: pointer;
  border: none;
  color: black;
  background-color: inherit;
  font-family: 'Herculanum.ttf';
  font-size: 1rem;
  padding-bottom: 0.5rem;
  padding-right: 12rem;
}

@media (max-width: 800px) {
  .dropdown .dropbtn  {
    padding-right: 0px;
  }
}

.navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus {
  background-color: transparent;
  text-decoration: underline;
}

.dropdown-content {
  display: none;
  position: relative;
  text-align: left;
  /* padding-left: 6px transparent; */
  min-width: 160px;
  min-height: 40px;
  /* padding-top: 0.5rem transparent; */
  /* box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); */
  z-index: 1;
}

.dropbtn.show + .dropdown-content {
  display: block;
  position: absolute;
  /* background-color: DarkOliveGreen; */
  /* padding-right: 1.5rem transparent; */
  width: 97%;
  text-align: left;
}

@media (max-width: 800px) {
.dropbtn.show + .dropdown-content {
  display: block;
  position: relative;
  width: 100%;
  float: left;
  }
}


@media (max-width: 800px) {
.dropdown-content {
    width: 90%;
    position: relative;
  }
}


.dropdown-content a {
  float: none;
  color: black;
  /* padding-top: 4px; */
  padding: 6px 16px;
  padding-left: 0px;
  padding-top: 0px;
  /* border: 1px dotted; */
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'Herculanum.ttf';
  letter-spacing: 0.045rem;
}

@media (max-width: 800px) {
.dropdown-content a {
  display: inline-block;
  }
}

.dropdown-content a:hover {
  text-decoration: underline;
}

.show {
  display: block;
}

* {
  box-sizing: border-box;
}

/*shop*/

.shop-nav {
  float: right;
  padding-left: 3ch;
  font-family: ;
}

@media (max-width: 800px) {
  .shop-nav {
    float: none;
    display: inline-block;
    padding: 0;
  }
}

footer {
  clear: both;
  position: relative;
  padding-top: 4rem;
  z-index: 10;
  width: 100%;
}

/* Cart */

#cart-btn {
  font-family: 'Herculanum.ttf'; 
  display: inline-block;
  float: left;
  vertical-align: top;
  position: relative;
  font-size: 1rem;
}

.cart-slideout {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: scroll;
}

@media screen and (max-width: 800px) {
  .cart-slideout {
    width: 100%;
    right: -100%;
  }
}

.cart-slideout.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.close-btn {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1999;
}

.cart-overlay.open {
  display: block;
}

.checkout-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 0.9rem;
  background: #f5f5f5;
  color: #000;
  border: 1px solid #ddd;
  font-size: 1.1rem;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  cursor: pointer;
  letter-spacing: 0.05rem;
}

.checkout-btn:hover {
  background: #ebebeb;
}

.cart-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8rem;
}

.cart-item img {
  width: 65px;
  height: 85px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cart-item-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.cart-item-price {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.9rem;
  color: #333;
}

.cart-item p {
  margin: 0.2rem 0;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
}

.cart-item-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 0.4rem;
}

.cart-item button {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
}

.remove-btn {
  background: DarkKhaki !important;
  color: #fff !important;
  border: none !important;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0.5rem;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
}

.cart-instructions {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  resize: vertical;
}

.cart-instructions-label {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  display: block;
}

.cart-shipping-note {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-bottom: 0.5rem;
  max-width: 100%;
}

.back-to-top {
  font-family: tratello;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: pink;
  color: white;
  text-decoration: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

.back-to-top:hover {
  background-color: #FF5F14;
}

