/* styles.css */

/* Variables for consistent styling */
:root {
    --primary-font: 'D-DIN', Arial, sans-serif;
    --accent-font: 'TAXIcondensedMed', Arial, sans-serif;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: orange;
}

/* Font Faces */
@font-face {
    font-family: 'D-DIN';
    src: url('D-DIN.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TAXIcondensedMed';
    src: url('TAXIcondensedMed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Global Styles */
body {
    font-family: var(--primary-font);
    margin: 0;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
}

h1, h2 {
    font-family: var(--accent-font);
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
    margin-top: 50px;
}

.subtitle {
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 50px;
    margin-top: -30px;
}

.date-subtitle {
    font-size: 0.7em;
    text-align: right;
}

/* Container Styles */
.container {
    max-width: 800px; /* Adjust this value to change the maximum width */
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }
}

/* Grid Item Styles */
.grid-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.grid-item:hover img {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

/* Text Box Styles */
.text-box {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 0px;
}

.text-box h3 {
    font-family: var(--accent-font);
    margin-bottom: 10px;
}

.text-box p {
    font-family: var(--primary-font);
    margin-bottom: 0px;
}

.title-container h1 {
    text-align: left;
    margin-bottom: 10px;
}

.title-container p {
    max-width: 50ch;
}

/* Back Button Styles */
.back-button-container {
    text-align: right;
    margin-bottom: 20px;
}

.back-button {
    font-family: var(--accent-font);
    font-size: 1em;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 165, 0, 0.1);
    /* also the text colur should become a darker accent color */
    color: #ff8c00;
}

/* Tag Styles */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    font-family: var(--accent-font);
    font-size: 1em;
    color: var(--accent-color);
    background-color: rgba(255, 165, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Emblem Styles */
.emblem-container {
    position: relative;
    margin-top: -50px;
    margin-bottom: -40px;
    margin-left: 250px;
    text-align: right;
    z-index: 2;
}

@media (max-width: 768px) {
    .emblem-container {
        margin: 0;
        margin-top: 20px;
        margin-bottom: -40px;
    }
}

.emblem-image {
    width: 125px; /* Adjust size as needed */
    transform: rotate(20deg);
}

/* Marquee Styles */
.marquee {
    position: relative;
    overflow: hidden;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    margin-top: 20px;
    margin-bottom: 50px;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

.marquee-content span {
    font-size: 1.5em;
    font-family: var(--accent-font);
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Hero Image Styles */
.hero-image-container {
    position: relative;
    overflow: hidden;
    height: 400px; /* Changed from max-height to fixed height */
    margin-bottom: 20px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }
  
  .hero-image {
    width: 100%;
    height: 100%; /* Changed from auto to 100% */
    display: block;
    object-fit: cover;
    object-position: center; /* This centers the image vertically and horizontally */
  }


/* Footer Styles */
.footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--background-color);
    color: var(--text-color);
    margin-top: 50px;
}

.footer .social-links {
    margin: 10px 0;
}

.footer .social-links a {
    margin: 0 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--accent-font);
}

.footer .social-links a:hover {
    text-decoration: underline;
}

.footer-text {
    margin: 0;
    font-family: var(--primary-font);
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--accent-font);
}

.footer p {
    text-decoration: none;
    font-family: var(--accent-font);
}

.footer a:hover {
    text-decoration: underline;
}