.top-frame {
    position: relative;
    width: 100%;
    height: 35vw;
    min-height: 200px;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 35px;
}

.foreground-text {
    position: absolute;
    height: 25%;
    width: 100%;
    color: white;
    text-align: center;
    align-items: center;
    display: grid;
}

.foreground-text .title-text {
    position: absolute;
    top: 0px;
    width: 100%;
    height: auto;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 350%;
    color: white;
}

.foreground-text .clickable-message {
    position: absolute;
    height: 25%;
    width: 100%;
    bottom: 0px;
    color: white;
    font-size: 190%;
    justify-content: center;
    align-items: center;
    display: flex;
}

@media screen and (max-width: 900px) {

    .foreground-text .title-text {
        font-size: 100%;
    }

    .foreground-text .clickable-message {
        font-size: 60%;
    }
}

.clickable-message:hover {
    color: lightblue;
}

.emoji {
    margin-right: 10px;
}

.text-with-underline {
    text-decoration: underline;
}

.top-frame-background-image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.top-frame-illustration {
    position: absolute;
    width: 70%;
    height: 100%;
    opacity: 0.5;
    z-index: 1;
}


/* GOALS.CSS */


#goals {
    width: 90%;
    position: relative;
    display: left;
    justify-content: left;
    align-items: left;
    margin-left: 5%;
    margin-right: 5%;
}

#goals .content {
    flex: 1;
}

#goals h2 {
    width: 100%;
    height: auto;
    text-align: left;
    font-weight: bold;
    font-size: 350%;
    margin-bottom: 5px;
    display: flex;
}

@media screen and (max-width: 700px) {

    #goals h2 {
        font-size: 190%;
    }

}

#goals p {
    text-align: left;
    font-size: 110%;
    height: 30%;
    width: 100%;
    padding-bottom: 8px;
}

#goals h3 {
    margin-top: 25px;
    padding-bottom: 15px;
    text-align: left;
    font-size: 200%;
    font-weight: 600;
}

@media screen and (max-width: 700px) {

    #goals h3 {
        font-size: 150%;
    }

}

#goals p span {
    display: inline-block;
    margin-right: 8px;
}

#goals a {
    color: #3b82f6;
    text-decoration: none;
}

#goals a:hover {
    text-decoration: underline;
}

#goals img {
    width: 70%;
    height: auto;
    opacity: 0.8;
}

@media screen and (max-width: 1370px) {

    #goals img {
        width: 100%;
    }

}


/* MOVING CARDS.CSS */


.moving-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.393);
    border-radius: 6px;
    animation: move-diagonally 3s ease-in-out infinite alternate;
    padding: 15px;
}

.moving-background-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.393);
    border-radius: 6px;
    animation: move-diagonally 6s ease-in-out infinite alternate;
    padding: 15px;
}

.top-frame-mobile-background-image {
    display: none;
}

@media screen and (max-width: 1300px) {

    .moving-card {
        display: none;
    }

    .moving-background-card {
        display: none;
    }

    .top-frame-mobile-background-image {
        display: flex;
    }

    .top-frame-background-image {
        display: none;
    }

}

@media screen and (max-width: 550px) {

    .moving-card {
        display: none;
    }

    .moving-background-card {
        display: none;
    }

    .top-frame-mobile-background-image {
        display: none;
    }

    .top-frame-background-image {
        display: flex;
    }

}

.moving-image {
    animation: move-horizontal 4s ease-in-out infinite alternate;
}

@media screen and (max-width: 900px) {

    .moving-image {
        display: none;
    }

}

.card-title-text {
    font-size: 100%;
    text-align: center;
}

.card-description-text {
    font-size: 14px;
    margin: 5px 0;
    text-align: center;
}

.card-image img {
    width: auto;
    height: auto;
    object-fit: cover;
}

@keyframes move-horizontal {
    0% {
        transform: translate(-100px, 0px);
    }

    100% {
        transform: translate(100px, 0px);
    }
}

@keyframes move-diagonally {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -30px);
    }
}



/* GALLERY.CSS */


.gallery {
    text-align: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding-left: 10%;
    padding-right: 10%;
    margin-bottom: 65px;
}

.gallery h7 {
    font-size: 300%;
    margin-bottom: 55px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 5px;
}

.gallery-item {
    width: 100%;
    height: 90%;
    position: relative;
    align-self: center;
    display: flex;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.393);
    border-radius: 6px;
}

.gallery-item p {
    height: 100%;
    width: 100%;
    position: absolute;
    font-size: 175%;
    align-content: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.3;
}


/* BORDERS.CSS */


.border-divs {
    width: 100%;
    height: 10%;
    background-color: #1a2949;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 55px;
    margin-bottom: 55px;
}

.border-container {
    width: 90%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.text-div {
    height: 100%;
    width: fit-content;
    color: white;
    font-size: 200%;
    text-align: center;
    border-radius: 10px;
}

.border-divs img {
    padding-left: 5px;
    padding-right: 5px;
    width: 5%;
    height: 5%;
}

@media screen and (max-width: 900px) {

    .text-div {
        font-size: 60%;
    }

    .border-divs img {
        padding-left: 5px;
        padding-right: 5px;
        width: 15%;
        height: 15%;
    }

}