html,
body {
  margin: 0;
  padding: 0;
  --purpleCol: #9115DF;
  --mainBGCol: #F5F4F1;
  --tealCol: #19C3BB;
  --yellowCol: #F3DB00;
  --hotPinkCol: #ed1d61;
  --peachyCol: #F64A4A;
  --lightGreyCol: #D9D9D9;
  --midGreyCol: #a7a7a7;
  --brownOrangeCol: #C34502;
  --electricGreenCol: #36DA00;
  --buttonHoverCol: #E8E8E8;
  --buttonBG: #fff;
  --menuBG: rgba(243, 219, 0, .5);
  --stickyheaderBG: rgba(245, 244, 241, .5);
  transition: background-color .5s ease-out;
}

.darkmode {
  --purpleCol: #ccccff;
  --mainBGCol: #17161A;
  --tealCol: #A5FFFA;
  --yellowCol: #E3D985;
  --hotPinkCol: #FFA5A5;
  --peachyCol: #EEC49A;
  --lightGreyCol: #2A2A2A;
  --midGreyCol: #000;
  --brownOrangeCol: #EEC49A;
  --electricGreenCol: #E3FDDA;
  --buttonHoverCol: #2A2A2A;
  --buttonBG: #000;
  --menuBG: rgba(58, 57, 33, 0.47);
  --stickyheaderBG: rgba(23, 22, 26, .7);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--purpleCol);
  font-family: "PT Mono";
  background-color: var(--mainBGCol);
}

::selection {
  background: var(--peachyCol);
  color: var(--buttonBG);
}

.header-area {
  padding: 30px 16px 38px 16px;
  overflow: hidden;
  color: var(--tealCol);
  background-color: var(--mainBGCol);
  transition: background-color .5s ease-out;
  z-index: 40;
}

.sticky-header {
  background-color: var(--stickyheaderBG);
  backdrop-filter: blur(5px);
  position: fixed;
  z-index: 60;
  width: 100vw;
  height: 75px;
  top: -17px;
  left: 0;
  transition: color .5s ease-out, opacity .5s ease-out;
  visibility: visible;
  opacity: 0;
}

.scroll-eye {
  position: fixed;
  scale: 1;
  left: 50%;
  top: 47px;
  visibility: visible;
  transition: color .5s ease-out;
  transform: translate(-50%, -50%);
  opacity: 1;
}

.up-arrow {
  position: fixed;
  color: var(--electricGreenCol);
  top: 25px;
  right: 22px;
  z-index: 70;
  cursor: pointer;
}

.downscroll {
  opacity: 1;
  visibility: visible;
}

.hamburger {
  color: var(--yellowCol);
  position: fixed;
  top: 10px;
  z-index: 70;
  cursor: pointer;
}

.hamburger svg {
  outline: 3px solid var(--yellowCol);
  border-radius: 2px;
}

@media screen and (min-width: 800px) {

  .hamburger,
  .sticky-header,
  .scroll-eye {
    visibility: hidden;
  }
}

.header-area-inner {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.eyeBox {
  width: 120px;
  height: 120px;
  display: inline-block;
  box-sizing: border-box;
  border: 1px solid black;
  background-color: var(--brownOrangeCol);
}

#prova {
  display: inline-block;
  border: 0px solid rgb(11, 87, 4);
  padding: 0;
}

#vesica {
  position: relative;
  justify-self: center;
  z-index: 20;
}

#innercircle {
  /*width: 120px;
  height: 120px;*/
  border-radius: 1%;
  border: 0px solid rgb(89, 0, 255);
  justify-content: center;
  align-content: center;
  background-color: var(--mainBGCol);

}

#cerchio {
  /*border: 0px dashed red;
  width: 110px;
  height: 110px;*/
  border-radius: 50%;
  transition: color .5s ease-out;
  position: absolute;
  pointer-events: none;
  align-content: center;
  justify-content: center;
  z-index: 2;
}

#pupil {
  position: relative;
  display: flex;
  justify-self: center;
}

.rotating {
  animation-name: spinning;
  animation-duration: .777s;
}

.rotatingPerpetually {
  animation-name: spinning;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spinning {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

#prova,
#innercircle,
#cerchio {
  box-sizing: border-box;
  transition: .5s ease-out;
}

#shell {
  color: var(--mainBGCol);
  transition: .5s ease-out;
}

.header-name {
  padding-top: 10px;
  padding-left: 10px;
}

.header-name a {
  color: inherit;
  text-decoration: none;
}

#header-firstname {
  text-align: center;
  margin: 0;
  font-size: 48px;
  transition: color .5s ease-out;
}

#header-lastname {
  text-align: center;
  margin: 0;
  font-size: 29px;
  letter-spacing: 0.83rem;
  margin-right: -0.4em;
  transition: color .5s ease-out;
}

