body {
  width: 100%;
  min-height: 100%;
  margin: 0px;
  background: linear-gradient(287.56deg, #00223E 0%, #173F5F 100%);
  height: fit-content ;
  display: flex;
}

.header {
  opacity: 0;
}

:root {
  --width-full: 1200px;
  --width-wide: 770px;
  --width-small: 400px;

  --skill-size: 176px;

  --menu-small: 150px;
  --menu-med: 200px;
  --menu-wide: 250px;
  --menu-font: 36px;

  --links-height: 35px;
  --links-font: 20px;
  --links-offset: 115px;
  --links-width: calc(var(--width-full) - 215px);

  --project-name: 30px;
  --project-info: 20px;
  --project-margin: 30px;
}

@media only screen and (min-width: 1200px) {
  .skill:nth-child(5n+5) {
    margin-right: 0px;
  }
}

@media only screen and (max-width: 1200px) {
  :root {
    --width-full: 900px;
    --width-wide: 570px;
    --width-small: 300px;

    --skill-size: 162.5px;

    --menu-small: 150px;
    --menu-med: 142.5px;
    --menu-wide: 180px;
    --menu-font: 27px;

    --links-height: 35px;
    --links-font: 20px;
    --links-offset: 115px;
    --links-width: calc(var(--width-full) - 215px);

    --project-name: 23px;
    --project-info: 15px;
  }

  .skill:nth-child(1n+1) {
    margin-right: 30px;
  }
  .skill:nth-child(4n+4) {
    margin-right: 0px;
  }
}

@media only screen and (max-width: 900px) {
  :root {
    --width-full: 600px;
    --width-wide: 370px;
    --width-small: 200px;

    --skill-size: 140px;

    --menu-small: 150px;
    --menu-med: 85.5px;
    --menu-wide: 108px;
    --menu-font: 16px;

    --links-height: 35px;
    --links-font: 16px;
    --links-offset: 115px;
    --links-width: calc(var(--width-full) - 215px);

    --project-name: 15px;
    --project-info: 10px;
  }

  .skill:nth-child(1n+1) {
    margin-right: 30px;
  }
  .skill:nth-child(3n+3) {
    margin-right: 0px;
  }
}

@media only screen and (orientation: portrait), (max-width: 600px) {
  :root {
    --width-full: 90vw;
    --width-wide: 90vw;
    --width-small: 90vw;

    --skill-size: calc((90vw - 30px) / 2 - 40px);

    --menu-small: 30vw;
    --menu-med: 15vw;
    --menu-wide: 0vw;
    --menu-font: 14px;

    --links-height: 6vw;
    --links-font: 10px;
    --links-offset: 19.5vw;
    --links-width: 57.5vw;

    --project-name: 24px;
    --project-info: 14px;
    --project-margin: 0px;
  }

  .skill:nth-child(1n+1) {
    margin-right: 30px;
  }
  .skill:nth-child(2n+2) {
    margin-right: 0px;
  }
}

h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: 30px;
  text-transform: uppercase;
  margin: 0px;
}

h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: 25px;
  text-transform: uppercase;
  margin: 0px;
  margin-top: 10px;
}

.panel {
  position: relative;
  float: left;
  margin-bottom: 30px;
  border-radius: 15px;
  background-color: #ffffff;
  padding: 20px;
  font-family: 'Source Sans Pro', sans-serif;
  transition: box-shadow 0.3s linear, transform 0.5s ease;
  font-size: 16px;
}

.panel a {
  color: #000000;
}

.panel a:hover {
  color: #00223E;
}

.hover:hover {
  transform: rotate(7deg);
  box-shadow: 0px 0px 10px #FFFFFF;
}

.hover:hover:nth-child(3n+2) {
  transform: rotate(-5deg);
  box-shadow: 0px 0px 10px #FFFFFF;
}

.hover:hover:nth-child(3n+3) {
  transform: rotate(3deg);
  box-shadow: 0px 0px 10px #FFFFFF;
}

.space {
  margin-right: 30px;
}

.small {
  width: calc(var(--width-small) - 40px);
}

.wide {
  width: calc(var(--width-wide) - 40px);
}

