/* Variables */

* {
    --raisin-black: #1e1e24ff;
    --emerald: #06d6a0ff;
    --crimson: #d62839ff;
    --light-orange: #f9dbbdff;
    --isabelline: #f6f0edff;
}

/* Fonts */
/* Source Serif 4 */

@font-face {
    font-family: 'Source Serif 4';
    src: url('asset/font/Source_Serif_4/SourceSerif4-VariableFont_opsz,wght.ttf');
    font-style: normal;
}

@font-face {
    font-family: 'Source Serif 4';
    src: url('asset/font/Source_Serif_4/SourceSerif4-Italic-VariableFont_opsz\,wght.ttf');
    font-style: italic;
}

/* Source Sans 3 */

@font-face {
    font-family: 'Source Sans 3';
    src: url('asset/font/Source_Sans_3/SourceSans3-VariableFont_wght.ttf');
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('asset/font/Source_Sans_3/SourceSans3-Italic-VariableFont_wght.ttf');
    font-style: italic;
}

/* Styles */

body {
    background-color: var(--isabelline);
    color: var(--raisin-black);
    padding: 10px;
}

@media (min-width: 1000px) {
    body {
        width: 1000px;
        margin: auto;
    }
}

h1 {
    font-family: 'Source Serif 4';
    font-weight: 500;
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Source Serif 4';
    font-weight: 500;
    font-size: 1.5rem;
    margin: 0;
    margin-bottom: 1rem;
}

p {
    font-family: 'Source Sans 3';
    font-weight: 400;
    font-size: 1rem;
    margin: 0;
    line-height: 1.25;
}

.header {
    text-align: center;
    margin: 5px;
    padding: 2rem;
    line-height: 0.9;
    border: 1px solid var(--raisin-black);
    border-radius: 10px;
}

.header img {
    height: 100px;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 3 / 1;
    max-width: 100%;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
}

.card {
    width: calc(50% - 5px - 2rem - 10px - 1.825rem);
    display: inline-block;
    margin: 5px;
    padding: 2rem;
    line-height: 0.9;
    border: 1px solid var(--raisin-black);
    border-radius: 10px;
}

.image-card {
    width: calc(16% - 5px);
    margin: 5px;
    padding: 1rem;
    line-height: 0.9;
    border: 1px solid var(--raisin-black);
    border-radius: 10px;
}

.image-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 600px) {
    .card {
        width: 100%;
        margin: 5px;
    }

    .image-card {
        width: 33%;
    }
    
    .header {
        padding: 1rem;
    }
}

button {
    padding: 10px;
    background-color: transparent;
    color: var(--raisin-black);
    font-family: 'Source Serif 4';
    font-weight: 500;
    font-size: .8rem;
    border: 1px solid var(--raisin-black);
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    margin: .5rem 0 0 0;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--crimson);
    color: var(--isabelline);
    border: 1px solid var(--crimson);
}

.footer {
    font-size: 0.8rem; 
    text-align: center;
    margin-top: 2rem;
    color: grey;
    font-family: 'Source Sans 3';
}

.footer span {
    display: block;
}

span.backButton {
    display: block;
    color: grey;
    text-align: left;
    font-size: .8rem;
}

.payments {
    border-radius: 2rem;
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #008dff;
    margin: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    cursor: pointer;
    width: 220px;
}

.payments span {
    color: var(--isabelline);
    font-family: 'Source Sans 3';
    font-weight: 500;
    font-size: .8rem;
    text-align: center;
    display: block;
}

.payments img {
    width: 40px;
    height: 40px;
    padding: 0 10px 0 0;
}