:root {
    --color_primary: #ff2b4e;
    --color_accent: #eeeeee /*#4ecdca*/;

    --dim_contentwidth: 1000px;
    --dim_dlbutton_height: 60px;

    --font_accent: "Fredoka One", sans-serif;
}

/* GENERAL COMPONENTS */

html {
    scroll-behavior: smooth;
}

body * {
    box-sizing: border-box;
    position: relative;
    font-family: "Roboto", sans-serif;
}

a.anchor {
    display: block;
    position: relative;
    top: -250px;
    visibility: hidden;
}

body {
    margin: 0px;
}

.chapter {
    margin-bottom: 50px;
}

h2 {
    margin-top: 30px;
    margin-bottom: 40px;
}

.content_container {
    width: var(--dim_contentwidth);
    max-width: 90%;
}

.center_horiz {
    display: flex;
    justify-content: center;
    /*flex-direction: column;*/
}

.center {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.row {
    display: flex;
    flex-direction: row;
}

.center_column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.placeholder {
    background-color: purple;
}

/* HEADER COMPONENTS */

#logo {
    height: 40px;
    padding-right: 50px;
}

.header_base {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: var(--color_primary);
    width: 100%;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    color: white;
}

.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.navbar_mobile_icon {
    background-image: url(../assets/icons/menu.svg);
    background-size: contain;
    background-repeat: no-repeat;
    display: none;
    height: 30px;
    width: 30px;
}

.navbar_mobile {
    display: none;
    flex-direction: column;
    justify-content: start;
    align-items: stretch;
    padding: 30px;
    margin-top: -20px;
    background-color: #bb1d37;
}

.navbar_mobile a {
    color: saddlebrown;
    margin-top: 10px;
    margin-bottom: 10px;
}

.navbar a {
    font-size: large;
    font-weight: 600;
    text-decoration: none;
    padding-left: 20px;
    padding-right: 20px;
    color: white;
}
.navbar a:hover {
    color: #ffffffaa;
}

/* HERO COMPONENTS */

.hero_base {
    margin-top: -10px;
    padding-top: 20px;
    background-color: var(--color_primary);
    width: 100%;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 20px;
}

.hero {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: 450px;
}

.hero_content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex: 1;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    padding: 20px;
    padding-left: 0px;
}

.hero_text {
    min-width: 200px;
    margin-top: 50px;
    font-family: var(--font_accent);
    font-size: min(60pt,calc(100vh * 0.1));
    color: white;
}

.hero_dlbuttons {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    filter: grayscale(100%);
}

.hero_dlbuttons a {
    max-height: var(--dim_dlbutton_height);
    padding: 0;
    margin: 0;
}

.hero_dlbuttons a img {
    display: block;
    max-height: var(--dim_dlbutton_height);
    object-fit: cover;
}

/* APPIMAGE COMPONENTS */

.appimage_placeholder {
    max-width: 260px !important;
    min-width: 260px;
    margin-right: 100px;
}

.app_video_base {
   width: 450px;
   height: 300px;
   margin-right: 20px;
   margin-top: 90px;
   border: none;
   border-radius: 10px;
}

.appimage_placeholder_wide {
    max-width: 400px !important;
    min-width: 400px;
    margin-right: 100px;
}

.appimage_base {
    position: relative;
    z-index: 10;
    background-color: green; /*var(--color_primary);*/
}

.appimage_image {
    margin: 20px;
    margin-top: 50px;
    margin-bottom: max(-550px, calc((100vh * 0.6 + 50px) * -1));
    /*height: 500px;
    width: 260px;*/
    height: min(500px, calc(100vh * 0.6));
    width: min(260px, calc(100vh * 0.6 * 0.53));
    border-radius: 20px;
    background-image: url(../assets/img/screenshot_groups.png);
    background-size: cover;
    border: min(7px,calc(100vh * 0.009)) solid #dbdbdb;
    box-shadow: 0px 8px 5px -2px #404040aa;
}

