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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
}


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

.clearfix {
   overflow: auto;
}

/* FONT */

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

@font-face {
  font-family: 'tratello' ;
  src: url(../fonts/tratello.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); }
}



body {
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  letter-spacing: 0.045rem;
  margin: 0;
  padding: 1.3rem;
  background-color: DarkOliveGreen;
  width: 100%;
  overflow: auto;
}


.work-container {
  margin: 0 auto;
  width: 50%;
  padding-top: 10rem;
  /* float: left; */
  display: block;
  overflow: auto;
  vertical-align: top;
}


.work-container:hover {
  color: burlywood;
  transition: 6s;
}

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

img {
  border-radius: 10px;
  width: 100%;
  display: block;
  position: relative;
  margin: 0 auto;
}

@media (max-width: 800px) {
  img {
    margin: 0 auto;
    max-width: 100%;
    display: block;
  }
}

figure {
  vertical-align: top;
  margin: 0 auto;
  padding-right: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  display: block;
  position: relative;
}

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

.work {
  margin: 0 auto;
  display: inline-block;
}

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


figcaption {
  margin: 0 auto;
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

figcaption:hover {
  color: black;
}

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

p {
  font-size: 1rem;
  line-height: 1.3;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  letter-spacing: 0.045rem;
  margin: 0px;

  /* padding-bottom: 3rem; */

}



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

.jos-choice {
  font-family: 'tratello', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.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: 'tratello', sans-serif;
  letter-spacing: 0.045rem;
  cursor: grab;
  padding: 0;
  color: black;
}

.navbar {
  display: inline-block;
  margin-right: 3ch;
  color: black;
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
}

.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: 'Dotum', 'SC Dream', Arial, sans-serif;
  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: 'Dotum', 'SC Dream', Arial, sans-serif;
  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;
}


@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%;
}

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

}

a:active { color: forestgreen;}
a:hover { color: lavender;}


.backdrop {
  min-width: 100%;
  min-height: 100%;
  z-index: -10;
  position: fixed;
  right: 0;
  bottom: 0;
  /* opacity: 30%; */
  background-color: DarkOliveGreen;
}


.text-block {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.045rem;
  color: black;
  text-decoration: none;
  padding top: 1rem;
  padding-bottom: 2rem;
}


/* Cart */

#cart-btn {
  font-family: 'Dotum', 'SC Dream', Arial, sans-serif;
  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;
}
