:root {
    --standard-corner-radius: 10px;
    --app-icon-border-radius: 25%/23%;
    --accent-color: #01497c;
    --lighter-accent-color: hsla(205, 98%, 40%, 1);
    --light-blue: #89c2d9;
    --sublte-shadow: 0px 16px 14px -13px rgba(0, 0, 0, 0.26);
    --appstore-blue: #0071e3;
    --base-background-color: hsla(222, 15%, 98%, 1);
    --tertiary-background-color: hsla(222, 15%, 95%, 1);
    --light-grey-border: hsla(220, 14%, 88%, 1);
    --black: hsla(205, 98%, 3%, 1);
    --error-background: hsla(360, 60%, 21%, 1);
    --error-foreground: hsla(360, 60%, 78%, 1);
    --red: hsla(0, 84%, 43%, 1);
    --red-highlight: hsla(0, 84%, 63%, 1);
    --green: hsla(134, 70%, 32%, 1);
    --green-highlight: hsla(134, 84%, 63%, 1);
    --content-background-color: white;
}

html {
    font-size: 1em;
    line-height: 1.4;
    font-family: -apple-system, Segoe UI, "Helvetica Neue", sans-serif;
    font-weight: 350;
    box-sizing: border-box !important;
    scroll-behavior: smooth;
    height: 100%;
    color: var(--black);
}

body {
    margin: 0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--base-background-color);
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: var(--accent-color);
    color: white;
    text-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 15px;
    margin-bottom: 5px;
}

h1, h2, h3, h4 {
    letter-spacing: 0.04rem;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.6rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.4rem;
    line-height: 1.2;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.1;
}

h5 {
    font-size: 1.0rem;
    line-height: 1.1;
}

h6 {
    font-size: 0.8rem;
    line-height: 1.1;
}

h5, h6 {
    font-weight: 350;
}

nav {
    width: 100%;
    background-color: var(--accent-color);
}

nav > .nav-content {
    max-width: 1200px;
    color: white;
    display: flex;
    min-height: 65px;
    align-items: center;
    padding: 0 10px;
    flex-wrap: wrap;
}

body > main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    width: 100%;
    height: 50px;
    border-top: 1px solid var(--light-grey-border);
    background-color: var(--base-background-color);
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

small {
    font-size: 0.8rem;
    display: block;
}

form {
    max-width: 600px;
    border-radius: var(--standard-corner-radius);
}

textarea {
    font-size: 1rem;
    border: none;
    border: 1px solid var(--light-grey-border);
    padding: 6px;
}

input {
    -webkit-appearance: none;
    margin: 0;
}

input[type="radio"] {
    -webkit-appearance: radio;
}

