@font-face{
  font-family: 'handmade';
  src: url(../HandmadeBrushes.ttf);
  }
@font-face{
  font-family: 'punkstitles';
  src: url(../Punk.ttf);
  }

body {
   justify-content: center;
    margin: 0;
    padding: 20px;
    background-image: url('../purple.gif');
    text-align: center;
    font-family: 'handmade';
    color:white;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: url('../cursor.png?v=2'), auto; 
}

a {
  cursor: url('../invertedc.png?v=2'), auto; 
  }
  h1 {
  font-size:100px;
  }
.menu {
  background-color:#8400AD;
  display: center;
  border: 1px solid #000;
  list-style-position: inside;
  }
  
.menulist {
  color: white;
  display: flex;
  flex-direction: row;  
  justify-content: center;
  gap: 30px;
  }
.button {
  border: none;
  background: transparent;
  font-family: 'punkstitles';
  padding: 0 20px;
  width: auto;
  font-size: 30px;
  cursor: url('../invertedc.png'), auto; 
  display: inline-block; /* Crucial for <a> elements to accept layout/transforms */
  text-decoration: none; /* Removes the default link underline */
  color: white;
  }
  
.button:hover{
  background-color:#FC09F2;
  border: 1px solid #FC09F2;
  color: white;
  transform: scale(1.1);
}
    
  ul {
   list-style-type: none;
   }
   
  
.box {
  position: relative;
  z-index: 2;
  background-image:url('purplestar.gif');
  background-position: center center;
  min-height: 800px; 
  background-attachment: fixed;
  background-size: cover;
  }
.container {
  display: flex;
  }
.leftcontainer {
  background-color: #1E0230;
  margin: 3%;
  height: 50%;
  width:30%;
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 10px
  }
  
.leftcontainer h1 {
    font-size:50px;
    margin:2%;
    }
    
.leftcontainer p {
    font-size:40px;
    
    }
    
.rightcontainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 16px;
  flex-direction: column;
  align-content: flex-end;
  justify-content: flex-end;
  margin: 3%;
    position:absolute;
  top: 0;
  right: 10%;
  border-radius: 10px
  
  
}

/* Container Link  sorry i did this part using gemini ;-;*/
.envelope-card {
  display: block;
  text-decoration: none;
  perspective: 1000px; /* Gives the 3D flip effect depth */
}

/* Base Envelope Setup */
.envelope {
  position: relative;
  width: 200px;
  height: 140px;
  background-color: #8400AD; /* Matches your theme */
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
}

/* The Envelope Flap (Top Triangle) */
.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-top: 70px solid #a600d9; /* Lighter shade for contrast */
  transform-origin: top;
  transition: transform 0.4s ease, z-index 0.4s ease;
  z-index: 3; /* Starts on top of the letter */
}

/* The Front Pocket (Bottom Triangle covering the letter) */
.pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 100px solid #6b008c;
  border-right: 100px solid #6b008c;
  border-top: 60px solid transparent;
  border-bottom: 70px solid #6b008c;
  border-radius: 0 0 4px 4px;
  z-index: 2;
}

/* The Letter Inside */
.letter {
  position: absolute;
  bottom: 10px;
  left: 15px;
  width: 170px;
  height: 110px;
  background: white;
  border-radius: 4px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'handmade', sans-serif;
  transition: transform 0.4s ease 0.2s; /* Delays slide until flap opens */
  z-index: 1;
}

/* --- HOVER ANIMATIONS --- */

/* 1. Flap opens upward */
.envelope-card:hover .flap {
  transform: rotateX(180deg);
  z-index: 0; /* Moves behind the letter once open */
}

/* 2. Letter slides up out of envelope */
.envelope-card:hover .letter {
  transform: translateY(-50px);
}
  
 .box {
  display: absolute;
  justify-content: center;
  align-items: center;
  height: 100vh;
  z-index: 1;
  }


  
  
  
  
  
  
  
  
  transition: background-color 0.2s ease, transform 0.2s ease;
  }