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

:root {
    --main-clr: rgb(0, 0, 0);
    --second-clr: rgb(116, 220, 161);
    --third-clr: rgb(106, 224, 102);
}

html, body {
    height: 100%;
    width: 100%;

    scroll-behavior: smooth;
    font-family: 'Courier New', Courier, monospace;
}

.highlight {
    color: var(--second-clr);
    text-shadow: var(--third-clr) 1px 0 8px;
}

.title {
    font-size: 4rem;
}

.center {
    text-align: center;
}

/* Error page */

.error-container {
    display: grid;
    grid-row-gap: 5px;
    justify-content: center;
    text-align: center;
}

.error-container .section-separator {
    width: 60%;
    margin: 0 auto;
}

.error-container .project-link {
    width: fit-content;
    margin: 0 auto;
}

/* Error page */

/* Welcome view */
#welcome-container {
    height: 100vh;
}

#welcome-img-container {
    height: 60%;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

#welcome-picture {
    border-radius: 5px;

    box-shadow: 0 0 10px 1px rgba(106,224,102,0.75);
    -webkit-box-shadow: 0 0 10px 1px rgba(106,224,102,0.75);
    -moz-box-shadow: 0 0 10px 1px rgba(106,224,102,0.75);
}

@keyframes zoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

#welcome-picture:hover {
    animation: zoom 1s forwards;
}

#welcome-text-container {
    width: 100%;
    padding-left: 15%;
    word-wrap: anywhere;
}
/* Welcome view */

/* Scroll down arrow */
.arrow-down {
    width: 60px;
    height: 40px;
    margin: 0 0 0 -30px;
    position: absolute;
    left: 50%;
    bottom: 0;
    -webkit-animation: arrow 0.5s 1s infinite ease-out alternate;
}

.arrow-down:hover {
    -webkit-animation-play-state: paused;
    cursor: pointer;
}

.left {
    position: absolute;
    height: 10px;
    width: 40px;
    background: black;
    top: 10px;
    left: 10px;
    -webkit-border-radius: 4px;
    -webkit-transform-origin: 5px 50%;
    -webkit-animation: leftArrow 0.5s 1s infinite ease-out alternate;
    transform: rotate(225deg);
}

.right {
    position: absolute;
    height: 10px;
    width: 40px;
    background: black;
    top: 10px;
    left: 10px;
    -webkit-border-radius: 4px;
    -webkit-transform-origin: 5px 50%;
    -webkit-animation: rightArrow 0.5s 1s infinite ease-out alternate;
    transform: rotate(-45deg)
}

@-webkit-keyframes arrow {
    0% { bottom: 0; }
    100% {  bottom: 20px; }
}
/* Scroll down arrow */

#project-container {
    width: 100%;
}

#projects {
    width: 80%;
    margin: 0 auto;
}

#projects div {
    margin-top: 20px;
    margin-bottom: 20px;
}

.project {
    width: 80%;
    margin: 0 auto;
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 15px;

    border: 1px solid var(--main-clr);
    border-radius: 5px;
    word-wrap: anywhere;
}

.project-img {
    height: auto;
    margin: 0 auto;
}

.project-info {
    font-size: 1.4rem;
}

.project-link-container {
    display: flex;
    justify-content: space-evenly;
    align-items: end;
}

.project-link {
    height: 48px;
    padding: 2px 16px;
    border: 1px solid black;
    border-radius: 5px;

    text-decoration: none;
    font-weight: bold;
    font-size: 18px;

    display: inline-flex;
    align-items: center;

    color: var(--main-clr);
    box-shadow:
            rgba(45, 35, 66, 0.4) 0 4px 8px,
            rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
            #D6D6E7 0 -3px 0 inset;

    cursor: pointer;
    line-height: 1;
    transition: box-shadow .15s, transform .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow, transform;
}

.project-link:hover {
    box-shadow:
            var(--second-clr) 0 2px 4px,
            var(--third-clr) 0 7px 13px -3px,
            var(--third-clr) 0 -3px 0 inset;
    transform: translateY(-2px);
}

.project-link:active {
    box-shadow: var(--third-clr) 0 3px 7px inset;
    transform: translateY(2px);
}

.st-sub-container {
    width: 80%;
    margin: 0 auto;
}

.detailed-skill {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 50px;
}

.detailed-skill img {
    width: 100px;
    height: 100px;
}

#contact-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.contact-item img {
    width: 75px;
    height: 75px;
}

.contact-item a {
    font-weight: bold;
    padding-left: 15px;
}

#credits-dialog {
    margin: 100px auto 0;
    border-radius: 5px;

    box-shadow: 0 0 10px 1px rgba(106,224,102,0.75);
    -webkit-box-shadow: 0 0 10px 1px rgba(106,224,102,0.75);
    -moz-box-shadow: 0 0 10px 1px rgba(106,224,102,0.75);

}

#credits-dialog ul {
    list-style-type: none;
}

#credits-dialog li {
    padding-top: 10px;
    padding-left: 20px;
}

.credits-btn {
    display: flex;
    width: fit-content;
    margin: 20px auto;
}

/* Media queries */
@media screen and (max-width: 1050px) {
    #projects {
        width: 90%;
    }
}

@media screen and (max-width: 880px) {
    .project {
        width: 95%;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}

@media screen and (max-width: 450px) {
    #welcome-picture, .project-img {
        width: 80%;
    }

    .title {
        font-size: 2.5rem;
    }

    .project-link-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-row-gap: 10px;
    }

    .project-link {
        width: fit-content;
        margin: 0 auto;
    }
}
/* Media queries */