/* Styles */

/* 
Primary/Purple: 502d7f
Secondary/Yellow: ffc82e
Background/Light Gray: fafafa
Body Text/ Dark Gray: rgb(36, 36, 36);
Border/Dark Gray: rgb(65, 64, 66);
*/

/* Font Families */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/montserrat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat-Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/montserrat.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/roboto.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* Page Setup */
.htmlStyle {
  height: 100%;
  background-color: #f9fafb;
}

.appBackground {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: rgb(36, 36, 36);
  font-family: "Inter", "Times New Roman", Times, serif;
}

.appContainer {
  text-align: center;
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  font-size: 16px;
  line-height: normal;
  width: 500px;
}

.row {
  display: flex;
  margin: 0 0 20px 0;
}

.column {
  flex: 50%;
  padding: 5px;
}

hr {
  margin-top: 16;
  margin-bottom: 16;
}

table td {
  border-collapse: collapse;
}

.extensionPage {
  width: 450px;
  position: relative;
  padding: 0 16 16 16;
  margin: 0;
}

/* Text Styles */
.appContextText {
  font-size: 12px;
  color: rgb(71, 71, 71);
}

.appLink {
  color: #502d7f;
  text-decoration: underline;
  cursor: pointer;
}

.appHeadingText {
  font-size: 20px;
  font-family: Montserrat-Bold, sans-serif;
  font-weight: 800;
  color: #575A5D;
  /* margin: 16px 0; */
}

/* Button Styles */
.primaryButton,
.secondaryButton,
.tertiaryButton {
  font-size: 16px;
  padding: 10px 24px;
  border-radius: 4px;
  color: white;
  border: 2px solid white;
  background-color: #502d7f;
  transition-duration: 0.4s;
}

.primaryButton:hover {
  background-color: #340770;
  cursor: pointer;
}

.secondaryButton {
  background-color: #ffc82e;
}

.secondaryButton:hover {
  background-color: rgb(228, 172, 18);
  cursor: pointer;
}

.tertiaryButton {
  background-color: #ffc82e;
  font-size: 8px;
  padding: 5px 12px;
}

.tertiaryButton:hover {
  background-color: rgb(228, 172, 18);
  cursor: pointer;
}

.primaryButton img,
.secondaryButton img,
.tertiaryButton img {
  display: inline;
  margin-left: auto;
  margin-right: auto;
  width: 18px;
  height: 18px;
  padding-right: 5px;
  vertical-align: top;
}

button:disabled {
  background-color: grey;
  cursor: not-allowed;
}

button:disabled:hover {
  background-color: grey;
  cursor: not-allowed;
}

/* Heading */
.header-container {
  padding: 0 0 16px 0;
}

#extensionHeading {
  font-size: 32px;
  text-align: center;
  white-space: nowrap;
  font-family: Montserrat-Bold, sans-serif;
  font-weight: 800;
  color: #502d7f;
  padding: 0 0 16px 0;
  margin: 0;
}

#extensionHeading:hover {
  cursor: pointer;
}
.headingImage {
  display: inline;
  width: 44px;
  height: 44px;
  padding: 0 0 5px 5px;
  vertical-align: top;
}

/* Loading Page */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-icon {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #502d7f; /* Blue */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 2s linear infinite;
  margin: 32px auto;
}

/* Login Page */
#login-container p {
  margin: 16px 0;
}

/* HeadShots Upload Page */
.userWelcome {
  display: flex; /* flex */
  justify-content: space-between; /* justify-between */
  align-items: center; /* items-center */
  margin-top: 0.5rem; /* mt-2 */
  margin-bottom: 0.5rem; /* mb-2 */
}

.appInfo {
  text-align: left;
  margin: 16px 0;
}

/* HeadShots Confirmation Page */
#headshots-confirmation-container {
  padding: 16px 0;
}

#headshots-confirmation-container p {
  text-align: left;
}

.confirmationButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photoContext {
  width: 250px;
  margin: auto;
}

/* Form Styling */
.formBox {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 0 8px 0;
  position: relative;
}

.formBox label {
  font-size: 16px;
  text-align: left;
  margin-top: 5px;
  display: block;
}

.formBox input,
textarea {
  display: block;
  margin: 0.5rem 0 1rem 0;
  width: 90%;
  border-radius: 4px;
  font-size: 16px;
  font-family: "Inter", "Times New Roman", Times, serif;
  resize: none;
}

.formBox input:focus,
textarea:focus {
  outline: none;
}

.formLongText {
  text-align: left;
  margin-bottom: 12px;
}

#headshots-confirmation-container input {
  accent-color: #502d7f;
}

/* Custom Checkboxes */
.checkboxContainer {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkboxContainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.customCheckbox {
  position: absolute;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: white;
  border-radius: 4px;
  border: 2px solid rgb(65, 64, 66);
}

.checkboxContainer:hover input ~ .customCheckbox {
  background-color: #ccc;
}

.checkboxContainer input:checked ~ .customCheckbox {
  background-color: #502d7f;
}

.customCheckbox:after {
  content: "";
  position: absolute;
  display: none;
}

.checkboxContainer input:checked ~ .customCheckbox:after {
  display: block;
}

.checkboxContainer .customCheckbox:after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.file-input {
  display: block;
  border: none;
  width: 90%;
  font-size: 0.875rem;
  color: #6b7280;
}

.file-input::file-selector-button {
  padding: 0.5rem 1rem;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #502d7f;
  background-color: #dec4ff;
  cursor: pointer;
}

.file-input::file-selector-button:hover {
  background-color: #ad94cf;
}

.file-input::-webkit-file-upload-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: #dec4ff;
  color: #502d7f;
  cursor: pointer;
}

.file-input::-webkit-file-upload-button:hover {
  background-color: #ad94cf;
}

/* Popup Page */
.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stays in place */
  z-index: 1; /* Sits on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.7); /* Black with opacity */
  display: flex; /* Use flexbox to center content */
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fefefe;
  text-align: left;
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #888;
  width: 80%; /* Adjust as needed */
  max-width: 500px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
}

.popup-close-button {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Add animation for opening the popup */
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
