@font-face {
    font-family: 'Barlow Light';
    src: url('./assets/Barlow-ExtraLight.otf') format('opentype');
}
@font-face {
    font-family: 'Barlow';
    src: url('./assets/Barlow-Light.otf') format('opentype');
}
*{
  margin: 0;
  padding: 0;  
}
html{
  font-family: Poppins;
  color: #f0f0f0;
}
h1{
  color: white;
}

.card{
  margin: 0 auto;
  max-height: 85%;
  padding: 2em;
  width: 400px;
  background: rgb(0, 6, 18);
  text-align: center;
  border-radius: 20px;
  position: relative;
  transition: transform 0.3s ease
}

@property --angle{
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
--root {
  --title-padding: 100px;
}


.card::after, .card::before{
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), #005e7e, #880088, #3300aa, #005e7e);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 20px;
  animation: 3s spin linear infinite;
}
.card::before{
  filter: blur(1.5rem);
  opacity: 0.5;
}

@keyframes spin{
  from{
    --angle: 0deg;
  }
  to{
    --angle: 360deg;
  }
}
textarea, input {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  color: white;
  /* grayish background color */
  background-color: #000000;
  background-image: url('./assets/bg.jpg');
  background-size: cover;
  background-repeat: repeat-x;
  background-position: 0 50%;
}


  
#heading {
    font-family: "Barlow Light", sans-serif, monospace;
    margin-top: 30px;
    margin-bottom: calc(30px + 32px); 
}


.input-cont {
  width: 100%;
  display: flex;
  gap: 10px;
}

.input-cont button {
  font-family: "Barlow", sans-serif, monospace;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 16px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease; 
}
.input-cont button:hover {
  transform: scale(1.3);
  background-color: rgb(104, 104, 104);
}
  
  .card input {
    font-family: "Barlow", sans-serif, monospace;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    outline: none;
    color: white;
  }
  
  .button-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  
  .button-row button {
    font-family: "Barlow", sans-serif, monospace;
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
    transition: transform 0.3s ease, background 0.3s ease; 
  }
  .button-row button:hover {
    transform: scale(1.075);
  }

  
  .button-row button:hover {
    background: rgba(255, 255, 255, 0.15);
  }

.hidden {
  display: none !important;
}
.visible {
  display: block !important;
}
#messages {
  margin-top: 20px;
  margin-bottom: 20px;
  max-height: 40vh; 
  overflow-y: auto;
  text-align: left;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5); 
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

  scrollbar-width: none; /* For Firefox */
}

#messages::-webkit-scrollbar {
  display: none; /* For WebKit-based browsers */
}


.message {
  max-width: 70%; 
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-family: "Barlow", sans-serif, monospace;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.user {
  background: rgba(0, 123, 255, 0.8); 
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.message.bot {
  background: rgba(255, 255, 255, 0.1); 
  color: white;
  align-self: flex-start; 
  margin-right: auto;
}
#messages {
  display: flex;
  flex-direction: column; 
}
#image-viewer {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  margin: auto;
  display: block;
  width: 60%;
  max-width: 900px;
}
.modal-content { 
  animation-name: zoom;
  animation-duration: 0.6s;
}
.image-container {
  max-width: 205px;
  height: 205px;
  margin-bottom: 10px;
}
.pdf-container {
  cursor: pointer;
  font-family: "Barlow";
  margin-bottom: 10px;
  display: flex;
}
.pdf-container a {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
.pdf-container a i {
  margin-left: 8px;
  font-size: 20px;
}
@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}
#image-viewer .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}
#image-viewer .close:hover,
#image-viewer .close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px){
  .modal-content {
      width: 100%;
  }
}

.image {
  cursor: pointer;
  margin-right: 2.5px;
  height: 100px;
  width: 100px;
}

/* fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* fade-in */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}
.fade-in-longer {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: white;
  border: none;
  font-size: 18px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 2;
}

#prev-btn {
  left: 10px;
}

#next-btn {
  right: 10px;
}

.nav-btn:hover {
  background-color: rgb(104, 104, 104);
  color: black;
}

.image-counter {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 2;
}