.fullw {
  width: calc(var(--width-full) - 40px);
}

/*  MENU  */

.menu {
  position: fixed;
  width: 100%;
  height: calc(var(--menu-small) / 3 * 2);
  left: 0px;
  top: 0px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: var(--menu-font);
  text-align: center;
  text-transform: uppercase;
  color: #173F5F;
  line-height: calc(var(--menu-small) / 3 * 2);
  background: #ffffff;
  padding-left: calc((100% - var(--width-full)) / 2);
}

.menu img {
  position: relative;
  width: var(--menu-small);
  height: var(--menu-small);
  max-width: 150px;
  max-height: 150px;
  float: left;
  border: 10px solid transparent;
  box-sizing: border-box;
}

.menu div {
  position: relative;
  float: left;
  /*width: calc((var(--width-full) - 150px) * 0.24);*/
  width: var(--menu-wide);
  height: 100px;
  overflow: hidden;
}

.menu > a {
  position: relative;
  float: left;
  /*width: calc((var(--width-full) - 150px) * 0.19);*/
  width: var(--menu-med);
  height: 100px;
  color: rgba(23, 63, 95, 0.5);
  transition: color 0.3s linear;
  text-decoration: none;
  overflow: hidden;
}

.menu > a:hover{
  color: rgba(23, 63, 95, 1);
}

.men-sel {
  text-decoration: underline !important;
  color: #173F5F !important;
}

#menu-links {
  position: absolute;
  width: var(--links-width);
  height: var(--links-height);
  max-height: 35px;
  background-color: rgba(0,0,0,0.5);
  top: calc(var(--menu-small) / 3 * 2);
  margin-left: 50px;
  border-bottom-right-radius: 10px;
  font-size: var(--links-font);
  line-height: var(--links-height);
  color: rgba(255,255,255,0.5);
  text-transform: lowercase;
  transition: color 0.2s linear;
  text-align: left;
  padding-left: var(--links-offset);
}

#menu-links:hover {
  color: rgba(255,255,255,1);
}

#menu-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s linear;
  text-decoration: none;
}

#menu-links:hover a {
  color: rgba(255,255,255,1);
}

#menu-links a:hover {
  color: #FFD233;
}

/*  CONTENT */

.content {
  position: absolute;
  width: var(--width-full);
  min-height: 500px;
  left: 50%;
  top: 200px;
  margin-left: calc(var(--width-full) / 2 * -1);
}

/*  HOME  */

.project {
  position: relative;
  float: left;
  width: var(--width-small);
  height: calc(var(--width-small) + 50px);
  border-radius: 15px;
  background: #ffffff;
  margin-bottom: 30px;
  box-shadow: 0px 0px 0px #ffffff;
  transform: rotate(0deg);
  transition: box-shadow 0.3s linear, transform 0.5s ease;
  overflow: hidden;
}

.project:nth-child(even) {
  margin-left: var(--project-margin);
}

.project:nth-child(4n+2), .project:nth-child(4n+3) {
  width: var(--width-wide);
}

.project:hover {
  transform: rotate(7deg);
  box-shadow: 0px 0px 10px #FFFFFF;
}

.project:hover:nth-child(4n+2) {
  transform: rotate(-2deg);
  box-shadow: 0px 0px 10px #FFFFFF;
}

.project:hover:nth-child(4n+3) {
  transform: rotate(3deg);
  box-shadow: 0px 0px 10px #FFFFFF;
}

.project img {
  position: absolute;
  width: calc(100% - 40px);
  height: calc(100% - 80px);
  left: 20px;
  top: 20px;
  border-radius: 5px;
  overflow: hidden;
  object-fit: cover;
}

.proj-name {
  position: absolute;
  width: 80%;
  height: 40px;
  left: 20px;
  bottom: 20px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: var(--project-name);
  text-transform: uppercase;
  color: #000;
  vertical-align: bottom;
  line-height: 40px;
}

.proj-info {
  position: absolute;
  width: 80%;
  height: 20px;
  left: 20px;
  bottom: 5px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: var(--project-info);
  text-transform: uppercase;
  color: #aaa;
  vertical-align: bottom;
  line-height: 20px;
}

