/* Created by Kalen Shamy */

* {
  box-sizing: border-box;
}
:root {
  --dark-blue: 0, 15, 32;
  --blue: 83, 162, 255;
  --white: 200, 225, 255;

  --gradient-green: 83, 235, 255;
  --gradient-blue: 83, 199, 255;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: rgb(var(--dark-blue));
  color: rgb(var(--white));
}
a {
  text-decoration: none;
  color: inherit;
}
h1 {
  margin-top: 0;
  color: rgb(var(--blue));
}

/* header */
header {
  width: 100%;
  height: 225px;
  background: linear-gradient(180deg, rgb(20, 20, 20) 0%, rgb(10, 10, 10) 100%);
}
header #title * {
    color: rgb(var(--white));
}
noscript {
  display: block;
  color: red;
  text-align: center;
  font-weight: bold;
  margin-top: 7px;
  letter-spacing: 1px;
}
#githubLink {
  position: relative;
  top: 15px;
  left: calc(100% - 47px);
  transition: 0.25s;
}
#githubLink:hover {
  color: rgb(var(--blue));
}
#githubLink path {
  fill: currentColor;
}
#title {
  height: 75%;
  width: 75%;
  max-width: 525px;
  margin: auto;
  padding-top: 65px;
  position: relative;
  bottom: 36px;
  text-shadow: 1px 0px 5px rgb(var(--white), 0.5);

  -khtml-user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
#title h1 {
  margin: 0;
  font-family: "B612 Mono", Georgia, Garamond, serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 50px;
}
#title #title_1 span, #title #title_2 {
  font-size: 0.5em;
}
#title_2 {
  text-align: right;
  position: relative;
  bottom: 1.25em;
}
#title_3 {
  text-align: right;
  position: relative;
  bottom: 0.25em;
}

/* main */
section {
    padding: 0 max(calc(calc(100vw - 700px) / 2), 50px) 1.5em;
    padding-top: 15px;
    width: 100vw;
}
h1 {
    font-size: 20px;
    font-weight: 400;
}

/* intro */
#intro {
    background: linear-gradient(180deg, rgb(10, 10, 10) 0%, rgba(10, 10, 10, 0) 100%);
}
#intro h2 {
    font-size: 48px;
    font-weight: 400;
    margin: 0;
}
#intro div {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
#intro div span {
    display: block;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1em;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: rgb(var(--blue), 0.25);
    border: 1px solid rgb(var(--blue), 0.25);
    box-shadow: 2px 4px 5px rgba(var(--white), 0.25);
}

/* projects */
#projects_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project {
    position: relative;
    display: flex;
    justify-content: flex-start;
    margin-block: 5px;
    transition: 0.25s;
    border-radius: 20px;
    width: 100%;
    border: 4px solid rgb(var(--white));
    background-color: rgb(10, 10, 10, 0.5);
    white-space: nowrap;
}
.project img {
    position: relative;
    max-width: 250px;
    border-radius: 20px;
    border: 4px solid rgb(var(--blue));
    box-sizing: content-box;
    z-index: 5;
    scale: 1.03;
}
.project h2 {
    margin: 10px 0 5px 0;
    white-space: break-spaces;
    font-weight: 400;
    color: rgb(var(--blue));
}
.project p {
    margin: 0 0 24px 0;
    font-size: 16px;
    white-space: break-spaces;
}
.project_text {
    width: 100%;
    height: 100%;
    padding: 15px;
    background: linear-gradient(180deg, rgb(var(--def-back-2), 0.75) 25%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 100%);
    transition: 0.25s background-color;

    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}
.project_links {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: flex-end;
}
.project_links a {
    display: block;
    margin-left: 5px;
    padding: 5px 7px;
    background-color: rgb(var(--gradient-blue),0.1);
    border-radius: 7px;
    border: 1px solid rgb(var(--gradient-blue),0.5);
    transition: 0.5s;
}
.project_links a:hover {
    transition: 0.125s;
    background-color: rgb(var(--gradient-green),0.15);
    border: 1px solid rgb(var(--gradient-green),0.75);
}
.project_links a span {
    text-transform: lowercase;
    color: transparent;
    background: radial-gradient(50% 50% at 50% 50%, rgb(var(--gradient-blue)) 0%, rgb(var(--gradient-green)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}
.project_links a svg path {
    fill: rgb(var(--gradient-green));
}

/* contact */
form {
    opacity: 1;
    transition: 0.5s;
}
form h3 {
    margin-bottom: 5px;
    font-weight: 400;
}
form input, form textarea {
    width: 100%;
    font-size: 1.25rem;
    font-family: "Lato", sans-serif;
    font-weight: 500;
    padding: 5px;
    background: rgb(var(--blue),0.25);
    border: rgb(var(--blue), 0.5) 2px solid;
    border-radius: 5px;
    color: rgb(var(--white));
}
form input:focus-visible, form textarea:focus-visible {
    outline: none;
    background: rgb(var(--blue), 0.5);
    border: rgb(var(--blue), 1) 2px solid;
}
form textarea {
    resize: none;
}
#form-complete {
    height: 381px;
    display: none;
    background: linear-gradient(180deg, 
        rgb(var(--blue), 0) 0%,
        rgb(var(--blue), 0.125) 40%,
        rgb(var(--blue), 0.125) 60%,
        rgb(var(--blue), 0) 100%);
    opacity: 0;
    border: 2px solid rgb(var(--blue));
    border-radius: 15px;
    width: 70%;
    padding-block: 150px;
    margin-inline: auto;
    transition: 0.5s;
}
#form-complete h3 {
    font-weight: normal;
}
#form_submit {
    display: block;
    background-color: rgb(var(--blue), 0.25);
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 15px;
    width: 100%;
    padding: 5px;
    transition: 0.25s;
}
#form_submit:hover {
    background-color: rgb(var(--blue), 0.5);
}

/* footer */
footer {
    background: rgb(var(--def-back-1));
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    text-align: center;
    line-height: 30px;
    padding: 40px 25px 25px 25px;
}
footer a {
    margin: 0 5%;
}
footer a:hover {
    text-decoration: underline;
}

@media screen and (min-width: 740px) {
    header {
        height: 200px;
    }
    #title_3 {
        bottom: 0.75em;
    }
    .slideshow {
        justify-content: space-around;
    }
    .slideshow .slideshow_content {
        flex-direction: row;
    }
    .slideshow .slideshow_content_info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

/* Mobile */
@media screen and (max-width: 550px) {
    .project {
        border-color: rgb(var(--blue));
    }
    .project img {
        max-width: unset;
        border: none;
        width: 100%;
        scale: 1;
    }
    .project_text {
        position: absolute;
        background: rgb(var(--dark-blue), 0.75);
        z-index: 5;
        border-radius: inherit;
    }
    .project h2 {
        margin-top: 0;
        font-size: 7vw;
        line-height: 8vw;
    }
    .project p {
        font-size: 4vw;
        line-height: 6vw;
    }
}

/* Tablet */
@media screen and (min-width: 500px) {
    header {
        height: 300px;
    }
    #title h1 {
        font-size: 75px;
    }
    #title_3 {
        bottom: 0.25em;
    }
}

/* Computer */
@media screen and (min-width: 635px) {
    header {
        height: 250px;
    }
    #title {
        font-size: 50px;
    }
    #title_3 {
        bottom: 0.75em;
    }
}
