@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    background: hsl(220, 6%, 10%);
    font-family: 'Share Tech Mono';
}

/****************************************************
************************Start of page 1**************
*****************************************************/
#particles-js {
    width: 100%;
    height: 100vh;
    background: hsl(220, 6%, 10%);
}

/* Code for the positioning and alignment of the hero section */
.hero-section {
    display: grid;
    place-content: center;
    position: absolute;
    top: 43%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

.hero-section h1 {
    font-size: 2rem;
    color: hsl(150, 84%, 48%);
}

.hero-section h3 {
    font-size: 1.2rem;
    color: hsl(0, 0%, 90%);
}

@media screen and (min-width: 650px) {

    .hero-section h3 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }
}

/* Code for the hero section button and the Work section button */
.hero-button {
    padding: 1em 0;
}

.work-text {
    display: flex;
    justify-content: space-between;
    padding: 1em 0;
}

.work-btn a,
.hero-button-button a,
.link-btn a {
    position: relative;
    padding: 0.3em;
    color: hsl(150, 84%, 44%);
    text-decoration: none;
    transition: 0.3s;
}

@media screen and (min-width: 650px) {
    .hero-button-button {
        font-size: 1.3rem;
    }
    .work-text {
        font-size: 1.3rem;
    }

    .work-btn {
        font-size: 1.3rem;
    }
}

.hero-button-button a::before,
.work-btn a::before,
.link-btn a::before {
    content: " ";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid hsl(150, 84%, 48%);
    border-left: 1px solid hsl(150, 84%, 48%);
    transition: 0.3s;
    transition-delay: 0.3s;
}

.hero-button-button a::after,
.work-btn a::after,
.link-btn a::after {
    content: " ";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid hsl(150, 84%, 48%);
    border-right: 1px solid hsl(150, 84%, 48%);
    transition: 0.3s;
    transition-delay: 0.3s;
}

.hero-button-button a:hover::before,
.hero-button-button a:hover::after,
.work-btn a:hover::before,
.work-btn a:hover::after,
.link-btn a:hover::before,
.link-btn a:hover::after {
    width: 40%;
    height: 40%;
    transition-delay: 0s;
}

/****************************************************
************************Start of page 2**************
*****************************************************/
.page-2, .page-3, .page-4 {
    min-height: 100vh;
}

.page-2 h1, .page-3 h1, .page-4 h1 {
    padding: 1em 0 1em 0;
    color: hsl(150, 84%, 48%);
    text-align: center;
}

.skill-container, 
.project-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
  }
  
/* use the lobotomized owl to wrap and add margin to mobile devices/desktop*/
.skill-container > * + * {
    margin: 2em 0 0 0;
  }

.project-container > * + * {
    margin: 2em 0 0 0;
  }
  
  @media (min-width: 1200px) {

    .page-2 h1, .page-3 h1, .page-4 h1 {
        font-size: 3rem;
    }
    
    .skill-container, .project-container {
      flex-direction: row;
      padding-top: 10%;
    }
  
    .skill-container > * + * {
      margin: 0 0 0 7em;
    }

    .project-container > * + * {
        margin: 0 0 0 7em;
      }
}
/****************************************************
************************Start of page 4**************
*****************************************************/
.page-4 {
    display: grid;
    place-content: center;
}

.page-4 form input {
    display: block;
    height: 2.5rem;
    padding: 0 1em 0 1em;
    margin-top: 1em;
    border: 1px solid hsl(150, 84%, 44%);
    border-radius: 14px;
}

form textarea {
    padding: 1em 1em 0 1em;
    margin-top: 1em;
    border: 1px solid hsl(150, 84%, 44%);
    border-radius: 14px;
}

form button {
    margin-top: 1em;
    padding: 0.5em;
    font-size: 0.9rem;
    width: 50%;
    border: 1px solid hsl(150, 84%, 44%);
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    cursor: pointer;
}