* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;

}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 1.8em;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 300;
    color: #f4e1a6;
    background:
    radial-gradient(rgba(255,255,255,0) 0, 
    rgba(255, 255, 255, 0.123) 30%, 
    rgba(255, 255, 255, 0.158) 12%, 
    rgba(18, 3, 41, 0.212) 33%) 0 0,
    radial-gradient(rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.055) 11%,
    rgba(255, 255, 255, 0.082) 13%,
    rgba(36, 9, 77, 0.164) 14%) 0 0,
    radial-gradient(rgba(255, 255, 255, 0) 0, 
    rgba(255, 255, 255, 0.055) 12%, 
    rgba(255, 255, 255, 0.137) 19%, 
    rgba(18, 3, 41, 0.096) 20%) 0 110px,
    radial-gradient(rgba(255,255,255,0) 0, 
    rgba(255, 255, 255, 0.062) 11%, 
    rgba(255, 255, 255, 0.089) 13%, 
    rgba(255,255,255,0) 14%) -130px -170px,
    radial-gradient(rgba(255,255,255,0) 0, 
    rgba(255, 255, 255, 0.055) 11%, 
    rgba(255, 255, 255, 0.034) 13%, 
    rgba(255, 255, 255, 0) 14%) 130px 370px,
    radial-gradient(rgba(255,255,255,0) 0, 
    rgba(255, 255, 255, 0.062) 11%, 
    rgba(255, 255, 255, 0.068) 8%, 
    rgba(255,255,255,0) 14%) 0 0,
    linear-gradient(45deg, 
    #0a0118 0%, 
    #160335 20%, 
    #1c0541 30%, 
    #200229 40%, 
    #21062c 50%, 
    #22042e 60%, 
    #1b0225 70%, 
    #1c0344 80%, 
    #170436 90%, 
    #1b0244 100%);
    background-size: 470px 470px, 970px 970px, 410px 410px, 610px 610px, 530px 530px, 730px 730px, 100% 100%;
    background-color: #1c0344;

}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    text-align: center;
    height: 120px;
    top: 0;
    z-index: 100;
}

.homebtn img {
    height: 80px;
}

.homebtn img:hover {
    filter: drop-shadow(0 0 0.3em #c9ad54);
}


#wrapper {
    display: flex;
    max-width: 1200px;
}

main {
    width: 100%;
    row-gap: 10px;
    column-gap: 10px;
    column-gap: 10px;
    display: flex;
    flex-flow: row wrap;
    border-radius: 60px;
    background-color: #ffffff15;
    backdrop-filter: blur(10px);
    box-shadow: 2px 2px 5px #00000052;
    padding: 20px;

}

article {
    row-gap: 10px;
    padding: 20px;
}


#about {
    display: flex;
    margin-top: 10px;
    flex-flow: row wrap;
    padding-top: 20px;
    width: 100%;

}



#intro {
    display: block;
    height: fit-content;
    width: 100%;

}

#intro .headshot {
    float: left;
    width: 30%;
    min-width: 150px;
    margin: 0 20px 10px 0;
    border-radius: 2px;
    box-shadow: 2px 2px 5px #000000a1;
}

#intro p {
    margin-bottom: 10px;
}

hr {
    border-top: 1px solid #00d0ff6b;
    border-radius: 50%;
    width: 90%;
    margin: 10px auto 15px;
}

#skills {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    margin: auto;
    gap: 10px;

}

#skills .right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: stretch;
    flex-direction: column;
    min-width: 400px;
}

#skills .left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    min-width: 400px;
}

.download {
    align-self: center;
    width: 100px;
    background-color: #ffd500;
    align-items: center;
    display: flex;
    padding-top: 5px;
    border-radius: 2px;
    justify-content: center;
}

.dl-button {
    text-align: center;
    font-size: 30px;
    color: #0a0118;    
}

.dl-button:hover {
    transform: rotate(360deg);
    transition: transform 1s ease-in-out;
}

.download:hover {
    background-color: #ff9100;
    transform: ease 0.3s;
}


#skills .tiles {
    width: 100%;
    flex-grow: 1;

}
.tiles {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    border-radius: 20px;
    gap: 10px;
}

.tile {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    font-weight: 400;
    color: #fff;
    flex: 1 1 calc(33.333% - 20px); 
    box-shadow: 2px 2px 5px #00000059;
}

.skill.tile {
    height: auto;
    padding: 10px 5px;

}

.project.tile {
    padding: 10px;

}



.project.tile:nth-child(2):hover,
.project.tile:nth-child(5):hover {
    background-color: #ff00c3;
    transition: background-color 0.3s ease;
}


.skill.tile:nth-child(2),
.skill.tile:nth-child(5),
.skill.tile:nth-child(8),
.skill.tile:nth-child(11) {
    background-color: #00d0ff65; 
}

.skill.tile:nth-child(3),
.skill.tile:nth-child(6),
.skill.tile:nth-child(9),
.skill.tile:nth-child(12),
.skill.tile:nth-child(14),
.project.tile:nth-child(2),
.project.tile:nth-child(5) {
    background-color: #ff00c36e;
}


.skill.tile:nth-child(1),
.skill.tile:nth-child(4),
.skill.tile:nth-child(7),
.skill.tile:nth-child(10),
.skill.tile:nth-child(13),
.project.tile:nth-child(1),
.project.tile:nth-child(3),
.project.tile:nth-child(4),
.project.tile:nth-child(6) {
    background-color: #6600ff75;
}

.project.tile:nth-child(1):hover,
.project.tile:nth-child(3):hover,
.project.tile:nth-child(4):hover,
.project.tile:nth-child(6):hover {
    background-color: #6600ff;
    transition: background-color 0.3s ease;
}

#projects {
    min-width: 100%;
}

h1, h2 {
    color: #00d0ff;
    width: 100%; 
    text-align: center;
    justify-content: center;
    vertical-align: middle;
    font-size: 1.3em;
    font-weight: 600;
}

h3 {
    margin-bottom: 10px;
    color: #00d0ff;
}

section {
    border-radius: 20px;
    width: 100%;
    height: 100%;
}

div p:not(:last-child) {
    margin-bottom: 15px;
}

footer {
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer i {
    font-size: 0.7em;
}

footer-tag {
    margin: auto;
}

.contact-shortcuts {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.contact-shortcuts img {
    height: 100%;
    max-height: 35px;
    margin: 1em;
}

.contact-shortcuts img:hover {
    filter: drop-shadow(0 0 0.3em #c9ad54);
}


@media only screen and (max-width: 768px) {

    main {
        width: 100%;
        flex-direction: column;
    }


    .footer-content {
        flex-direction: column;
        align-items: center;
        
    }

    .footer-homebtn {
        order: 4;
    }

    .contact-shortcuts {
        width: 100%;
    }

}
