﻿/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Theme colors */
    --bg-color: #dadcde;
    --text-color: #2c2f33;
    --accent-color: #008080;
    --accent-hover: #006666;
    --navbar-bg: #f5f7f8;
    /* Typography */
    --font-stack: 'Segoe UI', Roboto, sans-serif;
    --base-font-size: 16px;
    /* Spacing */
    --page-padding: 2rem;
    --max-width: 960px;
}

body {
    font-family: var(--font-stack);
    font-size: var(--base-font-size);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding: var(--page-padding);
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

@media (min-width: 1000px) {
    body {
        background-image: url('/assets/images/background.png');
        background-repeat: repeat; /* Ensures the image repeats */
        background-attachment: scroll; /* Makes the background scroll with the content */
    }
}

main {
    width: 100%;
    max-width: var(--max-width);
}

/* Headings */
h1, h2, h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

main h1.title {
    text-align: center;    
}

.subTitle {
    margin-top: 1rem;
}

.subTitleCenter {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.subTitleStackTop {
    margin-top: 1rem;
    margin-bottom: 0;
}

.subTitleStackBottom {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .btn:hover {
        background-color: var(--accent-color);
        color: white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }


/* Base container is already centered — now make it fluid */
body {
    flex-direction: column;
    align-items: center;
}

/* Make sure text and buttons scale well */
body, input, button {
    font-size: 1rem;
}

/* Buttons scale for touch devices */
.btn {
    width: auto;
    max-width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    touch-action: manipulation;
    display: inline-block;
}

a.btn {
    margin-top: 1rem;
    text-decoration: none;
}

/* Responsive layout container */
main {
    padding: 1rem;
    margin-bottom: 5rem;
}

/* Media Queries for small screens */
@media (max-width: 600px) {
    :root {
        --page-padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


.button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #2d89ef;
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.button:hover {
    background-color: #1a5fc3;
}

.site-header {
    text-align: center;
    padding: 0;
}

.site-logo {
    max-width: 90%;
    height: auto;
    width: clamp(200px, 60vw, 600px);
}


.tile-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    padding-top: 0;
    gap: 2rem;
}

.tile {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .tile:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        cursor: pointer;
    }

.tile-content {
    padding: 1.5rem;
    text-align: center;
}

.tile-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    max-height: 200px;
}

.tile h2 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
}

.tile p {
    font-size: 1rem;
    color: #555;
}

/* Responsive layout */
@media (min-width: 960px) {
    .tile-container {
        flex-wrap: nowrap;
    }

    .tile {
        max-width: 45%;
    }
}



