/* ?This is where reusable styling of this template will be. 
   !Will contain things like:
   * Button styling
   * Background color styling
   * padding and margin
*/

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

h1::selection,
h2::selection,
h3::selection,
p::selection,
b::selection,
i::selection,
ul::selection,
li::selection {
  color: #111;
  background: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.9rem;
  border-radius: 30px;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary-color);
  color: #000000;
}

.btn-secondary {
  margin: 5px 0;
  background-color: var(--bg-secondary);
  color: var(--bg-primary);
}

.btn-extra {
  background-color: var(--bg-secondary);
  color: var(--bg-primary);
  border-radius: 30px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  position: absolute;
  bottom: 8%;
  left: 8%;
  transform: translate(-20%, 160%);
}

/* add hover to resume button */
.btn-primary:hover {
  background: var(--secondary-color);
}

/* Dark mode toggle */
#switch {
  display: none;
}

.toggle-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.toggle-icons > img {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  width: 30px;
}

.moon {
  transform: rotate(10deg);
}

#switch:checked + .toggle-icons .moon {
  transform: rotate(250deg);
}

#switch:checked + .toggle-icons .sun {
  transform: rotate(100deg);
}

/* Header Container */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 8rem;
  padding: 1rem;
}

.header-container > div {
  margin-top: 1rem;
}

.content-text {
  text-align: center;
  margin: 1.5rem 0;
}

.content-text h2 {
  font-size: 3rem;
  line-height: 1.2;
  /*transition: 0.2s ease-in-out;*/
}

.content-text p {
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 700px;
}

/* Project cards */
.card {
  position: relative;
  padding: 1rem;
  background: var(--card-background);
  color: #ffffff;
  border-radius: 5px;
  /*transition: 0.4s ease-in-out;*/
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0); /* transparent by default */
  transition: background-color 0.3s ease;
  z-index: 5; /* lower than the link */
  border-radius: 5px;
  pointer-events: none; /* <<< THIS IS THE KEY */
}

.card:hover::before {
  background-color: rgba(0, 0, 0, 0.6); /* uniform dark overlay */
}

.card a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0; /* added */
  bottom: 0; /* added */
  width: 100%;
  height: 100%;
  text-decoration: none;
  z-index: 10;
  background-color: #fff;
  opacity: 0;
  pointer-events: auto; /* in case anything disables clicks */
}

.card:hover .project-info {
  opacity: 1;
  z-index: 11;
  pointer-events: none;
}

/*
.card a {
  color: #ffffff;
  transition: 0.25s ease-in-out;
  font-size: 1.1rem;
}

.card a:hover {
  color: var(--primary-color);
}
*/

/* Project Images */

#card_alifeinayear {
  background: url(../assets/project/alifeinayear.png) center center/cover;
}

#card_caleidomar {
  background: url(../assets/project/Caleidomar2.jpg) center center/cover;
}

#card_bubblegum {
  background: url(../assets/project/bubblegum3.jpg) center center/cover;
}

#card_pareidolia {
  background: url(../assets/project/pareidolia1.jpg) center center/cover;
} /* pareidolia1 */

#card_dog {
  background: url(../assets/project/dog.png) center center/cover;
}

#card_moonconquest {
  background: url(../assets/project/moon-conquest.jpg) center center/cover;
}

#card_personal {
  background: url(../assets/project/personal.jpg) center center/cover;
}

#card_art {
  background: url(../assets/project/musicians4.jpg) center center/cover;
}

/* Media Queries */
@media (max-width: 768px) {
  .header-container {
    margin-top: 7rem;
    text-align: center;
  }

  .content-text h2 {
    font-size: 2.5rem;
  }
}
