@import './reset.css';
@import './variables.css';
@import './typography.css';
@import './card.css';


html {
  background: var(--primary-0);
  background: linear-gradient(180deg,var(--primary-1) 0%, var(--primary-2) 50%, var(--primary-3) 100%) no-repeat center center fixed;
  background-size: cover;

  font-family: var(--body);

  &::before {
    content: '';
    background: url(../assets/images/waves.gif) no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    filter: blur(30px);
    opacity: 0.4;
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  html::before {
    opacity: 0;
  }
}

main {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: var(--white);
}

#mainHeader, main > footer {
  text-align: center;
  background: var(--primary-2);
  color: var(--white);
  padding: 5px 0;
}

section {
  margin: var(--gap);
  outline: solid 1px var(--primary-2);
  border-radius: var(--radius);
  padding: var(--gap);
  
  h2 {
    margin-bottom: var(--gap);
  }
}

#favourites {
  .fav svg {
    fill: var(--yellow-1);
  }
}

#beaches {
  min-height: 100vh;
}

#map {
  margin: var(--gap) 0;
  height: 300px;
}

@media screen and (max-width: 800px) {
  :root {
    --gap: 20px
  }
  main {
    background: transparent;
  }
  section {
    background: var(--white);
  }
  main > section {
    margin-left: calc(var(--gap) * 1.5);
    margin-right: calc(var(--gap) * 1.5);
  }
}
#mainFooter {
  background: var(--primary-3);
  color: var(--white);
  padding: 40px var(--gap);
  margin-top: 40px;
  border-top: solid 5px var(--primary-2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.footer-section h4 {
  margin-bottom: 15px;
  color: var(--primary-1);
  font-size: 16px;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }

.footer-section a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
}

.footer-section a:hover { text-decoration: underline; }

.footer-section button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-weight: 600;
}

.footer-section button:hover { background: var(--primary-2); }

.footer-section button.danger-btn {
  border-color: var(--red-0);
  color: var(--red-0);
}

.footer-section button.danger-btn:hover {
  background: var(--red-1);
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
}
