@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/roboto-condensed-v27-latin-regular.woff2')
    format('woff2');
}
/* roboto-condensed-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/roboto-condensed-v27-latin-700.woff2')
    format('woff2');
}

html {
  --black_strong: #000000;
  --black_light: #191717;
  --black_transparent: rgba(0, 0, 0, 0.8);
  --grey_strong: #312c2c;
  --white: #ffffff;
  --white_cream: #e6f5e6;
  --yellow: #fdd746;
  --green: #006b62;
  --grey_light: #9d9d9d;
  --heightPreviewWindow: 95vh;
  --widthPreviewWindow: 95vw;
}

body {
  background-color: var(--white);
  margin: 0;
  font-family: 'Roboto Condensed', sans-serif;
  overflow-x: hidden;
  cursor: default;
}

h1 {
  margin: 0 auto 0 0;
  font-size: 5rem;
  color: var(--white);
}

h2 {
  color: var(--white_cream);
  font-size: 1.8rem;
  margin-left: 0;
  margin-bottom: 0;
}

h3 {
  color: var(--black_strong);
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 3rem 0;
}

h3::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 0.15rem;
  background-color: var(--yellow);
  left: 0;
  margin-top: 2.2rem;
  z-index: 1;
}

h4 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--black_strong);
  text-transform: uppercase;
  font-weight: bolder;
}

section {
  padding: 1rem;
}

h3 + p {
  font-size: 1.1rem;
}

#loader {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background-color: var(--green);
  z-index: 20;
}

#navArrowTop {
  position: fixed;
  bottom: 10px;
  right: 5px;
  z-index: 10;
  height: 30px;
  cursor: pointer;
  /* transition: 100ms;
  -webkit-transition: 100ms;
  -moz-transition: 100ms;
  -ms-transition: 100ms;
  -o-transition: 100ms; */
}

#navArrowTop:hover {
  transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -o-transform: scale(1.2);
}

.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

.imagesContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  justify-content: space-evenly;
}

.imagesContainer > img {
  aspect-ratio: 3/2;
  width: 8rem;
  -o-object-fit: contain;
  object-fit: contain;
}

.technoList > img {
  aspect-ratio: 3/2;
  width: 2rem;
  -o-object-fit: contain;
  object-fit: contain;
}

#projectList {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
}

.card,
.formContainer {
  background-color: var(--white);
  flex-grow: 1;
  flex-shrink: 1;
  color: var(--black_strong);
  display: flex;
  box-shadow: none;
  height: 25rem;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.card {
  min-width: 16rem;
  max-width: 20rem;
  flex-direction: column;
  flex-basis: 40%;
  cursor: pointer;
}

.cardDescription {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cardDescription > a {
  color: var(--white);
  font-size: 1.1rem;
  padding: 0.1rem 0.9rem;
  width: -webkit-min-content;
  width: -moz-min-content;
  width: min-content;
}

.cardDescription p:first-of-type {
  font-size: 1.1rem;
}

.cardDescription p:last-of-type {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0;
}

.card:hover {
  transform: scale(1.01);
  -webkit-transform: scale(1.01);
  -moz-transform: scale(1.01);
  -ms-transform: scale(1.01);
  -o-transform: scale(1.01);
}

.enabledLink {
  background-color: var(--green);
}

.disabledLink {
  background-color: var(--green);
  opacity: 0.5;
}

figure {
  width: 100%;
  margin: 0;
  height: 40%;
  padding: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: flex;
  justify-content: center;
  position: relative;
}

figure > img {
  width: 100%;
  position: absolute;
}

.technoListContainer {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: flex-end;
}

.technoList {
  display: flex;
  padding: 0.3rem;
  flex-wrap: wrap;
  border: 0.05rem solid var(--grey_light);
  background-color: var(--white);
}

.previewBackground {
  background-color: var(--black_transparent);
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  top: 0;
  z-index: 10;
  width: 100%;
}

.previewWindow {
  position: fixed;
  display: flex;
  height: var(--heightPreviewWindow);
  top: calc((100vh - var(--heightPreviewWindow)) / 2);
  width: var(--widthPreviewWindow);
  background-color: var(--grey_strong);
}

.closingCross {
  position: absolute;
  right: -0.4rem;
  top: -0.4rem;
  height: 1.6rem;
  width: 1.6rem;
  opacity: 0.8;
  cursor: pointer;
}

.closingCross:hover {
  opacity: 1;
  transition: 100ms ease-in-out;
  -webkit-transition: 100ms ease-in-out;
  -moz-transition: 100ms ease-in-out;
  -ms-transition: 100ms ease-in-out;
  -o-transition: 100ms ease-in-out;
}

#previewContainer {
  display: flex;
  flex-direction: row;
  background-color: var(--black_light);
  align-items: center;
  flex-shrink: 0;
  flex: 1;
}

.switchPreview {
  flex-basis: 6%;
  margin: 0 1%;
  opacity: 0.8;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center;
  object-position: center;
}

.switchPreview:hover {
  opacity: 1;
  transition: 100ms ease-in-out;
  -webkit-transition: 100ms ease-in-out;
  -moz-transition: 100ms ease-in-out;
  -ms-transition: 100ms ease-in-out;
  -o-transition: 100ms ease-in-out;
}

.previewImage {
  flex-basis: 100%;
  background-color: var(--black_light);
}

.previewSummary {
  display: flex;
  flex: 0.5;
  flex-direction: column;
  padding: 0 1rem;
}

.previewSummary h2 {
  color: var(--white);
  text-align: center;
}

.previewSummary p {
  color: var(--white);
  font-size: 1rem;
  margin-top: 1rem;
}

.previewSummary div:nth-child(2) {
  flex: 1;
  display: flex;
  margin-top: 1rem;
  align-items: baseline;
}

header {
  padding: 7rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    119deg,
    var(--green),
    81%,
    rgba(253, 215, 70, 0.85)
  );
  box-shadow: rgba(0, 0, 0, 0.6) 0px 5px 15px;
}

