/*Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Color palette inspired by dark fantasy */
  --bg-color: #1f1a19;
  --text-color: #e0d4c1;
  --text-box-color: rgba(214, 186, 155, 0.7);
  --heading-color: #f3dab4;
  --heading-title: rgba(173, 153, 108, 0.7);
  --accent-color: #7e6647;
  --card-bg: rgba(46, 41, 37, 0.692);
  --card-border: #333333;
  --card-box-border: rgba(61, 52, 46, 0.6);
  --hover-glow: rgba(172, 123, 60, 0.5);
  --link-color: #977b51;
  --link-hover: #573b18;
}

* {
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'EB Garamond', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: #121212;
    padding: 1rem 2rem;
    border-bottom: 2px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-family: 'UnifrakturCook', cursive;
    font-size: 2rem;
    color: var(--heading-color);
    margin: 0;
}

nav {
  margin-top: 0.5rem;

    ul {
        list-style: none;
        padding: 0;
        display: flex;
        gap: 1.5rem;

        li {
            position: relative;
            font-weight: 600;
            color: var(--link-color);
            cursor: pointer;
            transition: color 0.2s ease;

            &:hover {
                color: var(--link-hover);
            }
        }
    }
}

nav ul li a {
    text-decoration: none;
    color: inherit;
}

nav ul li::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--link-hover);
    transition: width 0.4s ease, left 0.4s ease;
}

nav ul li:hover::after {
    width: 100%;
    left: 0;
}

/* Page Intro */
.page-intro {
    text-align: center;
    padding: 3rem 2rem;
}

.page-intro h2 {
    font-family: 'UnifrakturCook', cursive;
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.page-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Nation List */
.nation-list {
    padding: 3rem 2rem;
}

.nation-list-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    margin: 0 auto;
    padding: 2rem;
    max-width: 900px;
}

.nation-title {
    font-family: 'UnifrakturCook', cursive;
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 0 0 2rem;
    text-align: center;
}

.nation-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem;
}

/* Nation Card will have images in it in the future*/
.nation-card {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    width: 95%;
    margin: 0 auto 0.9rem;
    background-color: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    font-family: 'unifrakturCook', cursive;
    font-size: 1.4rem;
    color: var(--link-color);
    transition: border-color 0.3s linear, box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}

.nation-card:hover {
    border-color: var(--link-hover);
    box-shadow: 0 0px 10px var(--hover-glow);
    color: var(--link-hover);
}

footer {
    background-color: #121212;
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    border-top: 1px solid var(--card-border);
}