@media screen and (min-width: 800px) {
  .header-area-inner {
    padding-top: 0px;
  }
}

.main-content {
  overflow: hidden;
}

@media screen and (min-width: 800px) {
  .main-content {
    max-width: 1000px;
    margin: auto;
    padding: 0 40px;
  }
}

.extra-links {
  text-align: center;
  display: flex;
  justify-content: space-between;
  margin: 0px 0 0px 0;
  padding: 0;
}

.extra-links button {
  color: var(--peachyCol);
  background-color: var(--buttonBG);
  font-family: "PT Mono";
  border: solid 2px var(--hotPinkCol);
  padding: 10px 20px;
  transition: background-color .5s ease-out;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
}

.extra-links button:hover {
  background-color: var(--buttonHoverCol);
}

@media screen and (min-width: 800px) {
  .extra-links {
    display: flex;
    max-width: 800px;
    justify-content: space-evenly;
    margin: auto;
  }

  .extra-links button {
    padding: 12px 20px;
    border-radius: 5px;
    min-width: 70px;
    min-height: 20px;
    max-width: 140px;
    /*letter-spacing: 4.2px;
    font-size: 32px;*/
  }
}

.skill-section {
  display: grid;
  row-gap: 24px;
  margin: 2.5rem 0 3rem 3rem;
}

.skill-section a {
  text-decoration: none;
}

.skill-item {
  background-color: var(--lightGreyCol);
  color: var(--purpleCol);
  text-align: center;
  display: grid;
  align-items: end;
  padding: 0;
  padding-top: 10px;
  min-height: 120px;
  transition: background-color .5s ease-out, border .5s ease-out, color .5s ease-out;
}

.skill-item:hover svg {
  visibility: hidden;
}

