/* Custom CSS for Thomas Saint Thomas site */

html, body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  background-color: #1a1a1a; /* Dark background */
  color: #f0f0f0; /* Light text color for contrast */
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.container {
  width: 90vw;
  height: 90vh;
  max-width: 800px;
  max-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 45px; /* Increased gap for easier hovering */
  width: 100%;
  height: 100%;
  max-width: 700px;
  max-height: 700px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  box-sizing: border-box;
  border: 3px solid transparent; /* Transparent border by default */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Album covers */
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px; /* Slightly smaller radius to account for parent border */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  display: block; /* Ensures no extra space */
}

/* Hover effect for album covers */
.grid-item[id^="album"]:hover {
  border-color: #8cc0ff; /* Lighter blue border on hover */
  box-shadow: 0 0 15px rgba(140, 192, 255, 0.5);
}

.grid-item:hover img {
  filter: brightness(1.2);
}

/* Class for the currently selected album */
.selected-album {
  border-color: #8cc0ff; /* Lighter blue for selected state */
  box-shadow: 0 0 15px rgba(140, 192, 255, 0.5);
}

.selected-album img {
  filter: brightness(1.2);
}

/* Center info cell */
.info-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222;
  border-radius: 4px;
  padding: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: auto;
}

/* Album info styling */
.album-info {
  width: 100%;
}

.hidden {
  display: none;
}

p {
  margin: 5px 0;
  font-size: 14px;
  text-align: left;
  line-height: 1.5;
}

a {
  color: #4a90e2; /* Blue link color */
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #75b0ff;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid {
    gap: 8px;
  }
  
  p {
    font-size: 12px;
    line-height: 1.4;
  }
}
