* {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  color: white;
  font-family: sans-serif;
  --default-font-size: 16px;
  font-size: var(--default-font-size);
  -webkit-text-size-adjust : 100%;
  background: #F02137 fixed linear-gradient(#F02137, #FF9200)
}

h1 {
  margin-top: 78px;
}

h2 {
  margin-top: 56px;
}

#banner {
  margin: 60px auto 0 auto;
}

a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
}

ul#media-icons {
  display: inline-block;
  list-style-type: none;
  margin: 54px auto 0 auto;
  padding: 0;
  overflow: hidden;
}

#media-icons li {
  display: inline-block;
  margin: 0 11px;
}

footer {
  margin-top: 10px;
  margin-bottom: 66px;
  font-family: "HelveticaNeue-Light", sans-serif;
  font-size: 13px;
}

#media-icons a {
  opacity:  1;
	transition: opacity 0.2s;
}

#media-icons a:hover {
  opacity:  0.8;
	transition: opacity 0.2s;
}

.mandala-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mandala {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-gap: var(--cell-spacing);
  position: relative;
}

.mandala-cell {
  box-sizing: border-box;
  border-style: solid;
  border-color: white;
  /* background-color: rgba(255, 255, 255, 0.5); */
  overflow: hidden ;
  max-width: 300px;
  max-height: 300px;
  --mandala-size: calc(100vmin - var(--minimum-inset-to-screen) * 2);
  --size: calc( ( var(--mandala-size) - var(--cell-spacing) * 2 ) / 3 );
  width: var(--size);
  height: var(--size);
  
}

@media (max-width: 768px) {
  .mandala {
    --minimum-inset-to-screen: 6px;
    --cell-spacing: 4px;
  }

  .mandala-cell {
    border-width: 1px;
    border-radius: 5px;
  }
}

@media (min-width: 769px) {
  .mandala {
    --minimum-inset-to-screen: 52px;
    --cell-spacing: 11px;
  }

  .mandala-cell {
    border-width: 2px;
    border-radius: 8px;
  }
}

.parent > a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.parent {
  transition: background-color 0.2s 0s ease-out;
}

.parent:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.parent:not(.appstore) > a > img {
  display: block;
  --edge-cell-padding: calc(var(--size) * 0.2);
  --edge-cell-img-max-size: calc(100% - var(--edge-cell-padding) * 2);
  max-width: var(--edge-cell-img-max-size);
  max-height: var(--edge-cell-img-max-size);
}

/* whatismandalart */
#whatismandalart {
  --edge-cell-padding: calc(var(--size) * 0.01);
  --edge-cell-img-max-size: calc(100% - var(--edge-cell-padding) * 2);
  max-width: var(--edge-cell-img-max-size);
  max-height: var(--edge-cell-img-max-size);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(var(--size) * 0.05);
}

.center img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.appstore img {
  max-width: calc(100% - ((100% * (40 / 135)) * 0.1 * 2));
}

#copyright {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: var(--copyright-font-size);
  font-weight: 300;
}


@media (min-width: 769px) {
  #copyright {
    --copyright-font-size: 12px;
    top: calc(100% + var(--minimum-inset-to-screen) * 0.5 - var(--copyright-font-size) * 0.5);
  }
}

@media (max-width: 768px) {
  #copyright {
    --copyright-font-size: 8px;
    top: calc(100% + var(--minimum-inset-to-screen) * 2);
  }
}

#main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#greetings p {
  margin-bottom: 1em;
}