/*  SKILLS  */

.skill {
  /*width: 176px;
  height: 176px;*/
  width: var(--skill-size);
  height: var(--skill-size);
  margin-right: 30px;
}

.skill-icon {
  position: absolute;
  width: calc(100% - 40px);
  height: calc(100% - 80px);
  left: 20px;
  top: 20px;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(315deg, #BDD1E4 0%, #7A7A7A 100%);
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-name {
  position: absolute;
  width: calc(100% - 40px);
  height: 40px;
  left: 20px;
  bottom: 20px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  color: #000;
  vertical-align: bottom;
  line-height: 40px;
}

.skill-since {
  position: absolute;
  width: calc(100% - 40px);
  height: 20px;
  left: 20px;
  bottom: 10px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: 15px;
  text-transform: uppercase;
  color: #aaa;
  vertical-align: bottom;
  line-height: 20px;
}

/*  PROJECT PAGE  */

.project-page-slides {
  position: relative;
  width: calc(var(--width-full) - 40px);
  height: calc((var(--width-full) - 40px) * 0.5625);
  background: #ffffff;
  border-radius: 15px;
  border: #ffffff solid 20px;
  margin-bottom: 30px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  color: #fff;
  transition: opacity 0.2s linear;
  pointer-events: none;
  border-radius: 5px;
  overflow: hidden;
  background-color: #000000;
}

.slide img, .slide video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.curSlide {
  opacity: 1;
  pointer-events: all;
}

.slideBtns button {
  position: absolute;
  width: 75px;
  height: 150px;
  background-color: rgba(255,255,255,0);
  border: 0px;
  top: 50%;
  margin-top: -75px;
  transition: background 0.2s linear;
  cursor: pointer;
}

.project-page-slides:hover .slideBtns button {
  background-color: rgba(255,255,255,0.5);
}

.slideBtns button:hover {
  background-color: rgba(255,255,255,1) !important;
}

/*  CONTACT */

.contact-form {
  position: relative;
  float: left;
  width: var(--width-wide);
  margin-bottom: 30px;
  margin-right: 30px;
  border-radius: 15px;
  background-color: #ffffff;
  padding-bottom: 20px;
}

.contact-form input, .contact-form textarea {
  position: relative;
  float: left;
  width: calc(100% - 40px);
  height: 50px;
  box-sizing: border-box;
  margin-left: 20px;
  margin-top: 20px;
  margin-right: 20px;
  font-size: 30px;
  background-color: #173F5F;
  border: 5px solid #173F5F;
  border-radius: 5px;
  outline: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 30px;
  color: #ffffff;
}

.contact-form textarea {
  height: 200px;
  resize: vertical;
}

.contact-form input[type=submit] {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: 30px;
  text-transform: uppercase;
}

.contact-form input:hover, .contact-form textarea:hover {
  background-color: #173F5F;
  color: #FFD233;
  border: 5px solid #FFD233;
  outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
  background-color: #ffffff;
  color: #173F5F;
  border: 5px solid #173F5F;
  outline: none;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: bold;
  font-size: 30px;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
}

.contact-form input:hover::placeholder, .contact-form textarea:hover::placeholder {
  color: #FFD233;
}

.contact-form input:focus::placeholder, .contact-form textarea:focus::placeholder  {
  opacity: 0;
}

.contact-status {
  position: relative;
  float: left;
  width: calc(100% - 40px);
  margin: 20px;
  margin-bottom: 0px;
  border-radius: 5px;
  background: #173F5F;
  color: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
}

.contact-status a {
  color: #ffffff;
}

.contact-status h1.s {
  color: #4DFF89;
}

.contact-status h1.f {
  color: #FF4D4D;
}

.contact-side a {
  color: #000000;
}

.contact-side a:hover {
  color: #00223E;
}

.about-main {
  position: relative;
  float: left;
  width: calc(var(--width-wide) - 40px);
  margin-bottom: 30px;
  margin-right: 30px;
  border-radius: 15px;
  background-color: #ffffff;
  padding: 20px;
  font-family: 'Source Sans Pro', sans-serif;
}
