:root {
  --color-primary: #1d3557;
  --accent-one: #457b9d;
  --accent-two: #a8dadc;
  --color-secondary: #e63946;
  
  --neut-Dark: #2f2f2f; 
  --neut-Mid: #bfbfbf;
  --neut-Light: #f1faee; 
  
  
  --success-clr: #2a9d8f; 
  --warning-clr: #f4a261;
  --error-clr: #e76f51;
  --color-error: #d62828;

}

* {
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Poppins', sans-serif; 
  /* background: linear-gradient(135deg,var(--color-primary), var(--accent-one));  */
  background: linear-gradient(135deg,rgba(29, 53, 87,0.5), rgba(241, 250, 238,0.5)), url(https://cdn.pixabay.com/photo/2024/05/26/15/27/anime-8788959_1280.jpg) no-repeat center
  center / cover fixed padding-box border-box;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}


.menu-wrap {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: fit-content;
  z-index: 100;
}

.menu-wrap button {
	background: var(--color-primary);
	color: var(--neut-Light);
	outline: none;
	border: none;
	padding: 1rem 1.2rem;
	font-size: 1.5rem;
	border-radius: 0.8rem;
}

.main-container {
  margin: 5rem 1rem;
}
.container {
  background-color: rgba(255, 255, 255, 0.7); 
  border-radius: 1rem; 
  padding: 3rem 2rem;
  margin: 1rem auto; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
  box-sizing: border-box;
  backdrop-filter: blur(20px);
  width: 100%;
  /* transition: all 0.9s ease-in-out; */
}

.option-wrap {
  margin: 25vh auto 0;
  transition: all 1s ease-in-out;
}

.hide {
  display: none !important; 
}

hr {
  border-color: var(--neut-Light);
  margin: 0.5rem 0;
}
label {
  color: var(--neut-Dark);
  font-weight: 600;
}

input[type="text"] {
  width: calc(100% - 20px); 
  padding: 12px;
  margin: 0.8rem 0;
  border: 2px solid var(--accent-one); 
  border-radius: 10px; 
  font-size: 1rem;
  color: var(--neut-Dark);
  outline: none; 
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--accent-one);
}

fieldset {
  border: 1px solid var(--neut-Light); 
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

legend {
  color: var(--neut-Dark); 
  font-size: 18px;
  font-weight: 600;
  padding: 0 10px;
  background-color: var(--neut-Light);
  border-radius: 5px;
}

#radioGrp {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Radio Button Styling (Custom) */
input[type="radio"] {
  /* Hide default radio button */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

input[type="radio"] + label {
  position: relative;
  padding-left: 30px; 
  cursor: pointer;
  display: inline-block;
  margin-right: 20px;
  font-size: 16px;
  color: var(--neut-Dark);
  line-height: 20px;
}

input[type="radio"] + label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--neut-Light); 
  border-radius: 50%;
  background-color: var(--neut-Light);
  transition: all 0.2s ease;
}

input[type="radio"]:checked + label::before {
  background-color: var(--color-primary);
  border-color: var(--accent-one);
}

input[type="file"] {
  display: none;
}

.custom-file-upload {
  margin: 20px auto;
  text-align: center;
  line-height: 5rem;
  border: 2px dashed var(--neut-Dark);
  border-radius: 1rem;
  cursor: pointer;
  color: var(--neut-Dark);
  padding: 1rem;
  display: block;
}

.uploader-wrap {
  display: flex;
  flex-direction: column;
}

select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid var(--accent-one); 
  border-radius: 10px;
  font-size: 16px;
  color: var(--neut-Dark);
  background-color: white;
  appearance: none; /* Remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--accent-one);
}

select:disabled {
  background-color: var(--neut-Mid);
  border-color: var(--neut-Mid);
}

.button, #temptBtn, #btnGen {
  background: var(--color-primary); 
  color: var(--neut-Light);
  padding: 14px 25px;
  border: 1px solid var(--neut-Dark);
  border-radius: 15px; 
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%; 
  box-sizing: border-box;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.button:hover, #temptBtn:hover, #btnGen:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}

.error-msg {
	margin: 0 0.5rem 1rem;
	color: var(--color-error);
	font-weight: 400;
}

.error-field {
	border: 2px solid var(--color-error) !important;
}

.bgOverlay {
  position:fixed; 
  top:0;
  left:0;
  height:100vh;
  width:100vw;
  z-index:10;
  background: rgba(34, 34, 34, 0.9);
}

.popup {
  position:fixed; 
  top:0;
  left:0;
  right: 0;
  height:fit-content;
  width:100vw;
  margin: 1rem;
  padding: 2rem 1rem;
  z-index:20;
}

.popup-wrap {
  padding: 3rem 2rem;
  color: var(--neut-Dark);
  background: rgba(255,255,255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255, 0.6);
  border-radius: 1rem;
  box-shadow: 0 0 100px rgb(230, 57, 70,0.5);
  /* box-shadow: inset 0 0 15px rgb(230, 57, 70,0.8); */
}

@media screen and (min-width:1080px) {
  .main-container {
    position: absolute;
    inset: 0 0 auto;
    width: 30vw;
    margin: auto;
    overflow-y: auto;
    scrollbar-width: none;
  }

  #radioGrp {
    flex-direction: row;
  }

  .popup {
    top: 3rem;
    width:fit-content;
    margin: auto;
  }

}