@import url("https://rsms.me/inter/inter.css");

/*
 * This file is loosely based on Element Web's mobile_guide/index.css
 */

html {
    min-height: 100%;
    position: relative;
}

body {
    background: #fff;
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 178px; /* Match the height of the gradient */
    font-family: InterVariable, "Helvetica Neue", "Segoe UI", Roboto, Ubuntu, "Fira Sans", "Noto Sans", Arial, sans-serif;
    font-size: 15px;
    color: #1a1c21;
    line-height: 150%;
}

hr {
    border: none;
    height: 1px;
    background-color: #e1e6ec;
    color: #e1e6ec;
    margin: 0;
    width: 100%;
}

p {
    margin: 0;
    padding: 0;
    color: #474a51;
}

.mx_StoreLinks {
    margin: 24px -12px 4px 0; /* -12px to compensate for the button margin (used as spacing) */
}

.mx_StoreBadge {
    text-decoration: none !important;
    margin: 16px 12px 16px 0px;
}

#f_droid_link {
    color: #007a61;
    font-weight: bold;
    text-decoration: none;
}

#f_droid_link:visited {
    color: #007a61;
}

.mx_HomePage_header {
    color: #474a51;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 42px;
    padding-bottom: 42px;
}

.mx_HomePage_header #header_title {
    margin-top: 8px;
    margin-bottom: 0px;
}

.mx_HomePage_col {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.mx_HomePage_row {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.mx_HomePage_container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin: 10px auto;
    max-width: 640px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.mx_HomePage_container h1,
.mx_HomePage_container h2,
.mx_HomePage_container h3,
.mx_HomePage_container h4 {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 12px;
    margin-top: 16px;
}

.mx_Spacer {
    margin-top: 42px;
}

.mx_BottomGradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 178px;
    background-image: url("assets/bottom-gradient.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
    margin-left: calc(50% - 50vw); /* Center the gradient regardless of body width */
}
