/* COMMON STYLES */
body {
  background-image: url("/common/Background-gradient.png");
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
}

section {
  margin-top: 10svh;
  padding: 5rem 5rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5svh;
}

/*<><> NAV  <><>*/
nav {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  min-height: 5svh;
  
  border-bottom: 1px solid #ba2871;
  padding: 1rem;
}

nav a img {
  max-height: 8svh;
  padding: 0 1rem;
  
}

.nav-text {
  flex:1;
  color: #e43131;
  font-size: 3rem;
}

.nav-text span{
  color: #fbefdf;
}


/* <><> TITLE SECTION <><> */
.title-section {
  display: flex;
  margin-top: 0;
  padding-top: 5rem;
  min-height: 80svh;
  padding-bottom: 20svh;
  
}

.title-section h2 {
  font-size: 3rem;
  color: #ebdfcf;
}


/* SIGN IN SECTION */
.signin-container{
  background-color: rgba(95, 95, 95, 0.05);
  
  max-width: 80%;
  margin:auto;
  
  border-radius: 2rem;
  box-shadow: 0 0.5rem 0.4rem rgba(0, 0, 0, 0.03);
}

.signin-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5%;
  row-gap: 5svh;
}

.form-label-input, .signin-submit-btn{
  font-size: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-align: center;
  
  background-color: cornsilk;
  
  transition: all ease-in-out 0.3s;
}


.form-label-input:focus-visible{
  transform: scale(1.05);
  outline: none;
  border: 3px solid #ba2871;
}

.failed-signin-error{
  display: none;
  grid-column: 1/-1;
  
  padding: 0.8rem 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #ff6767;
}

.signin-submit-btn {
  grid-column: 1/-1;
  background-color: transparent;
  border: 1px solid #ba2871;
  color: #faebd7;
  
  transition: all ease-in-out 0.2s;
}

.signin-submit-btn:hover{
  border: 1px solid #faebd7;
  background-color: #faebd7;
  color: black;
  
  cursor: pointer;
}


/* !!! LOADING GIF CSS */
.lds-dual-ring,
.lds-dual-ring:after {
  box-sizing: border-box;
}
.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
  color: #ba2871;
  display: none;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6.4px solid currentColor;
  border-color: currentColor transparent currentColor transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* !!! LOADING GIF CSS !!!! END*/


/* TEMP alert message for confirmation */
.temp-signin-success-message{
  display: none;
  
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #91fc5c;
}



/* DATA SUBMISSION --> FORM INTERACTION */
.main {
  background-color: rgba(95, 95, 95, 0.05);
  max-width: 80%;
  margin: 10svh auto;
  padding: 3rem 4rem;

  display: flex;
  flex-direction: column;
  row-gap: 7.5svh;

  border-radius: 2rem;
  box-shadow: 0 0.5rem 0.4rem rgba(0, 0, 0, 0.03);
  
  display: none;
}

.projects-title {
  grid-column: 1/-1;
  grid-row: 1/2;
  text-align: center;
  
  padding: 0 1rem 0.8rem;
  border-bottom: 2px solid #ba2871;
  width: fit-content;
  margin: 0 auto;
  
  width: 100%;
}
.btn-grid{
  margin-top: 10svh;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-evenly;
  width: 75%;
}

.std-btn{
  font-size: 1.5rem;
  padding: 1rem;
  background-color: rgba(114, 114, 114, 0.15);
  border: 1px solid rgba(250, 235, 215, 0.5);
  border-radius: 0.5rem;
  color: #faebd7;
  cursor: pointer;
  transition: all ease 0.3s;
  
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.std-btn:hover{
  transform: scale(1.1);
  border: 1px solid rgba(250, 235, 215, 0.75);
  text-decoration: underline;
}

.btn-icon{
  width: 2.5rem;
}

.std-btn p {
  text-align: center;
}

.main h4 {
  font-size: 1.8rem;
  text-align: left;
  padding: 1rem 0;
  margin: 0.5rem 0;
}

/* FORM STYLING */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.form-inpt-row {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}


label {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
  color: #fcffe7;
}

.form-inpt-row input {
  border: none;
  border-radius: 0.3rem;
  padding: 0.85rem;
  background-color: #291a1a;
  color: white;
  font-size: 1rem;
}

/* INFO SECTION */
.info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
  gap: 10rem;
}

.info-section-row{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 2rem;
}

.underlined {
  border-bottom: 1px solid #fff;
}


.diagram-img {
  max-width: 80%;
  margin: auto;
  
}


/* ####################################
ANIMATIONS:
 - All css fade and reveal animations for 
#################################### */

.reveal {
  transform: translate(0, 10svh);
  opacity: 0;
  transition: 0.4s all ease;
}

.active {
  transform: translate(0, 0);
  opacity: 1;
}

/* INPUT REMOVE GROSS ARROWS FROM NUMERIC INPUT */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}