
/* FONTS */

@font-face {
  font-family: "Lolicandy";
  src: url(/fonts/Lolicandy.ttf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Welcome Darling";
  src:url(/fonts/WelcomeDarling.otf);
  font-weight:100;
  font-style: normal;
  letter-spacing: 1px;
}

/* VARIABLES */

:root {
  --main-bg-color: #FBB3B6;
  --content-bg-color: #765151;
  --content-border-color: #a9787a;
  --header-color: #aee0ca;
  --box-bg: #deffed;
  --sidebar-bg-color: #765151;
  --text-color: #755858;
  --category-bg: #defff0;
}

/* TEXT STYLING */

a{
  color:var(--text-color);
}

a:hover{
  font-style: oblique;
  color:#5ca28d;
}

b{
  font-family: "Lolicandy";
  text-align: center;
  font-size:xx-large;
  letter-spacing: 1px;

  color: #5ca28d;
  -webkit-text-stroke: 1px var(--category-bg);
}

h2{
  font-family: "Lolicandy";
  font-size: xx-large;
  text-align: center;
  letter-spacing: 1px;
  margin: 0px;
}

h3{
  text-align:center;
}

p{
  text-align: center;
  font-size: medium;
  padding-left: 20px;
  padding-right: 20px;
}

.category h3{
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.credit{
  font-size:x-small;
  color: #947b81;

  margin-top: auto;
  padding-right: 5px;
  text-align: right;
  opacity: 0.6;
}

/* BODY */

body {
  background: url(/graphics/backgrounds/hillhouse-lightbluetexture.png);

  font-family: "Welcome Darling";
  color:var(--text-color);
  line-height: 1.3;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img{
  max-width:100%;
  height:auto;
}

/* MAIN CONTAINER */

#outer-border{
  width:90%;
  max-width:750px;
  margin:auto;
  margin-top: clamp(20px, 5vw, 40px);
  padding:20px;

  border-image: url(/graphics/deco/borders/helltaker-brownbuttons.png);
  border-image-slice: 30%;
  border-image-width: 80px;
  border-image-outset: 17px;
  border-image-repeat: round;
}

#container {
  padding:10px;
  position:relative;

  font-size:15px;

  background:var(--content-bg-color);

  border-image: url(/graphics/deco/borders/mode-mintchoco.png);
  border-image-slice: 31%;
  border-image-width: 100px;
  border-image-outset: 21px;
  border-image-repeat: round;

  box-shadow:0 0 10px rgba(0,0,0,0.05);
}

/* HEADER NAV */

#sidebar {
  width:100%;
  border-right:none;

  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding:10px;
}

#sidebar .navbtn{
  display:inline-block;
  padding: 4px 6px;
  border:1px solid #b3fbe2;
  border-radius:8px;

  text-align: center;
  text-decoration: underline dotted;

  background:linear-gradient(#fcf9e7, #b3fbe2);
}

#sidebar b{
  display:block;
  width: 100%;
  text-align: center;
}

#sidebar .homebtn{
  display:inline-block;
  padding:4px 6px;
  border:1px solid #b3fbe2;
  border-radius: 8px;

  background:linear-gradient(#fcf9e7, #b3fbe2);

  text-align: center;
  text-decoration: underline dotted;
}

/* MAIN LAYOUT */

#content{
  display:flex;
  flex-direction: column;
  align-items:stretch;
}

/* MAIN AREA */

#main{
  flex: 1;
  padding:10px;
  overflow-wrap:break-word;
  width:100%;
}

.box{
  background: linear-gradient(#e6f7ef, #d7f9ec);
  border:1px solid;

  font-size: large;

  padding-top: 20px;
  padding-bottom: 25px;

  border-radius:6px;

  display:flex;
  flex: 1;
  flex-direction:column;
}

.header{
  display:flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin:5px 0 10px 0;
  flex-wrap: wrap;
}

.text-deco-left{
  display:flex;
  margin: auto 30px auto 30px;

  width: 40px;

  transform: scaleX(-1);
}

.text-deco-right{
  display:flex;
  margin:auto 30px auto 30px;

  width: 40px;
}

.category{
  background: linear-gradient(#ffffff, #eef5f3);
  border-image: url(/graphics/deco/borders/mode-whippedcream.png);
  border-image-slice: 30%;
  border-image-width: 60px;
  border-image-outset: 14px;
  border-image-repeat: round;

  width: 75%;
  margin: 20px auto;

  padding: 15px 10px;

  box-shadow: 0 3px 3px rgba(0,0,0,0.08);
}

.toys,
.food,
.pets{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  align-items: flex-end;
}

.toys img,
.food img,
.pets img{
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.toys img:hover,
.food img:hover,
.pets img:hover{
  transform: translateY(-4px) scale(1.05);
}

/* RESPONSIVE */

@media (max-width:700px){

  #main{
    padding:10px;
  }

  #content{
    flex-direction:column;
   }

  .box{
    padding:30px 10px;
  }

  #sidebar{
    width:100%;
    border-right:none;
    border-bottom:1px solid var(--content-border-color);
  }
}