:root {
	--prco: #666666; /*grey*/
	--link: #666666; /*light grey*/
	--hovr: #999999; /*dark grey*/
}

/* General Page Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    background: url('images/bg.jpg') repeat;
    background-size: auto;
}

/* Global container */
.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;  /* Centers the container */
    padding: 20px;
}

/* Header and Footer Styles */
header, footer {
    background-color: black;
    color: white;
    padding: 10px;
    text-align: center;
}

header {
    font-size: 1em;
}

.header-banner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-info {
    flex: 1;
    text-align: right;
}

@media (max-width: 600px) {
    .header-banner {
        flex-direction: column;
        text-align: center;
    }
    .header-info {
        text-align: center;
    }
}

footer {
    font-size: 0.9em;
}

/* Content Styles */
.content {
    padding: 20px;
    background-color: black;
    color: white;
}

hr {
    border: 0;
    border-top: 1px dashed var(--prco); /* Green dashed line */
    margin: 20px 0; /* Optional: Adds space above and below the line */
}

.half-line {
    width: 50%;     /* half the container's width */
    margin-left: auto;
    margin-right: auto;
}

a {
            color: var(--prco);
            text-decoration: none;
	    font-weight: bold;
}

a:visited {
            color: var(--prco);
            text-decoration: none;
	    font-weight: bold;
}

a:hover {
            color: var(--hovr); /* Change color on hover */
            text-decoration: underline dotted;
	    font-weight: bold;
}

h1 {
    color: white;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
}


.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.author {
    font-weight: bold;
}

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

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
}

.main-nav a.active {
    color: white;
    text-decoration: underline;
}

.dist-olympic { color: yellow; }
.dist-sprint { color: green; }
.dist-ironman { color: orange; }

/* Home page grid */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
}

.home-left {
    grid-column: 1;
}

.home-right {
    grid-column: 2;
}

.home-right-below {
    grid-column: 2;
    grid-row: 3;
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .home-left,
    .home-right {
        grid-column: 1;
    }
}

/* Responsive race grid for triathlon page */
.race-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border: 1px solid #ddd;
}

.race-card {
    text-align: center;
    padding: 10px;
    border: 1px solid #333;
}

@media (max-width: 768px) {
    .race-grid {
        grid-template-columns: 1fr;
    }
}

/* Activity page content */
.activity-content {
    max-width: 90%;
    margin: 0 auto;
}

/* Responsive iframes */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
