* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

html, body {
    min-height: 100vh;
}

a, a:hover, a:focus, a:active {
    text-decoration: none;
    color: inherit;
}

button:focus { outline: none; }

body {
    background-color: rgb(16, 16, 16);
}

/* change color buttons */
.colors {
    bottom: 120px;
    left: -50px;
    position:fixed;
    transform: rotate(-90deg)
}

.colors ul li{
    display: inline-block; 
    padding-right: 10px;

}

.button {
    background-color: rgb(16, 16, 16);
    cursor: pointer;
    font-family: Roboto;
    color: #ececec;
    font-weight: bold;
}
/* navigation */

#navbar {
    background-color: #111111d5; 
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 1000; 
    border-bottom: 1px solid #ececec;
    transition: top 0.3s;
}

#navbar.show {
    top:0px;
}

#navbar ul {
    list-style-type: none;
    margin: 0;
    padding-right: 8px;
    overflow: hidden;
}

#navbar li {
    float: right;
}

#navbar li a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    font-family: Roboto Mono;
    font-weight: 300;
}

#navbar li:nth-child(1) {
    background-color: #04E762;
    border-radius: 10px;
}

#navbar li:nth-child(1):hover {
    background-color: #03af4b;
}

#navbar li:not(:first-child):hover {
    background-color: #464646;
    border-radius: 4px;
}

/* project hover */

.dropdown {
    display: none;
    position: absolute;
    background-color: #000000;
    min-width: 160px;
    z-index: 1;
    border-radius:  0px 8px 8px 8px;
    font-size: 15px;
    font-family: Roboto;
    font-weight: 100;
    box-shadow: 0 4px 8px rgba(143, 143, 143, 0.2);
}

#projects-dropdown:hover .dropdown {
    display: block;
}

.dropdown a:hover {
    background-color: #333;
    border-radius: 8px;
}


/*body border*/

#body_border {
    border: 1px solid #858585;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0%);
    margin-left: auto; margin-right: auto;
    height: 550vh;
    width: 95vw;
    background-size:cover;
    background-position: -300px -300px;
    background-repeat: no-repeat;
}

/* header */

#header {
    position: relative;
    padding-bottom: 200px;
    width: 90%; height: 80vh;
    margin: 0 auto;
    margin-top: 130px; margin-bottom:200px;
    border: 1px solid white;
    background-image: url(../images/earth.gif);
    background-size:cover;
    background-repeat: no-repeat;
    background-position: -200px -200px;
}

#head {
    color: #ececec;
    font-size: 30px;
    font-family: 'Rock Salt', cursive;
    font-weight: 95;
    letter-spacing: 2px;
    width: 12%; height: 170px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    line-height: 50px;
    text-align: center;
}


/*about section*/

.about {
    height: 100%;
    width: 60%;
    position: absolute;
    bottom: 0;
    right: 0;
    perspective: 800px;
    overflow: hidden;
}

.text-container {
    color: rgb(16, 16, 16);
    font-family: 'Roboto Mono';
    font-weight: 1000;
    text-align: right;
    font-size: 48px;
    margin-right: 20px;
    transform: rotateY(-20deg); /* Adjust the angle as needed */
    transform-origin: 100% 50%; /* Adjust the origin point as needed */
}

.text-container p:nth-child(1),
.text-container p:nth-child(2) {
    text-shadow: -1px 1px 0 #ececec,
                1px 1px 0 #ececec,
                1px -1px 0 #ececec,
                -1px -1px 0 #ececec;
}

.text-container p:nth-child(3),
.text-container p:nth-child(4),
.text-container p:nth-child(5),
.text-container p:nth-child(6),
.text-container p:nth-child(7),
.text-container p:nth-child(8),
.text-container p:nth-child(9) {
    color: #ececec;
}

/* info about myself */

.info {
    width: 90%;
    height: 500px;
    margin: 0 auto;
    margin-bottom: 220px;
    display: flex;
    background-color: #333333;
    border-radius: 32px;
}

.smiley {
width: 40%; height: 50%;
}

.picture {
    width: 300px; height: 300px;
    background-image: url(../images/smiley.gif);
    background-size: cover;
    background-color: #464646;
    border-radius: 360px;
    margin: 0 auto;
    position: relative;
    top: 40%;
}

.text {
    width: 60%; height: 100%;
}

.text p {
    font-family: Roboto Mono;
    color: #ececec;
    text-align: center;
    top: 26%;
    position: relative;
    font-size: 40px;
}


/* grid pictures */

.work {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 50px;
    font-family: Roboto Mono;
    font-weight: 500;
}

.imgcontainer {
    width: 90%; 
    height: 1000px;
    display: grid;
    grid-template-columns: 2fr 2fr;
    grid-template-rows: 2fr 2fr;
    column-gap: 32px; 
    row-gap: 32px;
    margin: 0 auto;
    margin-bottom: 200px;
}

.griditem  {
    border: 1px solid #ececec;
    transition: box-shadow 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 16px;
}

.griditem h1 {
    color: #ececec;
    font-size: 30px;
    text-align: center;
    margin-top: 16px;
    font-family: Roboto Mono;
    text-decoration:solid;
    font-weight: 500;
}

