@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
    /* Fonts */
    --font-sans: "Inter", sans-serif;
	--font-serif: "Crimson Pro", serif;
	--font-mono: "JetBrains Mono", monospace;

    /* Colors */
    --background: #141414;
	--foreground: #dadada;
	--primary: #5a43da;
	--primary-foreground: #dadada;
	--warning: #be1616;
	--surface: #000000;
	--border: #282828;
}

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    color: var(--foreground);
    background: var(--background);
    font-family: var(--font-sans);
}

header {
    background: var(--background);
    font-family: var(--font-mono);

    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

main {
    background: var(--background);
    font-family: var(--font-serif);
    margin: 1rem 0;
}

main ul {
    margin: 1rem 2rem;
}

footer {
    background: var(--background);
    font-family: var(--font-serif);
}

nav ul {
    display: inline-flex;
    gap: 1rem;
    list-style: none;
    margin-left: 1.5rem;
}

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

a:hover {
    color: var(--primary)
}

p {
    text-align: justify;
	line-height: 1.5rem;
}

p + p {
    margin-top: 0.5rem;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.divider {
    border-top: solid 1px var(--foreground);
    margin: 0.5rem 1.5rem;
}

.highlight {
    color: var(--primary);
    font-weight: bold;
}

.title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

#tagline {
    font-style: italic;
    font-size: 0.8rem;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.card-title, .card-subtitle {
    font-family: var(--font-sans);
    text-align: left;
}

.card-title {
    text-transform: uppercase;
}

.card-subtitle {
    font-size: 0.8rem;
}

.card-image {
    width: 100%;
    height: 350px; /* or whatever, just make it consistent */
    object-fit: cover;
    display: block;
    border: solid 3px transparent;
    transition: border 0.5s;
}

.card-image:hover {
    border: solid 3px var(--primary);
}

.card-tag-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    list-style: none;
    margin: 0.5rem 0;
}

.card-tag {
    font-size: 0.9rem;
    text-align: center;
    background-color: var(--surface);
    padding: 0.5rem 0.5rem;
    border: solid, 1px, var(--border);
    font-family: var(--font-sans);
}

.card-quote {
    font-style: italic;
    text-align: center;
}

.secret-card {
    background-color: black;
    border: solid 1px red;
    text-shadow: 2px 0 red, -2px 0 cyan;
    padding: 1rem;
    opacity: 0%;
    transition: all 6s; 
}

.secret-card .card-image {  
    filter: contrast(4) brightness(1.3);
    animation: flicker 6s infinite;
}

.secret-card .card-image:hover {
    border: solid 3px red;
}

@keyframes flicker {
    0%, 100% { filter: contrast(4) brightness(1.3); }
    10% { filter: contrast(8) brightness(0.6); }
    11% { filter: contrast(1) brightness(2); }
    50% { filter: contrast(4) brightness(1.3); }
}

.secret-card:hover {
    opacity: 100%;
}