input[type="submit"] {
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

input[type="submit"]:disabled {
    cursor: default;
    opacity: 0.5;
}

a {
    color: var(--black);
}

a:hover {
    opacity: 0.7;
}

p {
    margin-top: 16px;
    margin-bottom: 8px;
}

ul {
    padding-left: 20px;
    margin-top: 5px;
}

ul li {
    margin-bottom: 5px;
}

.hidden {
    display: none;
}

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

.mt-md {
    margin-top: 15px;
}

.mt-lg {
    margin-top: 30px;
}

.mb-md {
    margin-bottom: 15px;
}

.mb-lg {
    margin-bottom: 30px;
}

.mb-xlg {
    margin-bottom: 55px;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mr-md {
    margin-right: 10px;
}

.mt-sm {
    margin-top: 5px;
}

.mb-sm {
    margin-bottom: 5px;
}

.mx-sm {
    margin-left: 10px;
    margin-right: 10px;
}

.mx-md {
    margin-left: 20px;
    margin-right: 20px;
}

.no-border {
    border: none !important;
}

.faint-line {
    opacity: 0.3;
}

.pl-md {
    padding-left: 10px;
}

.responsive-image {
    max-width: 100%;
    height: auto;
}

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

.sheet-container {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    background-color: var(--content-background-color);
    margin-inline: 10px;
}

.error-title {
    font-size: 6rem;
    line-height: 0.9;
}

.outer-container {
    max-width: 1200px;
    padding: 0 5px;
}

.error-container {
    height: 100%;
    margin-top: 100px
}

.brand-heading {
    font-size: clamp(0.8rem, 1rem + 2vw, 2.3rem)
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.justify-content-center {
    justify-content: center;
}

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

.reading-width {
    max-width: 700px;
    font-size: 1.1rem;
}

.top-content-section {
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--lighter-accent-color);
    color: white;
}

.error-badge {
    background-color: var(--error-background);
    color: var(--error-foreground);
    padding: 5px 15px;
    border-radius: 4px;
}

.elevation-shadow {
    box-shadow: var(--sublte-shadow);
}

.messages-container {
    display: flex;
    position: absolute;
    z-index: 100;
    left: 50%;
    transform: translateX(-50%);
    top: 70px;
    flex-direction: column;
    width: 350px;
}

.messages-container .message {
    flex-basis: 100%;
    background-color: var(--secondary-background-color);
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    color: white;
}

.messages-container .success {
    background-color: var(--green);
}

.messages-container .error {
    background-color: var(--red);
}

.messages-container .warning {
    background-color: darkorange;
}

.notification-icon {
    width: 18px;
    height: 18px;
}

.sharing-card {
    max-width: 650px;
    background-color: var(--tertiary-background-color);
    border-radius: 8px;
}

.sharing-card > div {
    padding: 25px 15px;
}

.tweet-button {
    padding: 6px 20px;
    background-color: #1DA1F2;
    color: white;
    border-radius: 5px;
    font-size: 1.1rem;
    text-decoration: none;
}

.tweet-button > svg,
.share-button > svg {
    width: 15px;
    height: 15px;
    fill: white;
    margin-top: -3px;
}

.share-button {
    cursor: pointer;
    padding: 6px 20px;
    background-color: darkgray;
    color: white;
    border-radius: 5px;
    font-size: 1.1rem;
    text-decoration: none;
}

.top-content-section a {
    color: white;
}

.prominent-white-border {
    border: 2px solid white;
}

.bottom-edge-shadow {
    -webkit-box-shadow: 0 1px 3px hsla(0, 0%, 0%, .2);
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, .2);
}

.lighter-font {
    font-weight: 400;
}

button {
    border: 0;
    margin: 0;
    cursor: pointer;
    --webkit-appearance: none;
    appearance: none;
    font-size: 1rem;
}

button:disabled {
    cursor: default;
}

.button:hover {
    outline: var(--accent-color);
    outline-width: 2px;
    outline-offset: 2px;
}

.button {
    padding: 5px 12px;
    display: inline-block;
    border-radius: 15px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    appearance: none;
    --webkit-appearance: none;
    border: none;
    cursor: pointer;
}

@media (hover: hover) {
    .button:hover {
        background-color: var(--light-blue);
        color: var(--black);
        text-decoration: none;
    }
}


.button.active {
    background-color: var(--light-blue);
    color: #212020;
    cursor: default;
}

.button.active::before {
    content: '✓';
}

.button > .icon {
    width: 35px;
    height: 35px;
    margin: 5px;
}

.button:hover > .icon {
    fill: var(--black);
}

.large-button,
.basic-form .large-button {
    padding: 12px 40px;
    font-size: 1.15rem;
    font-weight: bolder;
    border-radius: 10000px;
}

.small-button {
    padding: 3px 8px;
    font-size: 0.9rem;
}

.secondary-button {
    border-radius: 5px;
}

.submit-button {
    background-color: hsla(205, 98%, 54%, 1);
}

.submit-button:hover {
    background-color: hsla(205, 98%, 44%, 1) !important;
    opacity: 1;
}

.horizontal-flex {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.no-wrap {
    flex-wrap: nowrap;
}

.vertical-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-container {
    margin: 0 auto;
    max-width: 500px;
}

.jumplist {
    gap: 5px
}

.jumplist > .button {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.inset-shadow {
    -moz-box-shadow: inset 0 0 10px #000000;
    -webkit-box-shadow: inset 0 0 10px #000000;
    box-shadow: inset 0 0 10px #000000;
}

.subtle-inset-shadow {
    box-shadow: inset 0 2px 2px hsla(0, 0%, 0%, 0.1);
}

.sublte-elevation-shadow {
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, .2);
}

.unstyled-list {
    list-style: none;
    padding-left: 10px;
}



.pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    padding-left: 0;
    margin-left: 5px;
    margin-right: 5px;
}

.pagination li {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    align-content: center;
    font-weight: bolder;
    font-size: 1.1rem;
    text-align: center;
}

.pagination li > span {
    width: 100%;
}

.pagination li.active {
    opacity: 0.8;
}

.pagination li:hover {
    opacity: 0.9;
}

.pagination li:first-child {
    border-radius: 10px 0 0 10px;
}

.pagination li:last-child {
    border-radius: 0 10px 10px 0;
}

.pagination li > a {
    color: white;
    width: 100%;
    text-decoration: none;
}

.secondary-label {
    opacity: 0.75;
}

.gradient-text {
    background: linear-gradient(to left, var(--accent-color), var(--lighter-accent-color));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.underline-decoration {
    border-bottom: 2px solid var(--accent-color);
}

.subtle-link {
    text-decoration: none;
    color: var(--black);
}

.top-content-section .subtle-link {
    color: white;
}

.error-message {
    font-weight: bolder;
    color: darkred;
}

.success-message {
    font-weight: bolder;
    color: forestgreen;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-select-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 10px;
}

.platform-select-container > a {
    border-radius: 20px;
    background-color: hsla(205, 13%, 46%, 1);
    color: white;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    font-size: 2.5rem;
    text-align: center;
    line-height: 1.1;
}

.platform-select-container > a > svg {
    position: absolute;
    opacity: 0.1;
    width: 35%;
    height: auto;
    left: 20px;
    top: 20px;
    transition: 0.2s;
}

.platform-select-container .bigger-icon {
    width: 55%;
}

.platform-select-container .smaller-icon {
    width: 25%;
}

.platform-select-container > a:hover > svg {
    transform: scale(1.1);
    opacity: 0.2;
}

.basic-form {

}

.basic-form > p {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.basic-form label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.basic-form label.required-input {
    font-weight: bolder;
}

.basic-form input {
    outline-color: var(--accent-color);
    margin-top: 5px;
}

.basic-form .helptext {
    font-size: 0.8rem;
    margin-top: 5px;
}

.basic-form .errorlist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 5px;
    margin-top: 20px;
}

.basic-form .errorlist li {
    color: var(--error-background);
    background-color: var(--error-foreground);
    padding: 4px 10px;
    margin-bottom: 5px;
    border-radius: 2px;
    font-size: 0.9rem;
}

.error-explainer {
    background-color: darkred;
    color: white;
    font-size: 1.1rem;
    padding: 10px;
    margin: 10px 0;
}

.basic-form input[type="text"],
.basic-form input[type="url"],
.basic-form input[type="email"],
.basic-form input[type="password"],
.basic-form input[type="number"],
.basic-form input[type="date"] {
    padding: 0.5em;
    font-size: 1rem;
    border: 1px solid var(--light-grey-border);
}

.apps-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 10px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 10px;
}

.apps-sort-control {
    gap: 0;
    border: 1px solid white;
    border-radius: 8px;
    flex-wrap: nowrap;
}

.apps-sort-control > .button {
    border-radius: 0;
}

.apps-sort-control > .button:first-child {
    border-bottom-left-radius: 8px;
    border-top-left-radius: 8px;
}

.apps-sort-control > .button:last-child {
    border-bottom-right-radius: 8px;
    border-top-right-radius: 8px;
}

.button.active-sort {
    background-color: var(--light-blue);
    color: var(--black);
    cursor: default;
}

.button.active-sort:hover {
    opacity: 1;
}

.app-card {
    flex-direction: row;
    display: flex;
    border-radius: 20px;
    border-top: 1px solid var(--light-grey-border);
    background-color: white;
    position: relative;
    padding: 10px;
    color: var(--black);
    line-height: 0.9;
    max-width: 450px;
}

.app-card .app-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--app-icon-border-radius);
    margin-right: 10px;
    border: 1px solid var(--light-grey-border);
}

