@font-face {
    font-family: PPNeueMontrealMono;
    src: url("/static/font/otf/PPNeueMontrealMono-Medium.otf") format("opentype");
}

/* @font-face { */
/*     font-family: PPNeueMontrealMono; */
/*     font-weight: bold; */
/*     src: url("/static/font/otf/PPNeueMontrealMono-Bold.otf") format("opentype"); */
/* } */

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  --light: hsl(220, 50%, 90%);
  /* --primary: hsl(255, 30%, 55%); */
  --primary: #00fd15;
  --focus: hsl(210, 90%, 50%);
  --border-color: hsla(0, 0%, 100%, .2);
  --global-background: hsl(220, 25%, 10%);
  --background: linear-gradient(to right, hsl(210, 30%, 20%), hsl(255, 30%, 25%));
  --shadow-1: hsla(236, 50%, 50%, .3);
  --shadow-2: hsla(236, 50%, 50%, .4);

  font-family: "PPNeueMontrealMono";
  color: var(--light);
  background: var(--global-background);
}

#grid-container {
  display: grid;
  grid-template-rows: 5em calc(100vh - 5em);
  grid-template-columns: auto;
  gap: 0 0;
  grid-template-areas:
  "header "
  "main-content";
}

header {
  grid-area: header;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: end;
  width: 100%;
  /* box-shadow: 0 1px 4px rgb(146 161 176 / 15%); */
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
}

.navbar .menu-items {
  display: flex;
}

.navbar .nav-container li {
  list-style: none;
}

.navbar .nav-container a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 2rem;
}

.navbar .nav-container a:hover{
    font-weight: bolder;
}

.nav-container {
  display: block;
  position: relative;
  height: 60px;
}

.nav-container .checkbox {
  position: absolute;
  display: block;
  height: 26px;
  width: 32px;
  top: 17px;
  left: 10rem;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.nav-container .hamburger-lines {
  display: block;
  height: 26px;
  width: 32px;
  position: absolute;
  top: 17px;
  left: 10rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-container .hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: var(--primary);
}

.nav-container .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.2s ease-in-out;
}

.nav-container .hamburger-lines .line2 {
  transition: transform 0.1s ease-in-out;
}

.nav-container .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.2s ease-in-out;
}

.navbar .menu-items {
  display: flex;
  flex-direction: column;
  align-items: end;
  position: relative;
  top: 7em;
  left: -4em;
  transform: translateY(-50em);
  opacity: 0;
  transition: transform 500ms ease 0ms;
}

.navbar .menu-items li {
  margin-bottom: 1.2rem;
  font-size: 2rem;
  font-weight: 500;
}

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateY(0);
  opacity: 1;
  transition: transform 500ms ease 0ms;
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

#main-content {
  grid-area: main-content;
}


a,
a:link {
  font-family: inherit;
  text-decoration: none;
}

a:focus {
  outline: none;
}

button::-moz-focus-inner {
  border: 0;
}


/* box */
.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* .box:not(:first-child) { */
/*   height: 45rem; */
/* } */

.box-title {
  font-size: 7rem;
  font-weight: normal;
  letter-spacing: .8rem;
  margin-bottom: 2.6rem;
}

.box-title::first-letter {
  color: var(--primary);
}

.box-p,
.box-info,
.box-note {
  font-size: 1.6rem;
}

.font-lg {
  font-size: 3rem;
}

.mt-4 {
  margin-top: 4rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.box-note {
  line-height: 2;
}

/*poem*/

blockquote {
  margin-bottom: 2rem;
}

blockquote p::before {
  content: '\201C';
}
blockquote p::after {
  content: '\201D';
}

/* poem form */

.poem-wrapper form > *:not(:last-child) {
  margin-bottom: 2rem;
}

input {
  font-size: 1.6rem;
  color: var(--primary);
  background: none;
  border: none;
  border-bottom: 2px dashed var(--light);
}

/*poem outro*/

.outro-wrapper > *:not(:last-child){
  margin-bottom: 2rem;
}


/* modal */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;

  display: none;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;

  /* --m-background is set as inline style */
  background: var(--m-background);
}

/* using :target */
/*
when users will click/enter button(link) browser will add a #id in a url and when that happens we'll show our users the modal that contains that id.
*/
.modal-container:target {
  display: flex;
}

.modal {
  width: 60rem;
  padding: 2rem;
  border-radius: .8rem;

  color: var(--light);
  background: var(--background);
  box-shadow: var(--m-shadow, .4rem .4rem 10.2rem .2rem) var(--shadow-1);
  position: relative;

  overflow: scroll;
}

.modal-title {
  padding: 0 2rem;
  font-size: 3.2rem;
}

.modal-text {
  padding: 0 2rem;
  /* margin-top: 2rem; */

  font-size: 1.6rem;
  line-height: 2;
}

.modal-btn {
  margin-top: 4rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--border-color);
  border-radius: 100rem;

  color: inherit;
  background: transparent;
  font-size: 1.4rem;
  font-family: inherit;
  letter-spacing: .2rem;

  transition: .2s;
  cursor: pointer;
}

.modal-btn:nth-of-type(1) {
  margin-right: 1rem;
}

.modal-btn:hover,
.modal-btn:focus {
  background: var(--focus);
  border-color: var(--focus);
  transform: translateY(-.2rem);
}

/* image grid */

#image_grid_wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  justify-content: space-between;
}

.column {
  flex: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  padding: 2px;
  vertical-align: middle;
  width: 100%;
  min-width: 50px;
  transition: transform .2s;
}

.column img:hover {
  transform: scale(1.2);
}

.candidate {
  border: 2px solid var(--focus);
}

#error-msg {
  display: none;
  align-self: end;
  color: Tomato;
  font-size: 18px;
  margin-bottom: 8px;
}

.show {
  display: flex !important;
}

.bg-img {
  grid-area: 1/1/2/2;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}
/* banner */

#banner {
  display: none;

  font-size: 100px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;
}

#banner:target {
  display: grid;
}

#banner a {
  position: absolute;
  top: 10%;
  left: 75%;
}

/* link-... */
.link-1 {
  font-size: 1.8rem;

  color: var(--light);
  background: var(--background);
  box-shadow: .4rem .4rem 2.4rem .2rem var(--shadow-1);
  border: none;
  border-radius: 100rem;
  padding: 1.4rem 3.2rem;

  transition: .2s;
}

.link-1:hover,
.link-1:focus {
  transform: translateY(-.2rem);
  box-shadow: 0 0 4.4rem .2rem var(--shadow-2);
}

.link-1:focus {
  box-shadow:
    0 0 4.4rem .2rem var(--shadow-2),
    0 0 0 .4rem var(--global-background),
    0 0 0 .5rem var(--focus);
}

.link-2 {
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--border-color);
  border-radius: 100rem;

  color: inherit;
  font-size: 2.2rem;

  position: absolute;
  top: 2rem;
  right: 2rem;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: .2s;
}

.link-2::before {
  content: '×';

  transform: translateY(-.1rem);
}

.link-2:hover,
.link-2:focus {
  background: var(--focus);
  border-color: var(--focus);
  transform: translateY(-.2rem);
}

.abs-site-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  color: hsla(0, 0%, 1000%, .6);
  font-size: 1.6rem;
}

footer {
  position: fixed;
  bottom: 3em;
  left: 10%;
  color: var(--primary);
  font-size: 1.4rem;
}

footer a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}
