html {
  font-size: calc(16px * (100vw / 1920));
}

body {
  width: 100%;
  height: 100vh;
  margin: 0rem;
  padding: 0rem;

  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 1.125rem;

  background-color: rgba(55, 128, 148, 255);
}

* {
  box-sizing: border-box;
}

.none {
  display: none;
}

.hidden {
  visibility: hidden;
}

.postSend {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: red;
}

.warning {
  height: 2rem;

  margin-top: -0.5rem;
  position: relative;
  z-index: 1000;

  font-size: 0.9rem;
  color: red;
}

.password-rules {
  width: 17rem;
  margin-top: 0.25rem;
  margin-left: 15rem;
  padding: 0.5rem;
  border: 0.06rem solid #ccc;
  border-radius: 0.25rem;
  display: none;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
  background-color: #f9f9f9;
  position: absolute;
  z-index: 999;

  font-size: 0.9rem;
}

.full-container {
  width: 100%;
  height: 100%;
  margin: 0rem;
  padding: 0rem;
}

.container3080 {
  width: 40%;
  height: 60%;
  margin: 0rem;
  padding: 0rem;
}

.container4050 {
  width: 40%;
  height: 50%;
  margin: 0rem;
  padding: 0rem;
}

.container4060 {
  width: 40%;
  height: 60%;
  margin: 0rem;
  padding: 0rem;
}

.container5060 {
  width: 50%;
  height: 60%;
  margin: 0rem;
  padding: 0rem;
}

.container5090 {
  width: 50%;
  height: 90%;
  margin: 0rem;
  padding: 0rem;
}

.container100Px1F {
  width: 100%;
  flex: 1;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.center {
  justify-content: center;
}

.flex-end {
  justify-content: flex-end;
}

.space-between {
  justify-content: space-between;
}

.stretch {
  align-items: stretch;
}

.content-body {
  background-color: #fafafa;
  font-size: 1.125rem;
  padding: 0rem 2rem;
}

.content-body-profile {
  background-color: #fafafa;
  font-size: 1.125rem;
}

.preferences-list-body {
  background-color: antiquewhite;
}

.header {
  width: 100%;
  height: 7rem;
}

.header img {
  height: 100%;
  transition: filter 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.header img:hover {
  filter: brightness(0.8);
  opacity: 0.9;
}

.footer {
  width: 100%;
  height: 7rem;

  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-size: 0.9rem;
  color: #fafafa;

  background-color: #333;
}

.footer p {
  margin-bottom: 0.02rem;
}

.navbar {
  width: 100%;
  height: 3rem;
  margin: 0rem;
  padding: 0rem 0.25rem;

  background-color: rgba(55, 128, 148, 255);
  gap: 0.125rem;
}

.qr {
  width: 100%;
  height: 26rem;
}

.qr img {
  height: 100%;
}

.qr-box {
  flex: 0 0 30%;
}

h2,
h3 {
  text-align: center;
}

h3 {
  font-size: 1.8rem;
}

.container5060 section {
  color: red;
}

.container5060 span {
  color: red;
}

ul li {
  margin-bottom: 1rem;
}

ol li {
  margin-bottom: 1rem;
}

table {
  border-collapse: collapse;
}

th,
td {
  border: 0.0625rem solid #333;
  padding: 0.625rem;
  text-align: center;
}

th {
  background-color: #f2f2f2;
}

.entry-h1 {
  width: 100%;
  height: 1rem;
  margin-bottom: 0.0125rem;
}

.entry-h2 {
  width: 100%;
  height: 2rem;
}

.entry-h3 {
  width: 100%;
  height: 3rem;
  margin-bottom: 0.125rem;
  padding-right: 2rem;

}

.entry-h4 {
  width: 100%;
  height: 4rem;
  margin-bottom: 0.125rem;
  padding-right: 2rem;
}

.entry-h10 {
  width: 100%;
  height: 10rem;
  margin-bottom: 0.125rem;
  padding-right: 2rem;
}

.entry-h2 section {
  padding-left: 13rem;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-size: 0.75rem;
  color: rgb(255, 0, 153);
}

label {
  width: 15rem;
  text-align: end;
}

.label-container-short {
  padding-top: 0.01rem;
    border: 3px solid green;

}

.label-container-short label {
  width: 4rem;
}

.label-container-medium {
  padding-top: 0.01rem;
}

.label-container-medium label {
  width: 8rem;
}

.label-container-long {
  padding-top: 0.01rem;
}

.label-container-long label {
  width: 12rem;
  padding-right: 1rem;
}

.label-container-extra-long {
  padding-top: 0.01rem;
}

.label-container-extra-long label {
  width: 16rem;
  padding-right: 1rem;
}

input {
  flex: 1;
  padding: 0.3125rem 0.75rem;
  border: 0.0625rem solid #ccc;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  outline: none;
  transition: 0.3s all;
}

input[readonly] {
  background-color: #97ecf5;
  color: #000;
}

input[type="datetime-local"] {
  width: 12.5rem;
  padding: 0.5rem;

  text-align: center;
}

.date input {
  flex: 0.25;
}

.dropdown {
  flex: 0.2;
  padding: 0.3125rem 0.75rem;
  border: 0.0625rem solid #ccc;
  border-radius: 0.375rem;
  outline: none;
  transition: 0.3s all;

  text-align: left;
}

.plan-list {
  text-align: center;
  pointer-events: none;
  background-color: #7ee5f1;
  color: #000;
}

.tAc {
  height: 3rem;
}

.tAc > * input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
}

.tAc a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  margin-left: 1.25rem;
}

.entries {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: visible;
}