.appimage_image video {
    border-radius: 13px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.appimage_section {
    min-height: 500px;
    margin-bottom: 50px;
}

/* FOOTER COMPONENTS */

/* FOOTER COMPONENTS */
.divider {
    background-color: var(--color_accent);
    height: 5px;
}

.funding_container img{
    height: 180px;
}

.funding_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.funding_container img {
    margin:auto;
}

.footer_base {
    width: 100%;
    background-color: #333333;
    color: white;
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /*flex-wrap: wrap;*/
    padding-top: 20px;
    padding-bottom: 50px;
}

.footer_section {
   /* flex: 1;
    padding-left: 20px;
    padding-right: 20px;
    color: white;*/
    min-width: 40%;
    padding: 5px;
}

.footer_section h4 {
    margin-top: 50px;
    margin-bottom: 20px;
}
.footer_section  a {
    color: white;
    text-decoration: none;
}
 
.footer_section #contactlinks a {
    color: white;
    text-decoration: underline;
}


/* SECTION COMPONENTS */

.section_base {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-bottom: 50px;
}

.section_reversed {
    flex-direction: row-reverse;
}

.section {
    max-width: 400px;
    min-width: 200px;
}

.section h3 {
    font-family: var(--font_accent);
    font-size: 16pt;
}
.section button {
    margin-top: 10px;
    background-color: transparent;
    border: 1px solid var(--color_primary);
    border-radius: 5px;
    padding: 5px;
    padding-left: 25px;
    padding-right: 25px;
    color: var(--color_primary);
    font-size: large;
}

.section button:hover {
    background-color: var(--color_primary);
    color: white;
}

.section_media {
    max-width: 300px !important;
    min-width: 300px;
    margin-right: 100px;
    padding: 20px;
}

.section_media img {
    border-radius: 5px;
    max-width: 100%;
    max-height: 100%;
}

.highlight_base {
    background-image: radial-gradient(circle 1939px at 74.7% 20%, #ffffff 0%, #eeeeee 76.9%);
    /*background-image: radial-gradient( circle 321px at 8.3% 75.7%,  rgba(209,247,241,1) 0%, rgba(249,213,213,1) 81% );*/
}

.team_member {
    width: 370px;
    margin: 20px;
    color: #c0c0c0;
}

.team_member p {
    background: -webkit-linear-gradient(#ccc, transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.team_member:hover p{
    color: #606060;
    background: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.team_member h3 {
    color: black;
}

.team_member h4 {
    color: #303030;
}

.team_image {
    border-radius: 30px;
    height: 200px !important;
    width: 200px !important;
    object-fit: cover;
    object-position: top;
    
    
}

/* UPDATE COMPONENTS */

.update_base {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 30px;
    color: #505050;
}

.update_date {
    min-width: 120px;
    font-size: large;
    margin-bottom: 12px;
}

.update_content {
    flex: 1;
    min-width: 300px;
}

.update_content p {
    margin: 0px;
    text-align: justify;
}

.update_content h3 {
    margin: 0px;
    margin-bottom: 7px;
}

/* ABOUT COMPONENTS */

.about_base {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    
}

.about_base h2 {
    font-size: 46pt;
    font-family: var(--font_accent);
}

.about_base a {
    text-decoration: none;
    transform: rotate(21deg);
    padding: 3px;
    margin-left: 2px;
    margin-right: 2px;
    color: var(--color_accent);
    font-weight: bold;
}

#appimage_hero_video {
    background-color: #efefef;
}

/* SMALL SCREENS */

@media only screen and (max-width: 850px) {
    #appimage{
        display: none;
    }

    .navbar {
        display: none;
    }
    .navbar_mobile_icon {
        display: block;
    }

    /*.navbar_mobile{
        display: flex;
    }*/

    .appimage_placeholder_wide {
        display: none;
    }

    .appimage_base {
        margin-top: -20px;
        padding-top: 30px;
        top: 0px !important;
        transform: rotate(0deg) !important;
        /*background-color: #efefef;*/
    }

    .appimage_image {
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        transform: rotate(-2deg);

        /*Fix styling for smaller devices*/
        height: calc(100vh * 0.78);
        width: calc(100vh * 0.78 * 0.53);
        border-width: 5px;
    }

    .hero {
        min-height: unset;
    }

    .hero_content {
        height: auto;
        justify-content: start;
    }

    .hero_text {
        margin-top: 0;
        font-size: 27pt;
    }

    .appimage_section {
        min-height: unset;
    }

    .section_media {
        margin-left: auto;
        margin-right: auto;
    }
}