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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  display: block;
  font-size: 1.2em;
  overflow-x: hidden;
}

body p {
  font-size: 1rem;
  color: #616161;
}

body h1,
h2,
h3 {
  color: #444649;
}

body h2 {
  font-size: 2em;
}

nav {
  z-index: 99;
}

/* Skill icon colors */
.fa-html5 { color: #e34f26; }
.fa-css3-alt { color: #1572b6; }
.fa-js { color: #f7df1e; }
.fa-bootstrap { color: #7952b3; }
.fa-git-alt { color: #f05032; }
.gatsby { color: #663399; }
.fa-adobe { color: #ff0000; }
.fa-react { color: #61dafb; }
.fa-npm { color: #cb3837; }
.fa-google { color: #4285f4; }
.webpack { color: #8dd6f9; }
.fa-stack-overflow { color: #fe7a16; }

#particles-js {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  text-decoration: none;
}

.hero-scroll .bounce {
  display: block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}

/* Flip cards */
.card-container {
  width: 500px;
  height: 400px;
  perspective: 900px;
  display: flex;
  flex-wrap: wrap;
  padding-top: 80px;
}

.card-container:hover {
  cursor: pointer;
}

.cardflex {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.card1 {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  transition: 0.6s ease-in-out;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 2px 2px rgba(0, 0, 0, 0.15),
    0 4px 4px rgba(0, 0, 0, 0.15), 0 8px 8px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: 400px;
  padding-bottom: 40px;
}

.card-faces {
  position: absolute;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.front {
  background-color: white;
  width: 100%;
  height: 400px;
  border-bottom: solid #e31b6d;
  transform: rotateY(0deg);
}

.front-title {
  text-align: center;
  padding-top: 70px;
}

.cardp {
  padding: 55px 5% 0;
  text-align: center;
  width: 100%;
}

.back {
  transform: rotateY(180deg);
  width: 100%;
  height: 400px;
  border-bottom: solid #02c2c7;
  background: #fff;
}

.back iframe {
  width: 100%;
  height: 220px;
  border: none;
}

.red-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: #e31b6d;
}

.blue-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: #02c2c7;
}

.card1.is-flipped {
  transform: rotateY(180deg);
}

.card-faces.front:hover .handicon i {
  color: #02c2c7;
}

/* Hero */
#tonyimage img,
#tonyimage .tony-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 385px;
  height: 372px;
  object-fit: cover;
  object-position: center top;
  cursor: pointer;
}

/* Slide-in animation */
.item {
  transform: translateY(80%);
  transition: transform 500ms ease-in;
}

.item.animate {
  transform: none;
  transition: transform 300ms ease-in;
}

/* Hamburger */
.topnav > .hamburger {
  padding: 0;
  margin: 10px 10px 10px 0;
}

#nav-icon1 {
  width: 30px;
  height: 27px;
  padding: 10px;
  position: relative;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}

#nav-icon1 span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #f2f2f2;
  border-radius: 9px;
  left: 0;
  transition: 0.25s ease-in-out;
}

#nav-icon1 span:nth-child(1) { top: 0; }
#nav-icon1 span:nth-child(2) { top: 10px; }
#nav-icon1 span:nth-child(3) { top: 20px; }

#nav-icon1.open span:nth-child(1) {
  top: 10px;
  transform: translate(0, -14px) rotate(180deg);
}

#nav-icon1.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

#nav-icon1.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-90deg);
}

.topnav.responsive {
  transition: all 0.5s ease;
  max-height: 700px;
}

.topnav {
  max-height: 100px;
  transition: all 0.5s;
  background-color: #fb923c;
  overflow: hidden;
  font-weight: lighter;
  border-bottom: solid 4px #c2410c;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 17px;
  cursor: pointer;
}

.topnav .active,
.btns:hover {
  color: #e31b6d;
  transition: all 0.5s;
}

.topnav .icon {
  display: none;
}

.topnav img.logo1 {
  z-index: 9;
  position: absolute;
  right: 40px;
  padding-bottom: 40px;
  cursor: pointer;
}

.logo2 {
  display: none;
  position: absolute;
  bottom: 20px;
  right: 6px;
  z-index: 3;
}

.scrollsticky {
  z-index: 100;
  position: sticky;
  top: -1px;
}

.heroimage {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, #fdba74 0%, #fb923c 45%, #fdba74 100%);
}

.textcenter {
  max-width: 600px;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.textcenter h1 {
  color: white;
  display: inline-block;
  font-weight: 100;
  font-size: 2.2em;
}

#tony {
  color: #e31b6d;
  font-weight: 600;
}

.headings h2 {
  text-align: center;
  padding-top: 1em;
  padding-bottom: 2em;
}

.contactheading h2 {
  text-align: center;
  padding-top: 1em;
  padding-bottom: 1em;
}

#about {
  padding-top: 2em;
}

.flex-container p {
  text-align: center;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0 0.7em 8em;
}

.card {
  position: relative;
  width: 400px;
  margin-top: 20px;
  padding: 40px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 2px 2px rgba(0, 0, 0, 0.15),
    0 4px 4px rgba(0, 0, 0, 0.15), 0 8px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: calc(-100% + 4px);
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: 0.5s ease-in-out;
}

.card:hover::before {
  left: 0;
}

.card:nth-child(1)::before { background: #04c2c9; }
.card:nth-child(2)::before { background: #e31b6d; }
.card:nth-child(3)::before { background: #e31b6d; }
.card:nth-child(4)::before { background: #04c2c9; }

.card div,
.card p {
  position: relative;
  z-index: 1;
}

.flex-container .card:hover div h3,
.flex-container .card:hover p {
  color: #f0f0f0;
  transition: all 0.08s ease-in-out;
}

.flex-container .bluecard:hover i { color: #e31b6d; }
.flex-container .pinkcard:hover i { color: #02c2c7; }

.handicon {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.handicon i {
  color: grey;
  font-size: 2em;
  transition: all 0.2s;
}

.icon {
  text-align: center;
  font-size: 4rem;
  color: #252934;
}

.icon i {
  padding-bottom: 1.3rem;
}

.icon h3 {
  text-align: center;
  padding-bottom: 1rem;
  color: #616161;
  font-size: 1.4rem;
}

.icon1 {
  text-align: center;
}

.spancss {
  font-size: 5em;
  padding-bottom: 1rem;
}

.icon1 > h3 {
  padding-top: 1rem;
  text-align: center;
  color: #616161;
  font-size: 0.9rem;
}

.flex-container2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.flex-container2 > div {
  padding-bottom: 4rem;
}

.wrapper2 {
  background-color: #f5f5f5;
  padding: 2.2em 0 1em;
}

.easter-egg-title {
  text-align: center;
  padding-top: 70px;
}

.easter-egg-list {
  margin: auto;
  width: 50%;
  padding-top: 22px;
  font-size: 1rem;
  line-height: 25px;
}

.easter-egg-total {
  font-weight: bold;
  text-decoration: underline;
}

a.button2 {
  display: inline-block;
  padding: 0.35em 1.2em;
  font-size: 0.8em;
  border: 0.1em solid #616161;
  margin: 0 0.3em 0.3em 0;
  border-radius: 0.12em;
  text-decoration: none;
  color: #616161;
  text-align: center;
  transition: all 0.5s;
}

a.button2:hover {
  color: #04c2c9;
  border-color: #04c2c9;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0 0.7em 8em;
}

.project-container > div {
  width: 20%;
}

.projectbutton {
  text-align: center;
  padding-top: 27px;
}

.wrapper4 {
  padding-top: 2em;
  background-color: #f5f5f5;
  padding-bottom: 4em;
}

.headingtravel h2 {
  text-align: center;
  padding: 0.9em 0 0.5em;
}

.channel-link-wrap {
  text-align: center;
  padding-bottom: 2em;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.channel-link .fa-youtube {
  color: #ff0000;
}

.video-grid-scroll {
  max-height: calc(3 * (280px * 9 / 16 + 4.5rem) + 2 * 1.5em);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  margin: 0 4em 2em;
  padding: 0.5em 0.5em 0.5em 0;
  border: 3px solid #ff8c00;
  background: #fff;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
  scrollbar-color: #ff8c00 #f5f5f5;
  scrollbar-width: thin;
}

.video-grid-scroll::-webkit-scrollbar {
  width: 10px;
}

.video-grid-scroll::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.video-grid-scroll::-webkit-scrollbar-thumb {
  background: #ff8c00;
  border-radius: 5px;
}

.video-grid-scroll::-webkit-scrollbar-thumb:hover {
  background: #e67300;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5em;
  padding: 1em 0.5em 1em 1em;
}

.video-card {
  background: #fff;
  border-bottom: 3px solid #e31b6d;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 2px 2px rgba(0, 0, 0, 0.15),
    0 4px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
}

.video-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card__play i {
  color: #fff;
  font-size: 2.5rem;
  background: #e31b6d;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.2rem;
}

.video-card:hover .video-card__play {
  opacity: 1;
}

.video-card__title {
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 1rem;
  color: #444649;
  font-weight: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.8rem;
}

.header {
  text-align: center;
  padding: 32px;
  background-color: #f5f5f5;
}

.gallerywrapper {
  padding-bottom: 1em;
  background-color: #f5f5f5;
  overflow-y: hidden;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

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

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.35em 1.2em;
  font-size: 0.8em;
  border: 0.1em solid #616161;
  margin: 0 0.3em 0.3em 0;
  border-radius: 0.12em;
  background: transparent;
  color: #616161;
  text-align: center;
  transition: all 0.5s;
  cursor: pointer;
}

.btn:hover,
.btn.active2 {
  color: #04c2c9;
  border-color: #04c2c9;
}

.formpadding {
  position: relative;
  margin-top: 8px;
  margin-bottom: 15px;
}

input,
textarea {
  width: 100%;
  color: white;
  font-size: 16px;
  font-family: inherit;
  background-color: #1b242f;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 0.3s ease-in-out;
  resize: vertical;
  cursor: pointer;
}

input:focus,
textarea:focus {
  outline: none;
}

.requirements {
  color: #e31b6d;
  display: none;
  margin-bottom: 10px;
  margin-top: -6px;
}

.error {
  color: #e31b6d;
  display: none;
  margin-top: 10px;
  text-align: center;
}

.success {
  color: #02c2c7 !important;
  display: none;
  margin-top: 10px;
  text-align: center;
}

.formpadding span {
  position: absolute;
  background-color: #3cefff;
  transition: transform 0.5s ease;
}

.bottom, .top {
  height: 1px;
  left: 0;
  right: 0;
  transform: scaleX(0);
}

.left, .right {
  width: 1px;
  top: 0;
  bottom: 0;
  transform: scaleY(0);
}

.bottom { bottom: 0; transform-origin: bottom right; }
.top { top: 0; transform-origin: top left; }
.left { left: 0; transform-origin: bottom left; }
.right { right: 0; transform-origin: top right; }

input:focus ~ .bottom,
textarea:focus ~ .bottom {
  transform-origin: bottom left;
  transform: scaleX(1);
}

input:focus ~ .right,
textarea:focus ~ .right {
  transform-origin: bottom right;
  transform: scaleY(1);
}

input:focus ~ .top,
textarea:focus ~ .top {
  transform-origin: top right;
  transform: scaleX(1);
}

input:focus ~ .left,
textarea:focus ~ .left {
  transform-origin: top left;
  transform: scaleY(1);
}

label {
  color: #ffffff;
  font-size: 16px;
}

.wrapper3 {
  background-color: #252934;
  padding: 2.2em 4em 0;
}

.wrapper3 h2 {
  color: white;
}

#contactinfo p {
  text-align: center;
  color: #02c2c7;
  padding-bottom: 1em;
  font-size: 1.1rem;
}

form {
  padding-bottom: 4em;
}

input[type="submit"] {
  cursor: pointer;
  display: inline-block;
  border: 0.1em solid #ffffff;
  background-color: #252934;
  padding: 10px 30px;
  margin: 5px 0 0;
  width: 130px;
  color: #ffffff;
  text-align: center;
  transition: all 0.5s;
  font-size: 0.8em;
  -webkit-appearance: none;
}

input[type="submit"]:hover {
  background-color: #02c2c7;
}

.containerform {
  display: flex;
  justify-content: center;
  background-color: #252934;
  padding: 20px 22% 0;
}

footer {
  background-color: #1b242f;
  padding: 70px 0 50px;
  position: relative;
}

.backtotop {
  display: inline-block;
  text-align: center;
  position: absolute;
  top: -25px;
  border-radius: 2px;
  background: #e31b6d;
  font-size: 30pt;
  width: 47px;
  height: 50px;
  line-height: 50px;
  left: 0;
  right: 0;
  margin: 0 auto;
  cursor: pointer;
  transition: background 0.5s;
}

.backtotop i {
  color: white;
  font-size: 0.5em;
}

.backtotop:hover {
  background-color: #04c2c9;
}

.media {
  text-align: center;
}

.media a {
  text-decoration: none;
}

.media i {
  font-size: 3em;
  color: gray;
  padding: 0 0.6rem;
  transition: all 0.3s;
}

.media i:hover {
  color: #04c2c9;
}

#smalltext {
  text-align: center;
  padding-top: 2em;
}

#myName {
  color: #d3d3d3;
}

#year {
  color: #04c2c9;
}

/* Responsive */
@media only screen and (max-width: 599px) {
  #tonyimage img,
  #tonyimage .tony-image {
    width: 187px;
    height: 180px;
  }

  input, textarea { width: 345px; }

  .topnav img.logo1 { display: none; }

  .topnav.responsive img.logo2 {
    display: block;
    z-index: 2;
    margin: 0 auto;
    left: 34px;
    right: 0;
    top: 40px;
    text-align: center;
  }

  .containerform {
    padding-left: 1em;
    padding-right: 1em;
    width: 100%;
  }

  .flex-container { padding-bottom: 4em; }

  .video-grid-scroll {
    max-height: calc(3 * (100vw * 9 / 16 + 4.5rem) + 2 * 1.5em);
    margin: 0 1em 2em;
  }

  .video-grid {
    grid-template-columns: 1fr;
    padding: 0.75em 0.25em;
  }

  .flex-container2 > div {
    width: 30%;
  }

  .textcenter {
    font-size: 0.7em;
    width: 100%;
  }

  .project-container > div {
    width: 100%;
    margin-bottom: 70px;
  }

  .project-container { padding-bottom: 1em; }

  .topnav a:not(:first-child) { display: none; }

  span.icon.hamburger {
    float: right;
    display: flex;
    justify-content: flex-end;
  }

  a.mobilenone { display: none; }

  .topnav.responsive a { display: block; text-align: left; }

  .mobile-drop-flex {
    float: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .btns { width: 125px; }

  .card-container {
    width: 100%;
    max-width: 500px;
    padding-top: 40px;
  }

  .hero-scroll {
    bottom: 1.5rem;
    font-size: 2rem;
  }

  .red-bar, .blue-bar { width: 3px; }

  .handicon { bottom: 10px; right: 10px; }

  .handicon i { font-size: 25px; }

  .card:nth-child(1) { order: 1; }
  .card:nth-child(2) { order: 2; }
  .card:nth-child(3) { order: 4; }
  .card:nth-child(4) { order: 3; }
}

@media only screen and (min-width: 600px) {
  .scrollsticky img.logo2 { display: none !important; }

  .card-container {
    width: 500px;
    margin-bottom: 40px;
  }

  .row, .header { display: none; }

  .project-container > div {
    width: 100%;
    margin-bottom: 70px;
  }

  .flex-container2 > div {
    padding-bottom: 40px;
    width: 25%;
  }

  input, textarea { width: 370px; }
}

@media only screen and (min-width: 768px) {
  .flex-container > div {
    width: 40%;
  }

  .flex-container2 > div {
    padding-bottom: 60px;
    width: 25%;
  }

  input, textarea { width: 500px; }

  .card:nth-child(n) { order: unset; }
}

@media only screen and (min-width: 992px) {
  .project-container > div {
    width: 100%;
    margin-bottom: 50px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .cardflex > div {
    margin-left: 1%;
    margin-right: 1%;
  }
}

@media only screen and (min-width: 1500px) {
  .flex-container > div {
    width: 20%;
    flex-basis: 22%;
  }

  .card:nth-child(3) { order: 4; }
  .card:nth-child(4) { order: 3; }
}

@media screen and (min-width: 600px) and (max-height: 850px) {
  .hero-scroll {
    bottom: 1.5rem;
    font-size: 2rem;
  }
}
