body {
  background-color: #7eceff;
  margin: 0;
  font-family: DynaPuff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btn{
background-color: rgb(187, 219, 247);
font-family: DynaPuff;
font-size:30px;
padding:10px;
margin:40px;
border-radius:13px;
border-color:white;
}
.container {
  display: flex;
  flex-direction: column;
  text-align: center; 
  background-color: aliceblue;
  width: 600px;
  height: 600px;
  font-size: 25px;
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  padding: 1rem;
  margin-top: 40px; 
}
.audio{
margin-top:20px;
width:60px;
height:60px;
border-radius: 500px;

position: relative;  
z-index: 10;         /* THis  line is chatGPT generated, becaz i did not understand why my audio wasnt playing*/

}


.container svg {
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  height: auto;
}
header {
  width: 100%;
  text-align: center;
  font-size: 50px;
  font-weight: bold;
  padding: 20px;
  background-color:  aliceblue;
  margin: 0;
  border-radius: 0 0 50px 50px;

}


/*Below Code is AI*/

.octopus {
position: fixed;
bottom: -250px; 
right: 20px;    
visibility: hidden; 
opacity: 0;
transition: all 1s ease-in-out;
z-index: 999;
text-align: center;
}

.bubble {
position: absolute;
bottom: 220px;  
right: 100%;             
.bubble {
  position: absolute;
  bottom: 220px;  
  right: 100%;             
  margin-right: 20px;      
  background: #ffffff;
  color: #000000;
  padding: 20px 28px;      
  border-radius: 25px;      
  font-family: "Noto Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  box-shadow: 0px 6px 14px rgba(0,0,0,0.25);

  max-width: 320px;         
  white-space: normal;    
  word-wrap: break-word;
  line-height: 1.4;

  opacity: 0;
  transform: scale(0.9);
  transform-origin: right center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}


.octopus.show .bubble {
  opacity: 1;
  transform: scale(1);
}


.bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;   
  border-width: 12px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

margin-right: 15px;      

background: #ffffff;
color: #000000;
padding: 12px 18px;
border-radius: 20px;
font-family: "Noto Sans", sans-serif;
font-size: 18px;
font-weight: 500;
box-shadow: 0px 4px 10px rgba(0,0,0,0.25);

max-width: 250px;      
white-space: normal;    
word-wrap: break-word;

opacity: 0;
transform: scale(0.9);
transform-origin: right center;
transition: opacity 0.4s ease, transform 0.4s ease;
}


.octopus.show .bubble {
opacity: 1;
transform: scale(1);
}


.bubble::after {
content: "";
position: absolute;
top: 50%;
right: -10px;   
transform: translateY(-50%);
border-width: 10px;
border-style: solid;
border-color: transparent transparent transparent #ffffff;
}


body {

background-image: url('2.png');
background-repeat: no-repeat;
background-position: bottom center;
background-size: 100% auto;     
background-attachment: scroll;    

}


.octopus img {
width: 200px;
height: auto;
}

.octopus.show {
bottom: 0;   
opacity: 1;
visibility: visible; 
}

.bubble {
position: absolute;
bottom: 220px;  
right: 50%;     
transform: translateX(50%);
background: #fff;
color: #000;
padding: 10px 15px;
border-radius: 15px;
font-family: "Noto Sans", sans-serif;
font-size: 18px;
box-shadow: 0px 2px 6px rgba(0,0,0,0.3);
white-space: nowrap;
}


.modal {
  display: none;          
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  overflow: auto;
}


/* Modal Content */
.modal-content.game {
  width: 95%;
  max-width: 950px;
  background-color: #e0f7ff;
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideIn 0.5s ease-out;
}


.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  cursor: pointer;
  font-weight: bold;
}
.close:hover { color: red; }


#glubButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.glubBtn, #clearBtn {
  padding: 14px 22px;
  border: none;
  border-radius: 15px;
  background-color: #0099ff;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  transition: 0.2s;
}
.glubBtn:hover, #clearBtn:hover {
  background-color: #007acc;
  transform: scale(1.1);
}


.decodeBtn {
  margin-top: 10px;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  background-color: #00b300;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}
.decodeBtn:hover { background-color: #009900; transform: scale(1.05); }

.decodeResult {
  margin-top: 15px;
  font-weight: bold;
  font-size: 18px;
  color: #333;
}

#glubGuide {
  text-align: left;
  margin-top: 20px;
  background-color: #ccefff;
  padding: 15px;
  border-radius: 12px;
}

#celebration {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  width: 10px; height: 10px;
  background: gold;
  border-radius: 50%;
  opacity: 0.9;
  animation: sparkleAnim 1s forwards;
}

@keyframes sparkleAnim {
  0% { transform: scale(1); opacity:1; }
  100% { transform: translateY(-150px) scale(0.5); opacity:0; }
}

@keyframes slideIn { from {transform: translateY(-50px);} to {transform: translateY(0);} }

