/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --primary-color: #2AA7FF;
  --hover-color: #2AA7FF;
  --background-color: #f9f9f9;
  --text-color: #333333;
  --accent-color: #ff5a5f;
  --container-width: 800px;
}

nav {
  background-color: white;
  padding: 20px;
  display: flex;
  flex-flow: row nowrap;
  z-index: 20;
}

#word-brand {
  color: var(--accent-color);
  max-width: 450px;
  text-align: center;
  font-size: 3.5rem;
  margin: 20px auto;
  line-height: .85;
  font-family: "Slackey", system-ui;
}

.brand {
  color: var(--accent-color);
  font-size: 1.5rem;
  font-family: "Slackey", system-ui;
  text-decoration: none;
}

#word-brand a {
  text-decoration: none;
  color: var(--accent-color);
}

.blur {
  backdrop-filter: blur(10px);
  display: inline-block;
  padding: 10px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
}

.blur-only {
  backdrop-filter: blur(10px);
}

#lead-in {
  padding-bottom: 0;
  margin: 0;
}

body {
  font-family: "Zain", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.3;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem;
}

.home-container {
  text-align: center;
  padding-top: 1rem;
}

.title {
  color: var(--accent-color);
  font-size: 5.5rem;
  margin: 0 auto;
  line-height: .85;
  font-family: "Slackey", system-ui;
}

.title-number {
  font-size: 8.75rem;
}

h5 {
  margin-bottom: 0;
  margin-top: 5px;
}

.subtitle {
  font-size: 2rem;
  margin: 0;
  padding-bottom: 0;
  color: #555;
}

.intro {
  font-size: 1em;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
}

.song-title {
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 1em;
  line-height: .85;
  font-family: "Slackey", system-ui;;
}

.upload-container {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.photo-upload-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-input {
  margin-bottom: 1.5rem;
}

.photo-preview-container {
  width: 100%;
  max-width: 500px;
  height: 300px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-preview-placeholder {
  color: #aaa;
  font-size: 1rem;
}

.photo-preview {
  max-width: 100%;
  max-height: 100%;
  display: none;
}

.genre-selector {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.genre-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.genre-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
  font-family: inherit;
}

.genre-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(42, 167, 255, 0.2);
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: var(--hover-color);
}

/* Processing state styles */
.processing-container {
  margin-top: 2rem;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.worker-container {
  display: flex;
  background-color: white;
  flex-direction: row;
  border-radius: 10px;
  max-width: 370px;
  border: 1px solid dodgerblue;
  margin: 0 auto;
  margin-top: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}

#working {
  border-radius: 20px;
}

.worker-image {
  width: 125px;
  border-radius: 7%;
  border: 3px solid var(--hover-color);
  margin-right: 20px;
}

.thought-text {
  font-size: 1.5rem;
  width: 100%;
}

/* Gallery styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
}

.blurred {
  filter: blur(15px);
  transform: scale(.9);
}

.gallery-details {
  padding: 1rem;
}

.gallery-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Audio player styles */
.audio-player {
  width: 100%;
  margin-top: 0.5rem;
}

h3 {
  font-weight: bold;
}

.lyrics-content > p{
  padding-bottom: 0;
  font-size: 1.1rem;
}

input[type="file"] {
  display: none;
}

.pages {
  margin-left: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  background-color: white;
}

.table-holder {
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  margin-top: 20px;
}

th {
  border-bottom: 2px solid var(--accent-color);
}

th,
td {
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}