.entry-update {
  width: 100%;
  height: 2.2rem;
  margin-bottom: 0.6rem;

  position: relative;
}

.entry-update .slno {
  font-weight: bold;
  width: 2.5rem;
  text-align: center;
}

.entry-update .institution {
  display: flex;
  gap: 0.5rem; 
  width: 50%;
  padding: 0.3rem 0.1rem;
  border-radius: 0.25rem;
  font-size: 1.1rem;
}

.institution .institution-name {
  flex: 1 1 0;  
  min-width: 70%;
}

.institution .place-name {
  flex: 1 1 0;
  min-width: 20%;
}

.suggestion-margin {
  margin-left: 7rem;
}

.suggestions {
  width: 50%;
  max-height: 15rem;

  top: 100%;
  position: absolute;
  overflow-y: auto;
  z-index: 10000;

  border-radius: 0.25rem;

  font-size: 1.1rem;

  background-color: #fff;
}

.suggestion-item {
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #e0e0e0;
}

.event-type-container {
  flex: 1;
}

.event-type-container ul {
  display: flex;
  flex-direction: row;
  align-items: center;

  width: 100%;
  list-style: none;
  margin: 0;
  padding-top: 1.5rem;
  padding-left: 0.5rem;
  padding-right: 1.5rem;

  gap: 0.5rem;
}

.event-type-container li {
  display: flex;
  align-items: center;
  gap: 0.1rem;

  font-size: 1rem;
}

.event-type-container input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}



.ribbon-options {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  align-items: flex-start;
}

.left-box {
  flex: 0 0 25%;
  height: 100%;
  position: relative;
  transition: flex-basis 0.3s ease;
}

.left-box.shrunk {
  flex: 0 0 3%;
}

.gap10 {
  gap: 0.6rem;
}

.left-box img {
  width: 100%;
  height: 6rem;
  transition: filter 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.left-box img:hover {
  filter: brightness(0.8);
  opacity: 0.9;
}

.right-box {
  flex: 1;
  height: 100%;
  transition: flex 0.3s ease;
}

.btn-navbar {
  width: 16rem;
  height: 100%;
  border-radius: 0.5rem;

  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.2rem;

  color: white;
  background: linear-gradient(120deg, #0d1b2a, #1b263b);

  position: relative;
  overflow: hidden;
}

.btn-navbar:hover {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(173, 216, 230, 0.6) 0%,
    rgba(0, 0, 128, 0.2) 90%
  );
  cursor: pointer;
}

.btn-navbar.active-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(173, 216, 230, 0.6) 0%,
    rgba(0, 0, 128, 0.2) 90%
  );
  animation: wave 4s linear infinite;
  transform: rotate(30deg);
  z-index: 0;
}

/* Wave motion small*/
@keyframes wave {
  0% {
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateX(50%) translateY(50%) rotate(30deg);
  }
}

.btn-navbar span {
  position: relative;
  z-index: 1;
}

.btn-submit {
  width: 10rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  margin-right: 2rem;

  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-size: 1.25rem;
  text-align: center;
  color: white;

  background-color: blue;
}

.btn-submit:hover {
  background-color: #c9302c;
}

.btn-submit-2 {
  width: 15rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  margin-right: 2rem;

  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-size: 1.25rem;
  text-align: center;
  color: white;

  background-color: blue;
}

.btn-submit-2:hover {
  background-color: #c9302c;
}

.btn-remove {
  width: 3rem;
  height: 2rem;

  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0.25rem;

  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
}

.btn-add {
  width: 8rem;
  height: 2rem;

  margin-left: 7rem;
  margin-right: 1rem;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0.25rem;

  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.9rem;
  cursor: pointer;
  color: #fff;
}

.red {
  background-color: #f44336;
}

.green {
  background-color: green;
}

.blue {
  background-color: blue;
}

.btn-spl:hover {
  background-color: #b81111;
}

.btn-reset {
  width: 10rem;
  height: 2rem;

  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0.25rem;

  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.9rem;
  cursor: pointer;
  color: #fff;
}

.btn-toggle-small {
  width: 3rem;
  height: 1.75rem;
  border: none;
  border-radius: 0.25rem;
  background-color: green;
}

.btn-toggle-small:hover {
  background-color: aquamarine;
}

.btn-toggle-big {
  width: 100%;
  height: 5.5rem;

  position: relative;
  overflow: hidden;
}

.btn-toggle-big:hover {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(31, 184, 235, 0.6) 0%,
    rgba(14, 14, 246, 0.2) 70%
  );
}

.btn-toggle-big.active-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(173, 216, 230, 0.6) 0%,
    rgba(227, 227, 232, 0.2) 90%
  );
  animation: wave2 5s linear infinite;
  transform: rotate(90deg);
  z-index: 0;
}

/* Wave motion big*/
@keyframes wave2 {
  0% {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
  }

  100% {
    transform: translateX(50%) translateY(50%) rotate(45deg);
  }
}

.btn-toggle-big span {
  position: relative;
  z-index: 1;
}

.response-box {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  text-align: center;
}

.response-box p {
  font-size: 1.5rem;
  color: green;
}

.response-box h2 {
  color: brown;
}

.response-box section {
  color: red;
  font-size: 2rem;

}


.sub-nav {
  gap: 0.5rem;
}

.sub-content {
  display: none;
}

/* Loading overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: 9999;
}

#preferencesPage #loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: 9999;
}

/* Hide main content until loaded */
#preferencesPage #main {
  display: none;
}

#preferencesProfileDiv {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#preferencesProfileDiv iframe {
  flex: 1;
  width: 100%;
  border: none;
}
