/* Sets the base font size for consistency across the page. */
html {
    font-size: 100%;
    background-color: rgb(30, 30, 30);
}

/*
 * Both html and body must have height set to 100% for flexbox to work properly.
 * We also remove margin and padding to prevent any unwanted gaps.
 */
html, body {
    height: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/*
 * The body tag acts as our main content container.
 * It's where we set the overall background, text color, max-width, and centering.
 * It's also the flexbox container that allows the main element to grow vertically.
 * This is where we now apply the `black` background color and `padding`.
 */
body {
    font-family: "Roboto", sans-serif;
    background-color: black;
    color: rgb(230, 230, 230);
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
}

/*
 * The main element no longer needs its own background color or padding,
 * but `flex-grow: 1` is still crucial to ensure it expands to fill
 * the available vertical space between the header and any footer.
 */
main {
    flex-grow: 1;
}



h1 {
    font-size: 2.0rem;
    font-weight: normal;
    line-height: 1;
    margin-top: 2.0rem;
    margin-bottom: 2.0rem;
}


h2 {
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1;
    margin-top: 1.8rem;
    margin-bottom: 1.8rem;
}


h3 {
    font-size: 1.6rem;
    font-weight: normal;
    line-height: 1;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
}


h4 {
    font-size: 1.4rem;
    font-weight: normal;
    line-height: 1;
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
}


h5 {
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}


h6 {
    font-size: 1.0rem;
    font-weight: normal;
    line-height: 1;
    margin-top: 1.0rem;
    margin-bottom: 1.0rem;
}


p {
    font-size: 1rem;
    text-indent: 2rem;
    line-height: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

a {
    color: rgb(0, 180, 250);
}

b {
    font-weight: 600;
}


.page_header {
    padding: 1rem;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    border-bottom-color: rgb(250, 100, 100);
    border-bottom-width: 0.1rem;
    border-bottom-style: solid
}

.page_header_language_selector_div {
    display: flex;
    justify-content: flex-end;
}

.language-selector-dropdown {
    align-self: flex-end;
    margin-bottom: 1rem;
    position: relative;
    width: fit-content;
    min-width: 14rem;
    user-select: none;
    cursor: pointer;
    display: inline-block; /* This is your correct fix */
}
.language-selector-dropdown .selected-option {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 1rem;
    border: 0.1rem solid rgb(0, 180, 250);
    border-radius: 1rem;
    background-color: rgb(20, 20, 20);
    transition: all 0.2s ease;
}
.language-selector-dropdown .selected-option:hover {
    background-color: rgb(125, 125, 125);
}
.language-selector-dropdown .selected-option::after {
    content: '▼';
    color: rgb(0, 180, 250);
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}
.language-selector-dropdown.active .selected-option::after {
    transform: rotate(180deg);
}
.language-selector-dropdown .selected-option img {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.4rem;
    object-fit: cover;
}
.language-selector-dropdown .language-selector-option img {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.3rem;
    object-fit: cover;
}
.language-selector-options-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgb(20, 20, 20);
    border: 0.1rem solid rgb(0, 180, 250);
    border-top: none;
    border-radius: 1rem;
    z-index: 100;
    box-shadow: 0 0.5rem 1rem 0 #000;
}
.language-selector-option {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.4rem 0.6rem;
    transition: background-color 0.2s ease;
}
.language-selector-option:hover {
    background-color: rgb(125, 125, 125);
    border-radius: 1rem;
}


.page_header_section {
    display: flex;
    flex-direction: column;
}

.page_header_section_div_icon_n_title_n_description {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page_header_section_icon_image {
    width: 10%;
    min-width: 120px;
    border-radius: 50%;
    box-shadow: 1px 1px 2px 2px rgb(125, 125, 125);
}

.page_header_section_div_title_n_description{
    flex-grow: 1;
}

.page_header_section_title {
    color: rgb(250, 100, 100);
    margin-bottom: 1rem;
}

.page_header_section_description {
    font-size: 1.2rem;
    margin-top: 1rem;
    text-align: right;
}

.page_header_breadcrumb_nav {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    margin-top: 1rem;
    align-items: center;
    font-size: 0.8rem;
}

.page_header_breadcrumb_item_homepage_div {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page_header_breadcrumb_item_homepage_image {
    height: 1.2rem;
    width: 1.2rem;
}

.page_header_breadcrumb_item_active {
    display: flex;
    align-items: center;
}

.page_header_breadcrumb_item_active_link {
    text-decoration: none;
}

.page_header_breadcrumb_item_current {
    font-size: 1.0rem;
}

.page_header_breadcrumb_list {
    list-style: none; /* Removes the list numbers/bullets */
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem; /* This replaces the old gap on the main div to space out list items */
}

.page_header_breadcrumb_list li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page_footer {
    padding: 0.5rem 1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-top-color: rgb(250, 100, 100);
    border-top-width: 0.1rem;
    border-top-style: solid;
}

.page_footer_p_copy_n_uen{
    font-size: 0.8em;
    text-indent: 0;
    line-height: 1em;
    margin: 0;
}

.main_content_section {
    margin: 3rem 2rem 0rem 2rem;
    padding-top: 3rem;
}

.main_content_section_header {
    color: rgb(0, 180, 180);
}

.main_content_section_image_n_description_div {
    display: flex;
}

.main_content_section_image_div {
    max-width: 37.5vh;
    flex-shrink: 0;
    margin-right: 2rem;
}

.main_content_section_description_div {
    flex-grow: 1;
}

.main_content_section::after {
  content: "";
  display: table;
  clear: both;
}


.app_card_display_div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

.app_card_div {
    width: 45%;
    min-width: 420px;
    aspect-ratio: 16/10;
    border: 0.1rem solid rgb(0, 180, 250);
    box-shadow: 0.2rem 0.2rem 0.4rem rgb(125, 125, 125);
    border-radius: 1rem;
    padding: 0.5rem 0.5rem;
    display: flex;
    gap: 1rem;
    
    transition: all 0.3s ease-in-out;
}

.app_card_div:hover {
    box-shadow: none;
    cursor: pointer;
}

.app_card_link {
    width: 45%;
    min-width: 420px;
    display: block;
    text-decoration: none; /* Recommended to remove the default underline */
    color: inherit; /* Ensures text color isn't changed by the link */
}

.app_card_screenshot_image {
    flex-shrink: 0;
}

.app_card_content_div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app_card_name_n_icon_div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app_card_name_header {
    color: rgb(0, 180, 250);
}

.app_card_icon_image {
    width: 2.8rem;
    height: 2.8rem;
}

.app_card_description_text {
    text-indent: 1rem;
    line-height: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.app_card_os_icons_group_div {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
}

.app_card_os_icon_image {
    max-height: 2rem;
}


.app_download_buttons_sticky_bar_wrapper {
    position: fixed;
    bottom: 3rem;
    left: 0rem;
    width: 100%;
    z-index: 1000;
}

.app_download_buttons_sticky_bar_container {
    max-width: 1080px;
    margin: 0 auto;
    padding-right: 1rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
}

.app_download_buttons_group_container {
    max-width: 100%;
    background-color: rgb(0, 0, 0);
    border-radius: 1rem;
    border: rgb(0, 180, 250);
    border-width: 0.1rem;
    border-style: solid;
    box-shadow: 0.1rem 0.1rem 0.2rem 0 rgb(125, 125, 125);
}

.app_download_buttons_image {
    padding: 0.5rem;
    max-width: 50%;
    max-height: 3rem;
}


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

.form-label-n-input-div{
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
    flex-direction: column;
    width: 50%;
}

.form_label_div{
    align-self: flex-start;
}

.form_input_div{
    min-width: 100%;
}

.form_input_container{
    border-color: rgb(0, 180, 250);
    border-radius: 1rem;
    border-width: 0.1rem;
    background-color: rgb(30, 30, 30);
    color: white;
    min-width: -webkit-fill-available;
}

.form_input{
    height: 2rem;
    padding: 0 1rem;
}

.form_text_area{
    padding: 1rem;
}

.form_submit_button{
    width: 50%;
    min-width: max-content;
    text-align: center;
    padding: 0.5rem;
    color: rgb(0, 180, 250);
    font-weight: 600;
    margin: 3rem;
}


@media (max-width: 600px) {
    
    .page_header_home_link_n_language_selector_div{
        display: flex;
        flex-direction: column;
    }
    
    .page_header_section_div_icon_n_title_n_description {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .main_content_section_image_n_description_div {
        flex-direction: column;
    }
    
    .main_content_section_image_div {
        max-width: 100%;
        margin-right: 0;
    }
    
    .app_card_link, .app_card_div {
        width: -webkit-fill-available;
        min-width: unset;
    }
    
    .app_card_div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .app_card_screenshot_image {
        height: 40vh;
        width: 20vh;
    }
    
    .form-label-n-input-div {
        width: 100%;
    }
    
}