.griditem div {
    height: 60%;
    width: 80%;
    margin: 0px auto;
    margin-top: 40px;
    border-radius: 16px;
}

.div1 {
    background-image: url(../images/columbiamock.png);
    background-size: cover;
}
.div2 {
    background-image: url(../images/surfshop.png);
    background-size: cover;
}
.div3 {
    background-image: url(../images/projects.png);
    background-size: cover;
}
.div4 {
    background-image: url(../images/mount2.jpg);
    background-size: cover;
}


.griditem p {
    color: #ececec;
    font-size: 20px;
    text-align: center;
    margin-top: 16px;
    font-family: Roboto;
    text-decoration:solid;
    font-weight: 200;
}

.griditem:hover  {
    box-shadow:  0px 0px 4px 4px rgba(4, 231, 98, 0.5); 
    transform: scale(1.01);
}

/* about me */

.aboutme {
    height: 1000px;
    width: 90%;
    border: 2px solid white;
    margin: 0 auto;
    display: flex;
}

.aboutgraphic, .aboutcontainer {
    width: 50%; height: 100%;
}

.aboutgraphic {
    background-color: #333333;
    border-radius: 0px 500px 500px 0px;
    overflow: hidden;
}

.face {
    width: 200px; height: 400px;
    background-image: url(../images/face.png);
    background-size: cover;
    margin: 0 auto;
    background-position: -100px ;
    margin-top: 8%;
}

.aboutme h1 {
    color: #ececec;
    font-size: 70px;
    text-align: center;
    font-family: Rock Salt;
}

.aboutcontainer p{
    color: #ececec;
    font-size: 25px;
    font-family: Roboto;
    font-weight: 100;
    margin: 20px;
    margin-top: 20%;
}

.aboutcontainer a {
    color: #ececec;
    font-family: Roboto Mono;
    font-weight: 400;
    margin: 20px;
}


/* scrollbar */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: rgb(16, 16, 16);
    border-radius: 10px;
    border: 1px solid #ececec;
}

::-webkit-scrollbar-thumb {
    background-color: #ececec7a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #04E762;
}


/* footer */

footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #000000e0;
    color: #ececec;
}

.social-media a, .contact-form {
    padding: 20px;
    text-align: center;
}

.social-media {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.social-media a {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #ececec;
    text-decoration: none;
}

.social-media a:hover {
    background-color: #858585;
    border-radius: 16px;
}


.social-media a img {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    margin-bottom: 10px;
}

.contact-form h2 {
    color: #04E762;
    font-family: Rock Salt;
}

.contact-form form {
    display: grid;
    gap: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #858585;
    border-radius: 5px;
}

.contact-form button {
    background-color: #04E762;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer p{
    right: 0px;
    color: #858585;
    background-color: #000000e0;
    text-align: right;
    padding-right: 5px;
}



@media (max-width:850px) {

    #body_border {
        height: 570vh;
    }

    #header {
        background-size:cover;
        background-repeat: no-repeat;
        background-position: -300px 0px;
    }
    

#head {
    font-size: clamp(8px,.5em,52px);
    top: 3px;
    left: 10%;
    line-height: 20px;
    flex-grow: 0 1;
}

.text-container p {
    font-size: 23px;
}

/* Wrok created */

.imgcontainer {
    width: 90%; 
    height: 1000px;
    display: grid;
    grid-template-columns: 2fr ;
    grid-template-rows: 2fr 2fr 2fr 2fr;
    column-gap: 32px; 
    row-gap: 32px;
    margin: 0 auto;
    margin-bottom: 200px;
}

.griditem h1 {
    color: #ececec;
    font-size: 30px;
    text-align: center;
    margin-top: 16px;
    font-family: Roboto Mono;
    text-decoration:solid;
    font-weight: 200;
}

.griditem div {
    height: 60%;
    width: 80%;
    margin: 0px auto;
    margin-top: 0px;
    border-radius: 16px;
}

/* smiley face */

.picture {
    width: 150px; height: 150px;
    background-image: url(../images/smiley.gif);
    background-size: cover;
    background-color: #464646;
    border-radius: 360px;
    margin: 0 auto;
    position: relative;
    top: 65%;
}

.text p {
    font-family: Roboto Mono;
    color: #ececec;
    text-align: center;
    top: 15%;
    position: relative;
    font-size: 20px;
    line-height: 40px;
}

/* about me */

.face {
    display: none;
}

.aboutme h1 {
    color: #ececec;
    font-size: 30px;
    text-align: center;
    font-family: Rock Salt;
    margin-top: 450px;
}

.aboutcontainer p{
    color: #ececec;
    font-size: 14px;
    font-family: Roboto;
    font-weight: 100;
    margin: 20px;
    margin-top: 20%;
}

.aboutcontainer a {
    color: #ececec;
    font-family: Roboto Mono;
    font-weight: 400;
    margin: 20px;
}


/* footer */

.footer-grid {
    grid-template-columns: 1fr;
}

.social-media {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.social-media a {
    margin: 0 10px;
}

.colors {
    display: none;
}
}

@media (max-width:500px) {

    #head {
        display: none;
    }
}