.app-card .app-name {
    font-weight: bolder;
    margin-right: 20px;
    line-height: 1;
}

.app-card .category-label,
.app-card .developer-label {
    margin-top: 4px;
}

.app-update-card {
    flex-basis: 49%;
}

.app-update-card > .app-card {
    border-bottom: none;
    border-radius: var(--standard-corner-radius) var(--standard-corner-radius) 0 0;
    border: none;
}


.app-card .subtle-link {
    color: #181818;
}

.app-update-card, .app-card svg {
    color: var(--black);
}

.anniversary-card {
    padding-top: 35px;
    border-top: none;
}

.anniversary-card .anniversary-info {
    position: absolute;
    height: 18px;
    padding: 5px 6px 2px 16px;
    right: 0;
    border-radius: var(--standard-corner-radius) var(--standard-corner-radius) 0 0;
    left: 0;
    top: 0;
    background: var(--accent-color);
    color: white;
    font-size: 0.9rem;
    align-items: center;
    gap: 5px;
}

.anniversary-card .anniversary-info > svg {
    width: 15px;
    height: 15px;
}

.compact-update-notes {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--light-grey-border);
    border-radius: 0 0 var(--standard-corner-radius) var(--standard-corner-radius);
    border-top: none;
    background-color: var(--tertiary-background-color);
    box-shadow: inset 0px -52px 17px -50px rgba(0, 0, 0, 0.26);
    color: var(--black);
}

