/* crimson-text-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/crimson-text-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* crimson-text-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/crimson-text-v19-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* crimson-text-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/crimson-text-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Box Sizing Reset */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

.hidden {
  display: none;
  visibility: hidden;
}

/* General Body Styling */
body {
  background-color: #f5ebcf;
  margin: 0;
  padding: 0;
  height: 100vh;
  color: #333;
  font-family: 'Crimson Text',serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-column-gap: 40px;
  max-width: 1340px;
  margin: 0 auto;
}

#profileaside {
  margin: 40px;
  padding: 20px;
}

#paper {
  position: relative;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 40px;
    padding: 20px;
    width: 100%;
    min-height: 90vh;
}

#milestone {
  text-align: center;
}

.imageframe {
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#milestone-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

h1 {
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 60px;
    border-bottom: 3px solid #333;
}

.question-container {
    margin: 20px 0;
}

.question-text {
    font-size: 20px;
    margin-bottom: 40px;
    font-style: italic;
    font-weight: 700;
}

textarea {
  font-family: 'Crimson Text',serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  width: 100%;
    padding: 0;
    border: 1px solid #fff;
    outline: 0;
    resize: vertical;
    min-height: 500px;
    margin-bottom: 20px;
  transition: all 0.5s;
}


.button-container {
    text-align: right;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 30px;
    padding: 0 20px 0 0;
}

button {
    font-family: 'Crimson Text',serif;
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    background-color: #42779b;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2e87c3;
}

#error-message {
    color: red;
    font-size: 1rem;
    margin-top: 10px;
}

.progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

#progressText {
  font-size: 12px;
  color: #747474;
  margin: 10px 0 5px 10px;
}

progress[value] {
  /* Reset the default appearance */
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  
  /* Get rid of default border in Firefox. */
  border: none;

  width: 100%;
  height: 12px;
  display: block;
}

progress[value]::-webkit-progress-bar {
  background-color: #f7f7f7;
  box-shadow: 0 0px 2px rgba(0, 0, 0, 0.25) inset;
}

progress[value]::-moz-progress-bar,
progress[value]::-webkit-progress-value {
  background-color: #53a049;
}

/* Loading Spinner */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin-top: 20px;
}

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

/* Profile Styling */
.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.profile-image {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
}

.profile-info {
    font-size: 1.2rem;
    color: #34495e;
}

.profile-info .name {
    font-weight: bold;
    font-size: 1.5rem;
}

.profile-info .email {
    font-size: 1rem;
    color: #7f8c8d;
}

/* Lightbox overlay */
.lightbox {
    display: none; /* Hide lightbox by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Center the image in the lightbox */
.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Make the image responsive and fill the screen while maintaining the aspect ratio */
.lightbox img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image is fully visible */
    object-position: center; /* Centers the image */
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    line-height: 32px;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    font-family: "Arial", sans-serif;
    font-weight: 700;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
