@import url('https://fonts.googleapis.com/css2?family=Emilys+Candy&family=Ewert&family=Sancreek&display=swap');

@font-face {
  font-family: "twilightnewmoon";
  src: url("/fonts/twilightnewmoon.ttf") format("truetype");
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: url('../images/output-onlinegiftools.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1 {
  font-family: "twilightnewmoon", system-ui;
}

h2 {
  font-family: "Emilys Candy", system-ui;
  color: #b8696e;
}

h3 {
  font-family: "Emilys Candy", system-ui;
  color: #b8696e;
}

p {
  font-family: courier;
  color: #d63841;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.container {
  display: grid;
  grid-template-areas:
    "box1 box2"
    "box3 box4"
    "box5 box6";
  grid-template-columns: 260px 260px;
  grid-template-rows: 260px 260px 260px;
  gap: 20px;
  width: fit-content;
  margin-left: 10%;
  padding: 25px;
  
  flex: 1;
  min-height: 0;
  max-height: none;  overflow-y: auto;    
  box-sizing: border-box;
}

.container::-webkit-scrollbar {
  width: 6px;
  background: transparent
}

.container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2); 
}

.box1 { grid-area: box1; }
.box2 { grid-area: box2; }
.box3 { grid-area: box3; }
.box4 { grid-area: box4; }
.box5 { grid-area: box5; }
.box6 { grid-area: box6; }

.box1, .box2, .box3, .box4, .box5, .box6 {
  background-image: url("");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 20px;
  font-size: 14px;

  border: 1px solid #fff;
  box-shadow: 0 0 15px rgba(255,255,255,0.4);

  position: relative;
  z-index: 1;
  
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.box1, .box2, .box3, .box4, .box5, .box6 {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.box1:hover, .box2:hover, .box3:hover,
.box4:hover, .box5:hover, .box6:hover {
  transform: translateY(-6px) scale(1.05);
  z-index: 2; /* so it floats above its neighbors */
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.7),
              0 0 50px rgba(214, 56, 65, 0.25);
}

.inner {
  border: 1px dashed #fff;
  padding: 20px;
  overflow-y: auto;
  
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  
  flex: 1;
  min-height: 0;
}

.inner::-webkit-scrollbar {
  width: 6px;
}

.inner::-webkit-scrollbar-thumb {
  background: #8a9199;
  border-radius: 10px;
}

.title {
  margin-left: 12%;   /* nudges right; tweak % to taste */
  margin-top: 40px;   /* nudges down; tweak px to taste */
  margin-bottom: 20px; /* space between title/nav and the boxes below */
}

.pagetitle {
  font-size: 2rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.navbox {
  border: none;
  background: transparent;
  padding: 10px 0;

  display: flex;
  gap: 16px;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbox a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.navbox a:hover {
  transform: translateY(-4px);
  opacity: 0.5;
}

.backgroundoverlay1 {
  position: absolute;
  top: 0;
  left: 0;      
  width: 100vw;
  height: 100vh;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}  

.backgroundoverlay1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
}
  
  
  