.app-card:hover {
    opacity: 0.9;
}

.icon-image {
    border-radius: var(--app-icon-border-radius);
}

.detail-app-image {
    display: block;
    max-width: 200px;
    max-height: 200px;
    border: 2px solid var(--accent-color);
}

.app-screenshots-container {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.app-screenshots img {
    background-color: var(--light-grey-border);
    border-radius: 10px;
    max-width: 100%;
    width: auto;
    cursor: zoom-in;
    max-height: 500px;
}

.app-screenshots-container img:first-child {
    margin-left: auto;
}

.app-screenshots-container img:last-child {
    margin-right: auto;
}

.iphone-screenshots-container img {
    max-width: 240px;
}

.card-icon {
    position: absolute;
    top: 10px;
    right: 10px;
}

.anniversary-card .card-icon {
    top: 30px;
}

.small-icon > svg {
    width: 20px;
    height: 20px;
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;

}

.app-card .platform-badges {
    margin-right: 20px;
}

.platform-badges > span {
    padding: 3px 5px;
    background-color: var(--accent-color);
    margin-right: 2px;
    color: white;
    font-weight: bolder;
    border-radius: 5px;
    white-space: nowrap;
    margin-top: 3px;
}

.category-badge {
    background-color: var(--accent-color);
    border-radius: var(--standard-corner-radius);
    padding: 5px 10px;
    color: white;
    text-decoration: none;
}

.category-badge > svg,
.subtle-category > svg {
    width: 16px;
    height: 16px;
    fill: white;
    padding-bottom: 3px;
}

.mobile-search-form {
    margin-bottom: 0;
}

.search-form, .submit-app-form {
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    display: flex;
    min-height: 40px;
    overflow: hidden;
    max-width: 400px;
}

.submit-app-form {
    max-width: 550px;
}

.search-form > input[type="search"], .submit-app-form > input[type="url"] {
    width: 100%;
    border: none;
    --webkit-appearance: none;
    padding-left: 15px;
    font-size: 16px;
}

.search-form > .button, .submit-app-form > .button {
    flex: 1;
    border-radius: 0;
    font-weight: bolder;
}

.nav-content .search-form {
    border: none;
    background-color: white;
    min-height: 35px;
    margin-right: 5px;
    max-width: 250px;
}

.nav-content .search-form > .button {
    background-color: transparent;
    color: var(--accent-color);
}

.nav-content .search-form > .button:hover {
    color: var(--lighter-accent-color);
}

.nav-content .navbar-items {
    align-items: start;
    gap: 5px;
    margin-left: auto;
}

.toggle-search-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid white;

    place-items: center;
    display: none;
}

