/*variables*/

:root {
    --primary-text: whitesmoke;
    --secondary-text: #2b2b2b;
    --tertiary-text: hsl(0, 0%, 40%);
    --bg-one: #204051;
    --bg-two: #3b6978;
    --bg-three: #84a9ac;
    --bg-four: #93bdbf;
    --bg-five: #a0ced0;
}


/*reset*/

html {
    scroll-behavior: smooth;
}

body,
p,
a,
ul,
li {
    margin: 0;
    padding: 0;
    text-decoration: none;
}

section {
    padding: 1px;
}

li {
    list-style-type: none;
}

.relevant-list li {
    list-style-type: circle;
}

.relevant-list {
    padding-left: 30px;
}

.project li {
    list-style-type: circle;
    margin-left: 35px;
}


/*base styles*/

body {
    overflow-x: hidden;
    font-family: "Montserrat", sans-serif;
    color: var(--primary-text);
    font-size: 16px;
}

.header-title {
    text-decoration: none;
    color: var(--secondary-text);
}

#about {
    background-color: var(--bg-one);
}

#resume {
    background-color: var(--bg-two);
}

.icon {
    width: 65px;
    height: 65px;
    border-radius: 60px;
    margin-bottom: 15px;
}

.date {
    font-style: italic;
    float: right;
    padding-top: 15px;
}

.tag {
    border: 1px solid var(--secondary-text);
    border-radius: 5px;
    padding: 4px;
    margin: 3px;
    font-size: 0.9em;
    white-space: nowrap;
    display: inline-block;
}

#portfolio {
    background-color: var(--bg-three);
}

.link {
    text-align: center;
}

.section-title {
    border-bottom: var(--primary-text) 1px solid;
}

.portfolio_images {
    text-align: center;
}

#CHimg {
    display: inline-block;
}

#skills {
    background-color: var(--bg-four);
}

#contact {
    background-color: var(--bg-five);
}

input[type="text"],
input[type="email"],
input[type="submit"],
textarea {
    border: 1px solid #ccc;
    padding: 12px 0;
    border-radius: 4px;
    text-indent: 10px;
    margin-bottom: 10px;
}

textarea {
    height: 66px;
    width: 100%;
}

input[type="submit"] {
    background-color: white;
    color: var(--secondary-text);
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: whitesmoke;
}

#terminal {
    font-family: "Source Code Pro", monospace;
    background-color: #2b2b2b;
    font-size: 0.9em;
    padding-bottom: 66px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    box-shadow: 0 0 20px var(--secondary-text);
}

#top-bar {
    background-color: #3c3f41;
    width: 100%;
    padding-top: 20px;
}

.command {
    float: left;
    text-align: left;
    margin-left: 10px;
    color: #f8f8f2;
}

.return {
    float: left;
    text-align: left;
    margin-left: 10px;
    color: #cccccc;
}

#terminal a {
    color: #84a9ac;
}

.blinking {
    animation: blinker 2s infinite step-end;
    background-color: #f8f8f2;
}

@keyframes blinker {
    from,
    to {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}


/*fonts*/

@font-face {
    font-family: "Montserrat";
    src: url("assets/fonts/Montserrat-Regular.ttf");
}

@font-face {
    font-family: "Source Code Pro";
    src: url("assets/fonts/SourceCodePro-Regular.ttf");
}

h1,
h2,
h3,
h4 {
    color: var(--primary-text);
    font-weight: normal;
    font-size: 1.2em;
}

h1 {
    font-size: 1.5em;
}

footer {
    padding: 10px;
    font-size: 0.8em;
    color: var(--secondary-text);
}


/*mobile styles*/

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.site-nav {
    color: var(--secondary-text);
    display: inline;
    text-align: center;
}

.site-nav h1 {
    padding-top: 10px;
    padding-bottom: 5px;
    grid-column: 1/13;
    grid-row: 1;
    margin: 5px;
    color: var(--secondary-text);
}

.navbar {
    display: none;
    padding-bottom: 10px;
}

.navbar a {
    text-decoration: none;
    color: var(--secondary-text);
}

.navbar a:hover {
    color: var(--tertiary-text);
}

#about {
    padding-bottom: 20px;
}

#about .about-text h1 {
    grid-column: 1/13;
    grid-row: 1;
    padding-bottom: 10px;
    text-align: center;
}

#about .about-text {
    grid-column: 1/13;
    grid-row: 2;
    padding-bottom: 60px;
    margin: 2px;
}

#resume {
    padding-bottom: 30px;
}

#resume h1 {
    grid-column: 1/6;
    grid-row: 1;
    padding-bottom: 10px;
    text-align: center;
}

.experience-grid {
    margin: 20px auto;
    width: 95%;
    padding-bottom: 10px;
}

.experience-grid .title {
    font-weight: bold;
}

.experience-grid .relevant-details {
    padding: 10px;
}

.experience-grid .relevant-details span {
    font-size: 0.8em;
}

#portfolio {
    padding-bottom: 30px;
}

#portfolio h1 {
    grid-column: 1/13;
    grid-row: 1;
    padding-bottom: 10px;
    text-align: center;
}

.project {
    padding: 10px;
    margin: 10px;
    /* border: 3px solid var(--primary-text); */
    border: 3px solid transparent;
    border-radius: 3px;
    color: var(--primary-text);
    background-color: #709fa3;
}

.project h2 {
    text-align: center;
    font-weight: bold;
    color: var(--primary-text);
}

.project img {
    border: 1px solid var(--primary-text);
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.project p {
    padding: 10px;
}

button {
    background-color: #54898d;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: larger;
    color: var(--primary-text);
}

#skills h1 {
    grid-column: 1/13;
    grid-row: 1;
    padding-bottom: 10px;
    text-align: center;
}

#contact {
    padding-bottom: 30px;
}

#contact h1,
h2 {
    grid-column: 1/13;
    padding-bottom: 10px;
    text-align: center;
    color: var(--secondary-text);
}

form {
    grid-column: 2/12;
    text-align: center;
}

input {
    display: block;
    width: 100%;
}

footer .grid .copyright {
    grid-column: 1/13;
}

footer .grid ul {
    grid-column: 13/13;
}

footer .grid li {
    display: inline;
}

footer a {
    color: var(--secondary-text);
}

footer a:hover {
    color: var(--tertiary-text);
}


/*larger device styles*/

@media screen and (min-width: 960px) {
    body {
        font-size: 20px;
    }
    .project {
        max-width: 55%;
        margin: 20px auto;
    }
    .project img {
        height: 45%;
        width: 45%;
    }
    .navbar {
        display: block;
    }
    #about .about-text {
        grid-column: 3/11;
    }
    .experience-grid {
        width: 50%;
    }
    input {
        display: inline-block;
        width: 20%;
    }
    textarea {
        width: 61%;
        display: block;
        margin: 10px auto;
    }
    footer {
        padding: 15px 100px 20px;
    }
}