.first-item:hover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.middle-item:hover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.last-item:hover {
  /*background-image: url('images/contentment.png');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation-play-state: running;
}


.skill-title {
  background-color: var(--lightGreyCol);
  padding: 0px;
  font-size: 20px;
  transition: .5s ease-out;
}

.skill-item:hover {
  text-shadow: 0px 0px 7px #e8c3ff, 0 0 1em #ed1d61, 0 0 0.2em #F3DB00;
}

.first-title {
  text-align: center;
  padding: 0 10px;
}

.middle-title {
  text-align: center;
  padding: 0 10px;
}

.last-title {
  text-align: center;
  padding: 0 10px;
}

@media screen and (min-width: 800px) {
  .skill-section {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    column-gap: 16px;
    margin: 2rem 0rem 3rem 0rem;
    overflow: hidden;
  }

  .skill-item {
    position: relative;
    min-width: 220px;
    min-height: 300px;
    max-width: 350px;
    height: 100%;
  }

  .first-title,
  .middle-title,
  .last-title {
    text-align: center;
  }

}

.main-footer {
  position: fixed;
  color: var(--brownOrangeCol);
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  height: 50px;
  background-color: var(--mainBGCol);
  bottom: 0px;
  left: 0px;
  right: 0px;
  margin-bottom: 0px;
  transition: .5s ease-out;
  z-index: 20;
}

.main-footer p {
  position: relative;
  justify-self: center;
  margin: 22px 0 0 0;
}

.main-footer a {
  text-decoration: none;
  color: var(--brownOrangeCol);
  transition: .5s ease-out;

}

.main-footer a:hover,
.main-footer .active {
  text-shadow: 0px 0px 7px #e8c3ff, 0 0 1em #F3DB00, 0 0 0.2em #ed1d61;
}

@media screen and (min-width: 800px) {
  .main-footer {
    height: 68px;
    font-size: 14px;
  }

  .main-footer p {
    margin: 30px 0 0 0;
  }
}

#break-div {
  display: block;
  padding: 0;
  margin: 40px 50px 40px 0;
}

.fancy-line {
  border-bottom: 2px solid var(--electricGreenCol);
  clear: both;
  width: 65%;
  margin-top: -16px;
  z-index: 3;
}

.pg-title {
  position: relative;
  width: auto;
  padding: auto;
  text-align: right;
  margin-left: 30px;
  height: 32px;
  font-size: 30px;
  line-height: 32px;
  color: var(--electricGreenCol);
  text-decoration: none;
  background-color: transparent;
  transition: color .5s ease-out;
  z-index: 5;

}

#title-text {
  background-color: var(--mainBGCol);
  transition: .5s ease-out;
  padding-left: 10px;
  padding-right: 0px;
}

.top-right-line {
  visibility: hidden;
}

.top-line {
  color: var(--electricGreenCol);
}

.bottom-line {
  position: absolute;
  right: 0;
  width: 70%;
  margin-top: 0px;
}

@media screen and (min-width: 800px) {
  #break-div {
    margin: auto;
    padding: 60px 0 0px 0;
    justify-items: center;
    position: relative;
  }

  .fancy-line {
    width: 80%;
  }

  .bottom-line {
    position: relative;
    justify-self: center;
    width: 80%;
  }

  .pg-title {
    text-align: center;
    display: inline;
    position: absolute;
    top: 28px;
    right: 20%;
    background-color: var(--mainBGCol);
    padding: 0 20px;
    transition: background-color .5s ease-out;
  }

  #title-text {
    padding-right: 10px;
  }
}

.pt-mono-regular {
  font-family: "PT Mono";
}

/*About styles*/
.about-grid {
  display: inline;
}

.about-text {
  margin: 0 14px 0 39px;
  color: var(--purpleCol);
}

.about-img {
  visibility: visible;
  background-image: linear-gradient(-45deg, #19C3BB, #19C3BB, #36DA00, #F3DB00, #F3DB00);
  background-size: 200% 200%;
  animation: gradient 10s ease infinite;
  margin: 0 0 20px 0;
  display: flex;
  justify-content: center;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.aside {
  font-size: smaller;
}

.aside span {
  font-weight: bold;
  color: var(--hotPinkCol);
  transition: .2s ease-out;
}

.aside span:hover {
  text-shadow: 0px 0px 1px #e8c3ff, 0 0 .6em #ed1d61;
  cursor: pointer;
}

.hint {
  font-size: small;
}


@media screen and (min-width: 800px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 31px;
    margin: 1.5rem 0 0 0;
  }

  .about-img {
    visibility: visible;
    background-image: linear-gradient(-45deg, #19C3BB, #19C3BB, #36DA00, #F3DB00, #F3DB00);
    background-size: 200% 200%;
    animation: gradient 15s ease-in infinite;
    margin: 0 0 20px 0;
    min-width: 300px;
    display: flex;
    justify-content: center;
  }

  @keyframes gradient {
    0% {
      background-position: 0% 50%;
      rotate: 2deg;
    }

    50% {
      background-position: 100% 50%;
      rotate: -2deg;
    }

    100% {
      background-position: 0% 50%;
      rotate: 2deg;
    }
  }

  .about-text {
    margin: -20px 0px 0px 0px;
    padding: 10px 0;
  }
}

/*Contact styles*/

.contact-overlay {
  overflow-y: auto;
  background-color: transparent;
  backdrop-filter: blur(5px);
  position: fixed;
  z-index: 300;
  top: 0px;
  bottom: 0px;
  right: 0px;
  left: 0px;
  display: flex;
  justify-content: center;
  align-content: flex-start;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.5);
  transition: all .2s ease-out;
}

.contact-overlay--is-visible {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.contact-overlay-inner {
  position: relative;
  max-width: 350px;
  height: 650px;
  box-shadow: 0px 0px 7px 5px rgba(25, 195, 187, .5);
  background-color: var(--lightGreyCol);
  outline: 3px solid var(--mainBGCol);
  border-radius: 5px;
  margin: 19px;
  padding: 5px 18px 5px 18px;
  flex: 1;
  display: grid;
  column-gap: 46px;
}

@media screen and (min-height: 610px) {
  .contact-overlay-inner {
    align-self: center;
  }
}

.contact-break {
  display: none;
}

.form-graphic {
  order: 1;
  grid-row: 1;
  color: var(--purpleCol);
  position: relative;
}

.form-graphic a,
.menu-content a {
  color: inherit;
  text-decoration: none;
  text-shadow: 0px 0px 7px #e8c3ff, 0 0 1em #ed1d61, 0 0 0.2em #F3DB00;
  transition: .2s ease-in-out;
}

.form-graphic a:hover,
.menu-content a:hover {
  text-shadow: 0px 0px 7px #e8c3ff, 0 0 1em #F3DB00, 0 0 0.2em #ed1d61;
}

.form-field {
  display: block;
  width: 100%;
  padding: 10px 12px;
  box-sizing: border-box;
  font-size: 20px;
  margin: 0 0 16px 0;
  border: 2px solid var(--mainBGCol);
  background-color: var(--buttonBG);
  border-radius: 5px;
  font-family: inherit;
  color: var(--purpleCol);
}

.form-field::placeholder {
  color: var(--electricGreenCol);
}

textarea.form-field {
  height: 150px;
  resize: none;
}

.contact-form button {
  color: var(--peachyCol);
  background-color: var(--buttonBG);
  font-family: "PT Mono";
  border: solid 2px var(--hotPinkCol);
  padding: 7px 10px;
  display: block;
  width: 100%;
  transition: background-color .5s ease-out;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  text-align: left;
}

.contact-form button:hover {
  background-color: var(--buttonHoverCol);
}

#contactshell {
  color: var(--lightGreyCol);
}

.resume-txt {
  text-align: right;
  color: var(--purpleCol);
  font-size: 16px;
}

.req-note {
  color: var(--electricGreenCol);
  font-size: 16px;
  text-align: right;
}

.extra-contact-txt,
.form-graphic svg {
  display: none;
}

.close-form {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--hotPinkCol);
  cursor: pointer;
  z-index: 300;
}

@media screen and (min-width: 800px) {

  .extra-contact-txt,
  .form-graphic svg {
    display: block;
  }

  .contact-break {
    display: block;
  }

  .form-graphic svg {
    justify-self: center;
  }

  .resume-txt {
    position: absolute;
    bottom: 105px;
    right: 4px;
  }

  .contact-overlay {
    overflow-y: scroll;
  }

  .contact-overlay-inner {
    padding: 45px 18px 5px 18px;
    max-width: 1053px;
    height: 530px;
    margin: 19px;
    align-self: center;
    display: grid;
    grid-template-columns: 1fr 1.7fr;
  }

  .form-graphic {
    max-width: 377px;
  }
}

@media screen and (min-width: 800px) and (max-height: 555px) {
  .contact-overlay-inner {
    align-self: flex-start;
  }
}

/* Menu styles */
.menu-overlay {
  background-color: var(--menuBG);
  backdrop-filter: blur(10px);
  position: fixed;
  z-index: 80;
  top: 0px;
  bottom: 550px;
  right: 0px;
  left: 0px;
  display: flex;
  visibility: hidden;
  opacity: 0;
  transform: scale(1);
  transition: all .3s ease-out;
  overflow-y: hidden;
  overflow-x: hidden;
}

.menu-overlay--is-visible {
  visibility: visible;
  transform: scale(1);
  opacity: 1;
  top: 0px;
  bottom: 0px;
  right: 0px;
  left: 0px;
  overflow-y: auto;
}

.menu-overlay-inner .close-form svg {
  position: absolute;
  right: 14px;
  top: 14px;
}

.menu-overlay-inner {
  display: grid;
  row-gap: 70px;
}

.menu-content {
  position: relative;
  padding: 65px 99px 65px 48px;
}

.menu-title {
  color: var(--tealCol);
  font-size: 30px;
  padding-bottom: 15px;
}

.menu-content ul {
  list-style: none;
  position: absolute;
  padding: 0px 99px 0px 47px;
  left: 0px;
}

.menu-content li {
  text-decoration: none;
  padding-bottom: 13px;
}

.menu-content button {
  color: var(--peachyCol);
  background-color: var(--buttonBG);
  font-family: "PT Mono";
  border: solid 2px var(--hotPinkCol);
  padding: 10px 20px;
  display: block;
  width: 100%;
  text-align: left;
  transition: background-color .5s ease-out;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
}

.menu-content button:hover {
  background-color: var(--buttonHoverCol);
}

.menu-eye {
  color: var(--purpleCol);
  position: absolute;
  padding: 500px 47px 0px 99px;
  left: 0px;
}

.menu-overlay-inner .resume-txt a {
  color: inherit;
  text-decoration: none;
  text-shadow: 0px 0px 7px #e8c3ff, 0 0 1em #ed1d61, 0 0 0.2em #F3DB00;
  transition: .2s ease-in-out;
}

.resume-txt a:hover {
  text-shadow: 0px 0px 7px #e8c3ff, 0 0 1em #F3DB00, 0 0 0.2em #ed1d61;
}

@media screen and (min-width: 800px) {
  .menu-overlay {
    display: none;
  }
}

/* scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--lightGreyCol);
  transition: background-color .5s ease-out;
}

::-webkit-scrollbar-thumb {
  background-color: var(--midGreyCol);
  transition: background-color .5s ease-out;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--brownOrangeCol);
}

/* about page !*/
.about-img p {
  align-self: center;
  color: #ed1d61;
  font-size: 30px;
}

.blinker {
  font-size: 120%;
  position: relative;
  left: -9.5px;
}

.blinking {
  animation: blink 1s step-start infinite;
  left: -13px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/*message received page*/
@keyframes mr-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.message-submitted-main {
  background-image: linear-gradient(-45deg, #19C3BB, #19C3BB, #36DA00, #F3DB00, #F3DB00);
  background-size: 200% 200%;
  animation: mr-gradient 15s ease-in infinite;
  margin: 0 0 20px 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;

}

.info-txt {
  padding-top: 20%;
  font-size: 30px;
  color: #9115DF;
}

.centerbutton {
  height: 100px;
  position: fixed;
  top: 50%;

}

.centerbutton button {
  border: solid 3px #ed1d61;
  background: #F3DB00;
  color: #ed1d61;
  font-family: "PT Mono";
  font-size: xx-large;
  cursor: pointer;
}

.centerbutton button:hover {
  box-shadow: 0px 0px 7px #e8c3ff, 0 0 1em #F3DB00, 0 0 0.2em #F3DB00;
}