* {
  box-sizing: border-box;
  user-select: none;
}


body {
  position: relative;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav.topbar {
  background: linear-gradient(90deg, #be0202 0%, #660202 100%);
  display: flex;
  width: 100%;
  padding: 7px;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
}

nav.topbar div {
  display: flex;
  align-items: center;
  cursor: pointer;
}

header.header {
  background: white;
  display: flex;
  width: 100%;
  padding: 10px 40px;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid rgba(224,224,224,0.651);
}

header.header img {
  position: fixed;
  top: 0;
  left: 40px;
}

header.header div span {
  cursor: pointer;
  background-color: #e0e0e0;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

header.header div span:hover {
  background-color: #4a4a4a;
  color: white;
}

main {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: center;
  width: 100%;
}

.backgroundImg {
  position: absolute;
  filter: blur(5px);
  width: 100%;
  height: 100%;
  z-index: -1;
}

.backgroundImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.card-container {
  max-width: 770px;
  margin: 20px auto;
  width: 100%;
}

.navbar {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: #e32524;
  padding: 15px 40px 0 40px;
}

.navtext {
  padding: 25px;
  margin-top: 10px;
}

.nav-link {
  color: white;
  font-size: 15px;
  padding: 7px 15px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  cursor: pointer;
}

.nav-link.active {
  background-color: white;
  color: #e32524;
}

.card-body {
  padding: 0 25px 20px 25px;
}

.card-body > div {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.card-body > div::-webkit-scrollbar {
  display: none;
}

.slide {
  width: 180px;
  position: relative;
  
  height: 220px;
  cursor: pointer;
  display: inline-block;
}

.hrt {
  filter: blur(5px);
}

.slide:hover {
  transform: scale(1.1);
  border: 1px solid rgba(0,0,0,0.231);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-logo {
  position: absolute;
  top: 0;
  height: 50px;
}

.file-logo img {
  height: 100%;
  width: 100%;
  object-fit: fill;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,1), transparent);
  color: white;
  padding: 20px 10px;
  font-size: 14px;
}

.file-name {
  margin-bottom: 5px;
}

.file-time {
  font-size: 12px;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: white;
  padding: 7px 15px;
  cursor: pointer;
  border: 1px solid black;
  font-weight: 600;
  width: fit-content;
  align-self: center;
  margin: 25px 0 40px 0;
}

.warn-cont {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.warn-card {
  border-radius: 3px;
  width: 100%;
  max-width: 550px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  border: 1px solid white;
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}



.warn-header {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background: linear-gradient(90deg, #be0202 0%, #660202 100%);
  display: flex;
  width: 100%;
  padding: 0 13px 5px 13px;
  justify-content: space-between;
  align-items: start;
}

.warn-main-content {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 15px;
}
.triangle {
  color: #ffc107; 
  font-size: 50px;
  margin-right: 10px;
}
.warn-main-text{
  max-width: 300px;
  display: flex;
  justify-self: center;
  align-self: center;
}
.warn-text{
font-size: 24px;
font-weight: 300;
}
form{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  padding: 15px;
}
input{
  width: 100%;
  height: 55px;
  outline: none;
  border: 1px solid #00000027;
  border-radius: 5px;
  padding: 15px;
}
input#email{
  background: #eaecec;
}
input:focus-within{
  border: 1px solid black;
  outline: none;
}
input:focus{
  border: 1px solid black;
  outline: none;
}

#login-btn {
  background-color:#b74446;
  color: white;
  border: none;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 50px;
}



.lds-roller,
.lds-roller div,
.lds-roller div:after {
  box-sizing: border-box;
}
.lds-roller {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 10px 10px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 1.8px;
  height: 1.8px;
  border-radius: 50%;
  background: currentColor;
  margin: -0.9px 0 0 -0.9px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 15.65685px;
  left: 15.65685px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 16.9282px;
  left: 14px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 17.72741px;
  left: 12.07055px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 18px;
  left: 10px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 17.72741px;
  left: 7.92945px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 16.9282px;
  left: 6px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 15.65685px;
  left: 4.34315px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 14px;
  left: 3.0718px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive styles */
@media (max-width: 640px) {
  header.header {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  header.header img {
    position: static;
    width: 50px;
    left: 0;
  }

  header.header div {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  main {
    padding: 10px;
  }

  .card-container {
    margin: 10px auto;
  }

  .navbar {
    padding: 10px 20px 0 20px;
  }

  .navtext {
    padding: 15px;
  }

  .card-body {
    padding: 0 15px 15px 15px;
  }

  .slide {
    width: 150px;
    height: 180px;
  }

  .download-button {
    margin: 15px 0 20px 0;
    padding: 5px 10px;
    font-size: 14px;
  }

  body > div {
    align-items: center;
    padding: 10px;
  }

  h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
  }

  form {
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  form h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  form input,
  form button {
    width: 100%;
    padding: 6px;
    font-size: 14px;
  }
}
