:root
{
    --primary-accent: #226688;
    --primary-background: hsl(0, 0%, 15%);
    --secondary-background: hsl(0, 0%, 30%);
    --primary-text: #ffffff;
    --main-font: 'Helvetica Neue', sans-serif;
    --primary-radius: 15px;
    --secondary-radius: 10px;
    --primary-padding: 20px;
    --primary-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    --primary-border: var(--primary-background) 2px solid;
}

@media (prefers-color-scheme: light)
{
  :root
  {
    --primary-background: hsl(0, 0%, 100%);
    --secondary-background: hsl(0, 0%, 90%);
    --primary-text: hsl(0, 0%, 0%);
  }
}
html
{
  scroll-behavior: smooth;
}

body
{
  margin: 0;
  gap: 30px;
  background-color: var(--primary-background);
  font-family: var(--main-font);
  color: var(--primary-text);
  text-shadow: var(--primary-shadow);
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /*padding: 20px;*/
  padding-top: calc(env(safe-area-inset-top) + var(--primary-padding));
  padding-right: calc(env(safe-area-inset-right) + var(--primary-padding));
  padding-left: calc(env(safe-area-inset-left) + var(--primary-padding));
  text-align: center;
}
.card, .card a
{
    display: flex;
    flex-direction: column;
    place-items: center;
    padding: var(--primary-padding);
    /* place-content: center; */
    gap: 10px;
}
.card, nav
{
    background: var(--secondary-background);
    border-radius: var(--primary-radius);
    box-shadow: var(--primary-shadow);
}

.card h1, .card h2
{
    margin: 0;
    text-align: center;
}
.card a
{
    text-decoration: none;
    color: white;
    padding: var(--primary-padding);
    border-radius: var(--secondary-radius) ;
    background: var(--primary-accent);
    text-align: center;
    transition: all 0.3s ease-in-out;
    
}
.card a:hover
{
  color: var(--primary-accent);
  background: white;
  transform: scale(1.05);
            
}
.card > i
{
  color: white;
  background: var(--primary-accent);
  border-radius: var(--secondary-radius) ;
  font-size: 40px;
  width: 70px;
height: 70px;
place-content: center;
}

.card.review
{
  gap: 10px;
  text-align: center;
  div
  {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
  .reviewer
  {
    width: 100%;
    > div
    {
      display: flex;
      flex-direction: column;
      gap: 0px;
      align-items: flex-start;
      justify-content: center;
      p
      {
        margin: 0;
      }
    }
    img
    {
      width: 50px;
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 1000px;
    }
    p
    {
      margin-right: auto;
    }
    i
    {
      color: var(--primary-accent);
      margin: auto;
      margin-right: 20px;
    }
    .stars i
    {
      color: rgb(235, 210, 73);

        
      margin: unset;
      

    }
  }
}
.horizontal
{
  display: flex;
    flex-wrap: nowrap;
    align-content: center;
    flex-direction: column;
    gap: 10px;
    justify-content: center;

}
.horizontal > .card
{

        flex: 1;
        place-self: unset;
}
.postcards
{
  display: flex;
  gap: 20px;
  flex-direction: column;
}
.postcards > div
    {
        padding: 30px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 50px;
        max-width: 800px;
        align-self: center;
a
{
  transition: all 0.3s ease-in-out;
  color: white;
  text-decoration: none;
}
p
{
  flex: 1;
}
    }
.postcards .image
{
  width: 100%;
  max-width: 300px;
  border-radius: var(--primary-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  flex: 1;

  p
  {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
margin: 0;
font-size: 30px;
    transition: opacity 0.3s ease-in-out;
  }

  img
  {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: filter;
    backface-visibility: hidden;
    transition: all 0.3s ease-in-out;
  }
}
.postcards a:hover
{
  transform: scale(1.05);

    img
    {
      filter: blur(30px);
      -webkit-filter: blur(30px);
    }
    p
    {
      opacity: 1;
    }
}
  
    

@media screen and (min-width: 650px)
{
  .card
  {
    place-self: center;
    min-width: 250px;
    
  }
  .card.review
  {
    max-width: 400px;
  }
  .postcards > div
  {
    flex-direction: row ;
  }
  .postcards > div:nth-child(odd)
    {
        flex-direction: row-reverse;
    }
  .horizontal
  {
    flex-wrap: wrap;
    flex-direction: row;
  }
  .horizontal > .card
  {

    max-width: 300px;
  }
}