html {
    scroll-behavior: smooth;
    font-family: Lato, sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

p {
    font-family: Lato, sans-serif;
}

.wrapper {
    height: 65vh;
    width: 100%;
}

footer {
    height: 700px;
    width: 100%;
    background-color: #09253F;
}

header {
    position: relative;
    width: 100%;
    height: 65vh;
    background-color: #09253F;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div1,
.div2 {
    position: absolute;
    /* width: 500px; */
    height: 50px;
    transition: transform 2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: lato;
}

.div1 {
    z-index: 0;
}

.purpose {
    background-color: transparent;
    border: 10px solid transparent;
    color: white;
    font-size: 85px;
    font-weight: 900;
    margin: 0;
    padding: 0;
}

.div2 {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    width: 500px;
    background-color: #1C2F38;
    z-index: 1;
    border: 10px solid white;
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.rivet {
    width: 7px;
    height: 7px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: solid 4px white;
    background-color: transparent;
}

.logo-part-a {
    font-size: 45px;
    font-weight: 100;
    color: white;
    /* position:relative; */
    /* float:left; */
}

.logo-part-b {
    font-size: 16px;
    /* float: right; */
    /* margin: 0 5px 0 0; */
    color: white;
}

/* .logo-part-a::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: solid 4px white;
    background-color: transparent;
    vertical-align: 15%;
}

.logo-part-b::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: solid 4px white;
    background-color: transparent;
    vertical-align: middle;
} */

.move-up {
    transform: translateY(-70%);
}

.move-down {
    transform: translateY(70%);
}

#portfolio {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.project {
    display: flex;
    justify-content: center;
    margin: 20px 40px 75px 0px;
    font-family: Lato, sans-serif;
    border-top: solid 28px #676565;
    border-bottom: solid 28px #676565;
    border-left: solid 4px #676565;
    border-right: solid 4px #676565;
    flex-wrap: wrap;
    width: 320px;
    border-radius: 26px;
}

/* 
.project:nth-child(odd) .project-view {
    order: 1;
}
.project:nth-child(odd) .project-desc {
    order: 2;
}
.project:nth-child(even) .project-view {
    order: 2;
}
.project:nth-child(even) .project-desc {
    order: 1;
}
*/
.project-view,
.project-desc {
    flex: 1;
    margin: 10px;
}

.project-view {
    min-width: 90%;
    height: 280px;
    /* border-radius: 10px; */
    overflow: hidden;
    display: block;
    align-items: center;
    justify-content: center;
    background-color: #ccc;
    box-shadow: 1px 1px 14px gray;
}

.project-view img {
    width: 100%;
    height: auto;
    border: none;
    zoom: 50%;
    transition: transform 0.5s;
}

.project-view img:hover {
    transform: scale(1.1);
}

.project-view iframe {
    width: 100%;
    height: 100%;
    border: none;
    zoom: 50%;
}

.project-desc {
    display: flex;
    justify-content: center;
    /* background-size: cover; */
    max-width: 75%;
    text-align: center;
    padding: 0;
    /* border-radius:10px; */
    align-items: center;
    flex-direction: column;
    margin: 0;
}

.project-title {
    cursor: pointer;
    background-color: #808080;
    color: #ffffff;
    margin: 0;
    width: 100%;
    text-align: center;
    height: 34px;
    line-height: 34px;
    font-size: 1.25rem;
    font-weight: 300;
    font-variant: all-petite-caps;
}

.project-title:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / 82%);
}

.modal-content {
    background-color: rgb(6 13 24 / 80%);
    margin: 5% auto;
    padding: 1%;
    border: 5px solid #ffffff;
    width: 100%;
    max-width: 901px;
    height: 80%;
    display: flex;
    flex-direction: column;
    zoom: 90%;
    border-radius: 10px;
}

.modal-content iframe {
    flex: 1;
    width: 100%;
    height: 100%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 18px;
    font-weight: normal;
    cursor: pointer;
    margin: 0 0 8px 0;
    text-align: right;
}

.close:hover,
.close:focus {
    color: #486f96;
    text-decoration: none;
    cursor: pointer;
}

.down-dark {
    background-color: #09253F;
    margin: 0;
    padding: 1em 0 10em 0;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
}

#content {
    width: 75vw;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    border-bottom: solid 1px #09253f;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #3498db;
    position: relative;
}


.shooting-star {
    width: 100px;
    height: 100px;
    border-bottom-right-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-left-radius: 50%;
    border-left: none;
    border-top: none;
    border-right: solid 10px orange;
    border-bottom: solid 10px orange;
    /*background-color: #f1c40f;*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(20%, 20%);
    /*animation: spiralIn 4s linear; /*fadeOut 4s linear;*/
}

.shooting-star::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f1c40f;
    position: absolute;
    bottom: 20%;
    left: 0%;
    transform: translate(-50%, -50%) rotate(0deg);
    /*animation: tail 4s linear;*/
}

.content {
    position: absolute;
    top: 0;
}

.loader {
    position: absolute;
    top: 0;
    margin: 0 auto;
    border-radius: 50%;
    border-top: 4px solid #ccc;
    padding: 4px;
    width: 90px;
    height: 90px;
    background: transparent;
}

.loader {
    /*-webkit-animation: spin 2s linear; /* Safari */
    animation: spin 2s linear 3, fadeOut 6s linear 1;
    animation-fill-mode: forwards;
}

.content a:hover + .loader {
    animation: spin 2s linear 1, fadeOut 2s linear 1;
    animation-fill-mode: forwards;
}

@keyframes spiralIn {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(75px);
    }

    50% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(50px);
    }

    100% {
        transform: translate(-50%, -50%) rotate(720deg) translateX(25px);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes tail {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(720deg);
    }
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Add animation to "page content" */
.animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 1s
}

@-webkit-keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0
    }

    to {
        bottom: 0px;
        opacity: 1
    }
}

@keyframes animatebottom {
    from {
        bottom: -100px;
        opacity: 0
    }

    to {
        bottom: 0;
        opacity: 1
    }
}



@media (max-width: 768px) {
    body {
        width: 100%;
    }

    header span {
        font-size: 48px;
    }

    #portfolio {
        justify-content: center;
    }

    .projects-container {
        flex-direction: column;
    }

    .project {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 5px auto 20px auto;
    }

    .project-desc {
        text-align: center;
        width: 90%;
        display: none;
    }

    .project-view iframe {
        width: 100%;
        height: 400px;
        zoom: 100%;
    }

    #content {
        width: 100%;
        margin: 0;
    }

    #content h2 {
        margin: 0 0 0 20px;
    }
}

@media only screen and (max-width: 600px) {

    .purpose,
    .logo-wrapper {
        transform: scale(0.7);
    }

    .move-up {
        transform: translateY(-49%);
    }

    .move-down {
        transform: translateY(49%);
    }
}

@media only screen and (max-width: 400px) {

    .purpose,
    .logo-wrapper {
        transform: scale(0.6);
    }

    .div1,
    .div2 {
        width: 100%;
    }

    .logo-part-a {
        width: 460px;
    }

    .move-up {
        transform: translateY(-35%);
    }

    .move-down {
        transform: translateY(45%);
    }
}

@media only screen and (max-width: 320px) {

    .purpose,
    .logo-wrapper {
        transform: scale(0.5);
    }

    .move-up {
        transform: translateY(-35%);
    }

    .move-down {
        transform: translateY(35%);
    }
}