/* color palette */
:root {
  --text-white: #ffffff;
  --bg-white: #ffffff;
  --bg-dark: #343a40;
  --bg-black: #000000;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --primary-color: #007bff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --primary-dark: #0056b3;

  /* Status colors */
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #dc3545;
  --info: #17a2b8;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  color: var(--text-white);
}

/* Background container - fixed and covers the entire viewport */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/bg2.png");
  background-color: #000000;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  filter: brightness(0.3);
}
.danger {
  color: var(--danger);
}
.success {
  color: var(--success);
}
.warning {
  color: var(--warning);
}
.info {
  color: var(--info);
}

.btn, .btn-outline, .btn-success, .btn-info {
  padding: 0.4rem;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  border-radius: 0.4rem;
  text-decoration: none;
  border: 1px solid #4b59b3;
}

.btn {
  background: #4b59b3;
  color: var(--text-white);
  width: 100%;
  display: flex;
}

.btn:hover {
  color: white;
  background: #8798e5;
  cursor: pointer;
  border: 1px solid #8798e5;
}

.btn-outline {
  background: transparent;
  color: #4b59b3;
  width: 100%;
  display: flex;
}

.btn-outline:hover {
  color: white;
  background: #4b59b3;
  cursor: pointer;
  border: 1px solid #4b59b3;
}

.btn-success {
  background: #1a8754;
  color: var(--text-white);
  width: 50%;
}

.btn-info {
  background: transparent;
  color: #4b59b3;
  width: 50%;
}

#scnddiv {
  display: flex; 
  justify-content: space-between; 
  gap: 5px; 
  padding-top: 20px; 
  color: #484e54;
}

/* Hero section */
.hero {
  height: 100%;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-overlay);
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: start;
  max-width: 1100px;
  /* padding: 2rem; */
}

/* Upload button container and animation */

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes ping {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Media queries for responsiveness */
@media (min-width: 1024px) {
  .hero {
    background-color: transparent;
  }
  /* .ghdg{
    display: flex;
    flex-direction: column;
  } */
}

/* start of selected files state style */
#ules {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  margin-top: 3rem;
}

/* start of selected files state style */
.card-container {
  /* display: flex;
  flex-direction: column; */
  align-items: start;
  justify-content: start;
  border-radius: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 3rem;
}

.rty-card {
  width: 90%;
  height: 100%;
  padding: 1.4rem;
  margin: 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #1e1e1e67;
  border-radius: 0.4rem;
  box-shadow: 0 2px 10px var(--shadow-light);
  color: #484e54;
}

@media (min-width: 774px) {
  .ghdg{
    display: flex;
    flex-direction: column;
    gap: 0.5rem
  }
  .btn-success {
    width: 100%;
  }
  
  .btn-info {
    width: 100%;
  }
}

@media (max-width: 429px) {
  .ghdg{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .btn-success {
    width: 100%;
  }
  
  .btn-info {
    width: 100%;
  }

  
}

@media (min-width: 915px) {
  .ghdg{
    display: block;
    /* flex-direction: column; */
  }
  .btn-success {
    width: 50%;
  }
  
  .btn-info {
    width: 50%;
  }
}

@media screen and (max-width: 773px) {
  .hero {
    overflow-y: auto;
    padding-bottom: 15px;
    
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-overlay);
    overflow: hidden;
    
  }
  #ules {
    flex-direction: column;
    margin-top: 3rem;
    /* height: 80vh; */
  }

  .rty-card {
    width: 90%;
    height: 100%;
    padding: 1.4rem;
    margin: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: #1e1e1e67;
    border-radius: 0.4rem;
    box-shadow: 0 2px 10px var(--shadow-light);
    color: #484e54;
  }

  .card-container {
    /* display: flex;
    flex-direction: column; */
    align-items: start;
    justify-content: start;
    border-radius: 1rem;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 2rem;
    padding-left: 0rem;
  }
  #scnddiv {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
}


@media screen and (max-width: 513px) {
  .hero-content {
    padding: 0rem;
  }
}

/* end of uploaded files state style */
  .rty-card {
      /* Your existing styles */
      position: relative; /* Needed for absolute positioning of children */
      overflow: hidden; /* Contain all elements */
  }


/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #1e1e1e;
  border-radius: 0.5rem;
  width: 100%;
  min-width: 40vw;
  max-width: 500px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s;
  color: #484e54;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  /* border-bottom: 1px solid #dee2e6; */
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #343a40;
}

.close-modal {
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: 50%;
  transition: color var(--transition-speed),
    background-color var(--transition-speed);
}

.close-modal:hover {
  color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  /* padding: 1rem 1.5rem; */
}

button {
  width: 100%;
  padding: 0.75rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
}
button:hover {
  background-color: #444;
}