.toggle-search-button > svg {
    height: 18px;
    color: currentColor;
    display: block;
}

.toggle-search-button.active {
    background-color: white;
    color: var(--accent-color);
    cursor: pointer;
}

.toggle-search-button.active::before {
    content: none;
}

.app-detail-header .platform-badges {
    justify-content: center;
}

.screenshots-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.spacer {
    aspect-ratio: 900/200;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: -1;
    position: absolute;
}

.content-card {
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 25px;
    box-shadow: var(--sublte-shadow);
    font-size: 1.1rem;
    max-width: 700px;
    border-top: 1px solid var(--light-grey-border);
    border-left: 1px solid var(--light-grey-border);
    border-right: 1px solid var(--light-grey-border);
    background-color: white;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.content-card .button {
    font-size: 1rem;
}

.content-divider {
    display: block;
    max-width: 140px;
    border-bottom: 4px solid var(--lighter-accent-color);
    margin-bottom: 15px;
}

.appstore-button {
    font-size: 1.1rem;
    background-color: var(--appstore-blue);
    color: white;
    font-weight: bolder;
    text-decoration: none;
    border-radius: 1.35em;
    padding: 0.7em 1.2em;
    display: inline-block;
    transition: 0.2s;
    box-shadow: inset 0 1px 0px hsla(210, 100%, 70%, 1),
    0 1px 3px hsla(0, 0%, 0%, .2);
}

.appstore-button:hover svg {
    transform: scale(1.1);
}

.app-detail-icon-container {
    position: relative;
    max-width: 200px;
    max-height: 200px;
}

.app-detail-icon-container .button {
    position: absolute;
    height: 30px;
    width: 30px;
    right: -10px;
    bottom: -10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.promo-banner {
    text-decoration: none;
    max-width: 480px;
    flex-wrap: nowrap;
    border-radius: 10000000px;
    color: white;
    gap: 5px;
}

.request-update-container {
    max-width: 600px;
    padding: 10px;
}

.indie-dev-monday-banner {
    background-color: #5a5a7b;
}

.airport-banner {
    background: linear-gradient(45deg, #1762E1, #1775E4);
}

.airport-banner > img {
    border-radius: 50%;
    border: 2px solid white;
    width: 105px;
    height: 105px;
    margin-left: -2px;
}

.indie-dev-monday-banner > img {
    border-radius: 50%;
    border: 2px solid var(--black);
    width: 105px;
    height: 105px;
}

.promo-banner h4 {
    line-height: 1.1;
    letter-spacing: -0.01rem;
}

.promo-banner h5 {
    font-size: 1.03rem;
    line-height: 1.1;
}

.collection-card {
    min-height: 150px;
    background-size: cover;
    color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2ms;
    text-decoration: none;
    background-color: var(--accent-color);
}

.collection-card:hover {
    opacity: 1;
}

.badge {
    padding: 2px 4px;
    background: linear-gradient(45deg, var(--accent-color), var(--lighter-accent-color));
    display: inline-block;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bolder;
    font-size: 0.65rem;
    color: white;
}

.collection-card:hover {
    transform: rotate(-1deg);
}

.collection-header {
    background-size: cover;
    position: relative;
}

.collection-header > .cover {
    background-color: black;
    opacity: 0.4;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.fancy-header {

}

.disclosure-button {
    color: var(--lighter-accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.disclosure-button::after {
    content: url("data:image/svg+xml,%3Csvg class='w-6 h-6' fill='none' stroke='%230277ca' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E");
    width: 20px;
    height: 20px;
    display: block;
    color: var(--lighter-accent-color);
}

.header-button-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-gap: 10px;
    align-items: center;
}

.article-detail {
    max-width: 650px;
    padding: 0;
    margin-top: 40px;
    overflow: hidden;
}

.article-detail h1 {
    line-height: 1.1;
}

.article-content p {
    text-align: justify;
    hyphens: auto;
}

.article-detail img {
    width: 100%;
    height: auto;
}

.article-featured-image {
    border-bottom: 1px solid var(--light-grey-border);
}

.article-featured-image-container {
    position: relative;
}

.article-featured-image-container::after {
    content: '';
    background-color: white;
    height: 15px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border-top: 1px solid var(--light-grey-border);
}

.article-content {
    padding: 0 15px 15px 15px;
}

.article-detail .app-card {
    max-width: 370px;
    margin: 20px auto;
}

.scrollToTopButton {
    position: fixed;
    bottom: 30px;
    right: 15px;
    z-index: 100;
    opacity: 0;
    cursor: pointer;
    border: none;
    -webkit-appearance: none;
    background-color: var(--accent-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
}

.scrollToTopButton > svg {
    color: white;
    width: 25px;
    height: 25px;
    transition: transform 200ms ease-in-out;
}

.scrollToTopButton:hover > svg {
    transform: translateY(-3px);
}

.app-news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-gap: 8px;
}

.app-news-card {
    height: 290px;
    border-radius: 20px;
    overflow: hidden;
    justify-content: start;
    background: linear-gradient(45deg, var(--lighter-accent-color), var(--accent-color));
    color: white;
    text-decoration: none;
    position: relative;
}

.app-news-card > .featured-image {
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--light-grey-border);
}

.app-news-card .title {
    padding: 10px 20px;
}

.app-news-card-content {
    position: relative;
    z-index: 2;
}

.app-news-card-content > small {
    position: absolute;
    top: 3px;
    left: 20px;
    border-radius: 5px;
    opacity: 0.7;
}

.app-news-card-content > .app-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: var(--app-icon-border-radius);
    top: -30px;
    right: 10px;
    z-index: 1;
}

.developer-profile {
    max-width: 600px;
    position: relative;
    padding-top: 70px;
    margin: 120px auto 0;
    border-width: 2px;
}

.developer-profile img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -70px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid var(--light-grey-border);
}

.single-app-card-container > .app-card {
    margin: 0 auto;
    max-width: 385px;
}

.two-apps-container {
    margin: 0 auto;
    max-width: 780px;
}

.app-detail-dev-profile {
    background-color: var(--accent-color);
    border-radius: 1000px;
    max-width: 260px;
    text-decoration: none;
    position: relative;
    z-index: 10;
    flex-wrap: nowrap;
}

.app-detail-dev-profile > .by-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--light-blue);
    font-weight: bolder;
    padding: 1px 10px;
    border-radius: 2px;
}

