@font-face {
  font-family: 'SummerLoving';
  src: url('fonts/SummerLoving.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'SummerLoving_Solid';
  src: url('fonts/SummerLoving_Solid.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'AkiraExpanded';
  src: url('AkiraExpanded.ttf') format('truetype'); /* make sure the file is in your folder */
  font-weight: normal;
  font-style: normal;
}

body::before {
  content: "";
  position: fixed;      
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* semi-transparent overlay */
  z-index: 0;           
}

/* --- Main container --- */
.container {
  max-width: 95%;        
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 50px;  
  position: relative;
  z-index: 2;  
  box-sizing: border-box;
}
/* --- Profile image --- */
.avatar {
    width: min(25vw, 200px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: -80px; /* moves image up over the name */
    flex-shrink: 0;
    position: relative;
    z-index: 2; /* keeps it above background if needed */
}

/* --- Name --- */
h1 {
    font-family: 'SummerLoving', sans-serif;
    font-size: 8rem;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 10px;
    position: relative;
    z-index: 3;
}

/* --- Bio --- */
p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;                     
  color: #000000;                        
  margin: 0 0 20px 0;                  
  text-align: center;
}

/* --- Links container --- */
.links-and-instagram {
  display: flex;
  flex-wrap: wrap;        
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

/* --- Buttons --- */
.links {
  width: 100%;            
  max-width: 300px;       
  display: flex;
  flex-direction: column;
  align-items: center;
}

.custom-btn {
  width: 100%;           
  max-width: 300px;
  height: auto;          
  margin: 10px 0;        
  border-radius: 25px;
  cursor: pointer;       
  transition: transform 0.2s;
}

.custom-btn:hover {
  transform: scale(1.05);
}

/* --- Social icons --- */
.social-icons {
  display: flex;
  gap: 15px;         
  justify-content: center; 
  margin-bottom: 20px; 
}

.icon {
  width: 35px;        
  height: 35px;
  transition: transform 0.2s;
}

.icon:hover {
  transform: scale(1.2);
}

/* --- Instagram post --- */
.instagram-post img {
  width: 100%;       
  max-width: 400px;  
  height: auto;       
  border-radius: 10px;    
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: block;         
  margin: 0 auto;         
}
.instagram-post-wrapper {
  position: relative;   /* allows overlay positioning */
  display: inline-block;
}

.instagram-post-wrapper .instagram-screenshot {
  width: 100%;       
  max-width: 400px;  
  height: auto;       
  border-radius: 10px;    
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: block;         
  margin: 0 auto;         
}

.click-me-img {
  position: absolute;      /* position relative to wrapper */
  top: 10px;               /* distance from top of post */
  right: 10px;             /* distance from right of post */
  width: 80px;             /* adjust size as needed */
  height: auto;            /* maintain proportions */
  pointer-events: none;    /* allow click to pass through */
  transform: rotate(15deg);  /* rotate clockwise */
}

@keyframes wiggle {
  0%   { transform: rotate(15deg) translate(0, 0); }
  25%  { transform: rotate(18deg) translate(2px, 2px); }
  50%  { transform: rotate(12deg) translate(-2px, -2px); }
  75%  { transform: rotate(15deg) translate(1px, -1px); }
  100% { transform: rotate(15deg) translate(0, 0); }
}

.click-me-img {
    position: absolute;
    top: 10px;
    right: 0px;
    width: 150px; /* increase size — try 150–220px */
    height: auto;
    transform: rotate(15deg);
    animation: wiggle 2s infinite alternate;
    pointer-events: none; /* makes sure it doesn't block clicks */
}

/* --- Countdown --- */
.countdown {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px; 
}

.time-box {
  background-color: #f5deb3;       
  color: #111;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
  font-family: 'Montserrat', sans-serif; 
  box-shadow: 0 6px 15px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

/* --- Body & background --- */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  text-align: center;
  background-image: url('background.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #f5deb3;
}
.bouncing-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.bouncing-icon {
  width: 80px;           /* visible size stays the same */
  height: 80px;
  pointer-events: auto;  /* ensures it can be clicked */
  cursor: pointer;
  transform-origin: center;
  display: block;
}

/* invisible padding area to make it easier to tap */
.bouncing-icon::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 250px;    /* icon size + padding area */
  height: 250px;
  background: transparent;
}
.spotify-preview {
  margin-top: 20px;        /* space above the player */
  display: flex;
  justify-content: center;  /* centers the player */
  width: 100%;
  max-width: 430px;         /* caps width for large screens */
}

.spotify-preview iframe {
  width: 100%;              /* scales to container */
  height: 200px;             /* match the compact player height */
  border-radius: 12px;
}
/* Popup container */
.discount-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #c4b28f;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  text-align: center;
  z-index: 5;

  /* 🟢 Start hidden */
  display: none;

  /* layout once visible */
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.discount-popup .discount-image {
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.close-img {
  width: 100px;          /* a good medium size */
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-img:hover {
  transform: scale(1.05);
}

.letteform-container {
  background-color: #f5deb3;  /* solid background behind your doodle form */
  display: flex;
  justify-content: center;
  padding: 10px;             /* optional spacing around the image */
  border-radius: 12px;       /* optional rounding to match style */
  max-width: 700px;          /* same as image max-width for alignment */
  margin: 20px auto;         /* center on the page */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* optional subtle shadow */
}
/* --- Mobile responsiveness --- */
@media (max-width: 1080px) {
    .container {
        transform: scale(1.1);
        transform-origin: top center;
    }

    .avatar {
        margin-bottom: -80px; /* moves the image up over the name */
    }

    h1 {
        font-size: 12rem;
        margin-top: 0;
        margin-bottom: 5px;
    }

    .social-icons img.icon {
        width: 100px;
        height: 100px;
        margin: 0 6px;
        margin-top: 20px;
    }

    .links-and-instagram {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .links {
        max-width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .custom-btn {
        max-width: 350px;
        width: 100%;
    }

    .instagram-post,
    .instagram-post-wrapper {
        width: 75%;
        max-width: 75%;
        display: flex;
        justify-content: center;
    }

        .instagram-post img,
        .instagram-post-wrapper .instagram-screenshot {
            max-width: 100%;
            width: 100%;
            height: auto;
        }

    .click-me-img {
        width: 200px;
        top: 5px;
        right: 5px;
        transform: rotate(15deg);
    }

    .time-box {
        font-size: 2rem;
        padding: 20px 25px;
        min-width: 80px;
    }

    .countdown {
        gap: 15px;
    }

    .spotify-preview {
        max-width: 660px;
        margin-top: 30px;
    }

        .spotify-preview iframe {
            height: 400px;
            border-radius: 16px;
        }
}