.socialContainer > a > img {
  display: block;
  height: 2rem;
}

.socialContainer > a > img:hover {
  transform: scale(1.15);
  -webkit-transform: scale(1.15);
  -moz-transform: scale(1.15);
  -ms-transform: scale(1.15);
  -o-transform: scale(1.15);
  transition: 200ms ease-in-out;
  -webkit-transition: 200ms ease-in-out;
  -moz-transition: 200ms ease-in-out;
  -ms-transition: 200ms ease-in-out;
  -o-transition: 200ms ease-in-out;
}

.socialContainer {
  display: flex;
  align-self: flex-end;
  margin-top: 1rem;
  gap: 0.8rem;
}

nav {
  position: fixed;
  display: block;
  width: 11rem;
  z-index: 8;
  top: 1rem;
  left: 100%;
}

#navToggle {
  display: flex;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

#navToggle:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

#navToggle > div {
  width: 2rem;
  height: 0.32rem;
  background-color: var(--black_strong);
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style-type: none;
  background-color: var(--green);
  border: 0.01rem solid var(--black_strong);
  text-align: center;
}

a {
  display: block;
  text-decoration: none;
  padding: 0.8rem 0rem;
  color: var(--white);
}

.formContainer {
  width: 60%;
  margin: 1rem auto 2rem auto;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 1rem;
  flex: 1;
  margin: 1.2rem;
}

form > label {
  color: var(--black_strong);
}

form :nth-child(even) {
  font-family: 'Oxygen', sans-serif;
}

form > input {
  height: 2rem;
  font-size: 1rem;
}

form > textarea {
  font-size: 1rem;
  resize: none;
}

form > input[type='submit'] {
  align-self: center;
  background-color: var(--green);
  padding: 0.5rem 2rem;
  color: var(--white);
  margin-top: 0.5rem;
  border: none;
  font-size: 1rem;
  height: auto;
  cursor: pointer;
}

.modalContainer {
  position: fixed;
  display: flex;
  flex-direction: column;
  z-index: 8;
  top: 45%;
  left: 50%;
  width: 20rem;
  height: auto;
  background-color: var(--white);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  max-width: 100%;
}

.modalTitleContainer {
  background-color: var(--green);
  color: var(--white);
  font-size: 2rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--white);
  border-bottom-width: 0;
}

.modalMessageContainer {
  padding: 0.5rem 0.7rem 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--green);
  border-top-width: 0;
}

.modalContainer button {
  align-self: center;
  background-color: var(--green);
  color: var(--white);
  border: none;
  padding: 0.5rem 2rem;
  margin-top: 0.4rem;
  font-size: 1rem;
}

@media screen and (orientation: portrait) and (max-width: 960px) {
  html {
    font-size: 15px;
  }
  .card {
    background-color: var(--red);
    max-width: 100%;
  }
  .formContainer {
    width: 100%;
  }
  .previewSummary {
    flex-grow: 0;
    flex: 0;
  }
  .previewWindow {
    flex-direction: column-reverse;
    justify-content: start;
  }
  .previewImage {
    order: -1;
    margin-top: 2.5%;
    height: 90%;
    flex-basis: 100%;
  }
  #previewContainer {
    flex-wrap: wrap;
    justify-content: space-evenly;
  }
  .switchPreview {
    height: 5%;
  }
  .previewSummary div:nth-child(2) {
    align-items: first baseline;
    padding-bottom: 1rem;
  }
}

@media screen and (orientation: landscape) {
  html {
    font-size: 15px;
  }
  .formContainer {
    width: 100%;
  }
  .switchPreview {
    height: 100%;
  }
  .switchPreview {
    height: 100%;
  }
  .previewImage {
    height: 100%;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1200px) {
  html {
    font-size: 15px;
  }
}

@media screen and (min-width: 1201px) and (max-width: 1366px) {
  html {
    font-size: 16px;
  }
}

@media screen and (min-width: 1367px) and (max-width: 1600px) {
  html {
    font-size: 17px;
  }
}

@media screen and (min-width: 1601px) and (max-width: 1920px) {
  html {
    font-size: 20px;
  }
}

@media screen and (min-width: 1921px) and (max-width: 2560px) {
  html {
    font-size: 30px;
  }
}

@media screen and (min-width: 2561px) {
  html {
    font-size: 40px;
  }
}

@media (max-width: 1080px) and (orientation: landscape) {
  .previewSummary div:nth-child(2) {
    align-items: first baseline;
  }
}