.app-detail-dev-profile > div {
    padding: 5px;
}

.app-detail-dev-profile > img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.app-detail-news {
    flex-wrap: nowrap;
    padding: 0;
    max-width: 740px;
    text-decoration: none;
}

.app-detail-news > img {
    width: 220px;
    height: auto;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.nav-content .profile-image {
    display: inline-block;
}

.nav-content .profile-image img,
.nav-content .profile-image svg {
    border-radius: 50%;
    height: 33px;
    width: 33px;
}

.app-card .platform-badges {
    font-size: 0.7rem;
}

@media (max-width: 700px) {
    .platform-select-container > a {
        font-size: 1.5rem;
    }

    .platform-select-container > a > svg {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 500px) {
    .app-detail-news {
        flex-direction: column;
        position: relative;
    }

    .app-detail-news .badge {
        position: absolute;
        top: 15px;
        left: 15px;
    }

    .app-detail-news img {
        width: 100%;
        border-bottom: 1px solid var(--light-grey-border);
        border-top-right-radius: 25px;
        border-bottom-left-radius: 0px;
    }

    .app-detail-news > div {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;

    }

    .cards-container {
        grid-template-columns: 1fr 1fr;
        grid-gap: 7px;
    }

    .app-news-container {
        grid-template-columns: 1fr 1fr;
        grid-gap: 7px;
    }

    .app-news-card {
        height: unset;
    }

    .app-news-card .title {
        padding: 8px;
        font-size: 0.95rem;
        margin-top: 20px;
    }

    .app-news-card-content > small {
        left: 8px;
    }

    .collection-card {
        padding: 10px;
    }

    .collection-card h2 {
        font-size: 1.4rem;
    }

    .collection-card h4 {
        font-size: 1rem;
    }

    .nav-content .navbar-items {
        flex-wrap: wrap;
        margin-bottom: 5px;
    }

    .toggle-search-button {
        display: grid;
    }

    .nav-content .search-form {
        display: none;
    }

    .iphone-screenshots-container img {
        max-width: 95%;
    }

    .platform-select-container {
        grid-gap: 5px;
    }

    .platform-select-container > a {
        font-size: 1.1rem;
        border-radius: 15px;
    }

    .platform-select-container > a > svg {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --base-background-color: hsla(222, 15%, 11%, 1);
        --secondary-background-color: hsla(222, 15%, 21%, 1);
        --tertiary-background-color: hsla(222, 15%, 15%, 1);
        --light-grey-border: hsla(220, 14%, 34%, 1);
        --black: white;
        --lighter-accent-color: hsla(205, 68%, 40%, 1);
        --white: hsla(205, 61%, 95%, 1);
        --content-background-color: var(--secondary-background-color);
    }

    body {
        color: var(--white);
        font-weight: 350;
    }

    .button:hover, .category-badge:hover {
        opacity: 1;
        background-color: var(--lighter-accent-color);
    }

    .collection-card {
        color: var(--white);
    }

    .bottom-edge-shadow {
        box-shadow: none;
    }

    .app-card {
        background-color: var(--secondary-background-color);
        border-top: none;
    }

    .app-card .subtle-link {
        color: hsla(205, 61%, 90%, 1);
    }

    .article-detail .app-card {
        background-color: var(--tertiary-background-color);
    }

    .content-card {
        background-color: var(--secondary-background-color);
        box-shadow: none;
    }

    .article-featured-image-container::after {
        background-color: var(--secondary-background-color);
    }

    .platform-badges > span {
        color: var(--accent-color);
        background-color: hsla(205, 68%, 70%, 1);
        opacity: 0.7;
    }

    .gradient-text {
        background: linear-gradient(to left, hsla(205, 98%, 47%, 1), hsla(205, 98%, 67%, 1));
        color: transparent;
        -webkit-background-clip: text;
        background-clip: text;
    }

    input {
        background-color: var(--tertiary-background-color);
        color: var(--white);
    }

    input[type="file"], input[type="image"] {
        background-color: transparent;
    }

    textarea {
        background-color: var(--tertiary-background-color);
        color: var(--white);
    }

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

    .small-icon > svg {
        fill: var(--white);
    }

    .card-icon > svg {
        fill: transparent;
    }
}