/* https://www.w3schools.com/Css/css_grid_12column.asp */

:root {
  --a: rgb(17, 0, 43);
  --b: rgb(242, 227, 217);
  --c: #472f20;
  --light: rgb(218, 227, 243);
  --white-a: rgba(255, 255, 255, 0.85);

}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--light);
  color: var(--c);
  font-family: 'Monaco', Courier, monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  margin: auto;
}

body.modal-open {
  overflow: hidden;
}

footer {
  background-color: var(--c);
  color: var(--b);
  margin-top: 100px;
  text-align: center;
  padding: 10px;
}

footer a {
  color: var(--b);
  z-index: 3;
}

h1 {
  color: var(--c);
}

.grid-container {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(12, [col-start] 1fr);
  gap: 20px;
  min-height: calc(100vh - 140px);
}


.basic {
  width: 100%;
  margin-right: 5vw;
  padding: 2em;
  background-color: var(--b);
  position: relative;
  z-index: 0;
  background-image: url("/squared-paper-texture.jpg");
  background-size: 800px;
  border-radius: 0.5em;
}

.trans-box {
  background-color: var(--white-a);
  padding: 2em;
  border-radius: .5em;
  /* blur, spread */
  box-shadow: 0 0 2em .8em var(--white-a);
}

#main-content {
  grid-column: 3 / 13;
  margin-right: 40px;
  background-color: rgba(0, 0, 0, 0);
}

#corner {
  position: fixed;
  bottom: 0px;
  right: 0px;
  z-index: 6;
}

.gallery img {
  width: 100px;
}

.big-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.polaroid{
  padding: 20px;
  background-color: var(--white-a);
  max-width: 440px;
}

.polaroid img {
  width: 400px;
  height: 400px;
  object-fit: cover;
}

#back-to-top {
  position: fixed;
  left: 20px;
  bottom: 50px;
  z-index: 2;
}


/* on screens betwwen 900-1400px */
@media screen and (min-width: 900px) and (max-width: 1200px) {
  #main-content {
    grid-column: 4 / 12;
  }
}


/* on screens less than 900px */
@media screen and (max-width: 900px) {
  #main-content {
    grid-column: 3 / 13;
    margin-right: 20px;
  }

  .polaroid img {
    width: 100%;
    height: auto;
  }
  /* .basic img {
    width: 100%;
    height: auto;
  } */
}
