body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Takes up full screen height */
  margin: 0;
}
main {
  flex: 1;
  margin-top: 60px;
}
.script-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}
.script {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 300px;
  position: relative;
}

.script-info {
  padding: 15px;
}
.script-title {
  font-size: 18px;
  margin: 0;
  color: #333;
}
.script-description {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
}
.script-socials {
  font-size: 14px;
  color: #000;
  position: absolute;
  bottom: 0;
  right: 12px;
  user-select:none;
}
.script-preview {
  font-family: monospace;
  background-color: #000000;
  color: green;
  font-size: 9px;
  user-select:none;
}

h3 {
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #6264a7;
}

.otherh3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

header {
  padding: 1px 10px;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

footer {
  padding: 1px 10px;
  background: white;
  font-size: 0.9rem;
  color: #aaa;
}

input {
  font-family: 'Segoe UI', Roboto, sans-serif;
}

.modal {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: center;
  width: 300px;
  display: none;
}
  
.modal div {
  margin: 0;
  border: none;
}

.modal button {
  padding: 10px 16px;
  background-color: #6264a7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.modal input {
  width: 100%;
}

.modal textarea {
  width: 100%;
  resize: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* ensure it's on top */
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top: 6px solid #6264a7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

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