body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
}
.wrapper{
    /* display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
    width: 100vw;
    height: 100vh; */
    display: flex;
    /* margin-top: 20px; */
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
    
}

.cover {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    margin-right: 1rem;
}

.controls {
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px; /* vertical space between children */
    /* padding: 2.5rem 1.5rem; */
    min-width: 350px;
    margin-top: -2.85rem;
    min-height: 520px;
    width: fit-content;

    /* Remove: height: 500px; */
}

.controls p {
    margin-bottom: 0; /* gap already handles spacing */
    font-size: 1.1rem;
    color: #2e2e2ed5;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.02em;
}


.menu-cover{
    top: -150vh;
    height: 100vh;
    width: 100vw;
    position: absolute;
    z-index: 99999999999999999;
    background: rgba(211, 211, 211, 0.522);
    backdrop-filter: blur(10px);
}
.menu-cover .menu{
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* position: absolute;
    top: 3rem; */
    /* z-index: 999999999999999999; */
    line-height: 100px;
    font-size: 3rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;

    text-align: center;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 20px;
    border-radius: 15px;
}

.menu a{
    text-decoration: none;
    color: #111 ;
    border-bottom: 1px solid #111;
}


#topicInput {
    width: 90%;
    max-width: 600px;
    min-height: 70px;
    /* line-height: 40px; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 1em;
    border: 1px solid #ccc;
   border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: none;
    /* margin-top: -10rem; */
    margin-top: -1rem;
    box-sizing: border-box;
    text-align: left; /* Forces typed text to the left */
}


.button {
    /* border-radius: 15px; */
    /* padding: 5px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
    width: 100%;

    max-width: 580px;
}

button {
    background: #380bff54;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.189);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    /* width: 40px; */
    /* height: 40px; */
    height: 6rem;
    width: 6rem;
       
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}


.nav {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(255, 255, 255, 0.151);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 3rem;
    /* padding-top: 10px; */
}

.nav h1 {
    font-size: 1.2rem;
    margin: 0;           /* KEY FIX: Reset all margins */
    margin-left: 1rem;   /* Then add only left margin */
    color: #57195d;
}

.nav .right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 4rem;
}

/* .nav .right a {
    color: #2e2e2e;         
    text-decoration: none;
    font-weight: 600 ;
    font-size: 0.9rem;
    margin-right: 30px;
    text-transform: capitalize;
} */
/* .nav .right a:hover {
    text-decoration: underline;
    transition: 0.3s all ease-in-out;
    color: black;
} */
.right-under a {
  text-decoration: none;
  position: relative;
    color: #2e2e2e;         
    text-decoration: none;
    font-weight: 600 ;
    font-size: 0.9rem;
    margin-right: 30px;
    text-transform: capitalize;
}

.right-under a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  border-radius: 5px;
  height: 0.05em;
  bottom: 0;
  left: 0;
  background: currentcolor;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.right-under a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.right-under a:hover{
    color: #000000;
  transition: transform 0.35s ease-in-out;

    font-size: 0.92rem;
}

svg{
    width: 15px;
    height: 15px;
}
button:hover {
    opacity: 0.8;
}

#cy {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    /* box-shadow:; */
    width: 800px;
    background: #1919193d;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 50px 0 rgba(0, 0, 0, 0.295);
    height: 500px;

    border-radius: 15px;
    border: 4px solid #ffffff;
    margin-top: -1rem;

    /* width: 240px; */
  /* height: 360px; */
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 10px 5px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

#cy ::before{
    content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

#cy ::after{
    content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
}

.instruction {
    font-size: 12px;
    color: #666;
    margin-top:20px;
    position: absolute;
    bottom: 20px;
    max-width: 600px;
    text-align: center;
}



.containtwo{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}



.controls p {
  margin-bottom: 1rem;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}



.custom-ok-btn{
    padding: 20px 30px;
    /* background: ; */
    height: auto;
    width: auto;
    border-radius: 15px;

}

.custom-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(23, 23, 23, 0.48); /* slightly dark overlay */
  justify-content: center;
  align-items: center;
}

.custom-modal-content {
  background: #fff;
  color: #2e2e2e;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(40,0,60, 0.18);
  max-width: 340px;
  min-width: 275px;
  margin: 0 auto;
}

.custom-confirm-buttons {
  margin-top: 30px;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.custom-confirm-buttons button {
  padding: 21px 27px;
  border: none;
  border-radius: 18px;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  min-width: 100px;
  outline: none;
  box-shadow: 0 8px 24px rgba(40,0,40,0.11);
  letter-spacing: 0.02em;
  transition: background 0.16s, color 0.18s, transform 0.13s;
}

.btn-yes {
  background-color: #4caf50;
  color: #fff;
}
.btn-yes:hover, .btn-yes:focus {
  background-color: #43a047;
  transform: scale(1.04);
}

.btn-no {
  background-color: #f44336;
  color: white;
}
.btn-no:hover, .btn-no:focus {
  background-color: #e53935;
  transform: scale(1.04);
}
