/* Define CSS variables for colors and fonts */
:root {
    --primary-color: #5fb2e1;
    --secondary-color: #f2f2f2;
    --color-blue: #5fb2e1;
    --color-blue-bg: #5fb2e161;
    --color-green: #50dca1;
    --color-green-bg:#50dca161;
    --color-yellow: #ebc261;
    --color-yellow-bg: #ebc26161;
    --color-red: #e37d66;
    --color-red-bg: #e37d6661;
    --color-grey: #484848;
    --color-grey-bg:#48484861;
    --background-dark: rgb(66, 66, 66);
    --background-color: #f3f8f3;
    --background-color-secondary: rgb(232, 232, 232);
    --text-color: rgb(66, 66, 66);
    --text-color-dim: rgb(92, 92, 92);
    --text-color-light: #f3f8f3;
    --font-heading: "DM Serif Display", serif; /* Define the font for headings */
    --font-body: "Nunito Sans", sans-serif; /* Define the font for body text */
    --font-icon: "Noto Emoji", sans-serif;
}

html {
    scroll-behavior:auto;
}

/* Reset some default styles */
body, h1, h2 {
    margin: 0;
    padding: 0;
    color: var(--text-color);
    font-weight: 300;
}

p {
    padding: 0;
    color: var(--text-color);
    font-weight: 300;
}

h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    text-align: center;
    margin-bottom: 48px;
}

h1, h2, h3 {
    font-weight: 300;
}

h1 {
    font-family: var(--font-heading);
}

h2 {
    font-size: 42px;
    text-align: center;
}

h2,h3,h4 {
    font-family: var(--font-body);
    font-weight: 700;
}


hr {
    margin: 48px 0 48px 0;
    border: 1px solid var(--secondary-color);
}

body {
    font-size: 18px;
    font-family: var(--font-body);
    background-color: #f3f8f3;
}


.icon {
    font-family: var(--font-icon);
    font-family: var(--font-icon);
    color: #52dda1;
    background-color: #50dca06b;
    border-radius: 24px;
    display: inline-block;
    text-align: center;
    padding: 8px;
}


.grey {
    color: var(--color-grey);
    background-color: var(--color-grey-bg);
}

.green {
    color: var(--color-green);
    background-color: var(--color-green-bg);
}

.blue {
    color: var(--color-blue);
    background-color: var(--color-blue-bg);
}

.yellow {
    color: var(--color-yellow);
    background-color: var(--color-yellow-bg);
}

.red {
    color: var(--color-red);
    background-color: var(--color-red-bg);
}


.image-caption {
    font-size: 14px;
    text-align: center;
    color: var(--text-color-dim);
}


html:not([data-scroll='0']) header {
    background-image: linear-gradient(rgba(255,255,255,1),rgba(255,255,255,1),rgba(255,255,255,0));
    background-position: 0px;
}

.screen-shot {
    margin: 24px 0 0 0;
    border-radius: 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.scroll-button {
    display: inline-block;
    background-color: var(--color-grey);
    color: var(--text-color-light);
    padding: 10px 20px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 16px;
    width: fit-content;
    box-shadow: rgba(0,0,0,0.075) 0 2px 8px;
}

.scroll-button:hover {
    filter: brightness(85%);
    translate: 0 -4px;
    box-shadow: rgba(0,0,0,0.075) 0 8px 8px;
}

.button-secondary {
    display: inline-block;
    /*outline: solid 2px #ebc261; */
    background-color: #ffffffee;
    color: var(--text-color);
    padding: 10px 20px;
    margin-top: 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 16px;
    width: fit-content;
    box-shadow: rgba(0,0,0,0.075) 0 2px 8px;
}

.button-secondary:hover {
    filter: brightness(102%);
    translate: 0 -4px;
    box-shadow: rgba(0,0,0,0.075) 0 8px 8px;
}

.button-secondary .button-icon {
    /*color: #ebc261;
    outline: solid 2px #ebc261; */
}

.button-icon {
    font-family: var(--font-icon);
    color: var(--text-color);
    outline: solid 2px var(--text-color);
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    padding: 8px;
    margin-right: 12px;
    min-width: 22px;
}

.button-icon-light {
    color: var(--text-color-light);
    outline: solid 2px var(--text-color-light);
}

/* Grid section styles */

.content {
    margin: 0 24px 64px 24px;
    margin-top: 48px;
}

@media (min-width: 768px) { 
    .content {
        margin: 0 auto 0px auto;;
        width: 768px;
        margin-top: 48px;
          
    }

    .content-wide{
        width: 1024px;
        margin: 0 auto 0px auto;
        margin-top: 48px;
    }
}

.content p, ul {

    line-height: 180%;
    margin-bottom: 12px;
}

.content h1,h2,h3 {
    margin-bottom: 24px;
}

.content img,video {
    max-width: 100%;
    display: block;
    margin: 24px auto 0 auto;
    text-align: center;
}

.content video {
    border-radius: 12px;
    border: 1px var(--secondary-color) solid;
}

.content-section {
    margin-bottom: 48px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 48px;
    padding: 16px 8px; /* Default padding */
}

/* Add a media query to apply different styles on larger screens */
@media (min-width: 768px) {
    .grid {
        /* Adjust the margin to create narrower grid on desktop */
        margin: 0 0; /* You can adjust the margin value as needed */
        grid-template-columns: repeat(2, 1fr); /* Use 4 columns on larger screens */
    }
}
