/* Shared styles for James's homepage.
   Every page links this file, then adds any page-specific styles inline. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a2e;
    color: #ffffff;
}

/* Nav bar (injected by site.js into the #site-nav placeholder) */
nav {
    background-color: #16213e;
    padding: 10px 20px;
    text-align: center;
    width: 100%;
}
nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
}
nav a:hover {
    text-decoration: underline;
}

/* Page body */
.content {
    text-align: center;
    padding: 50px 20px;
}

h1 {
    font-size: 2em;
}

.subtitle {
    color: #a0a0a0;
    margin-bottom: 30px;
}

/* Card menus (used by the Games and Crafts pages) */
.card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.card {
    background-color: #16213e;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 25px;
    width: 300px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: #e94560;
}
.card h2 {
    margin-top: 0;
    color: #e94560;
}
.card p {
    color: #c0c0c0;
    min-height: 60px;
    line-height: 1.5;
}
.visit-btn {
    display: inline-block;
    background-color: #e94560;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.2s;
}
.visit-btn:hover {
    background-color: #d83a55;
}

/* Horizontally scrolling photo carousel.
   Drop one of these on any page and site.js wires up the arrows. */
.photo-carousel {
    position: relative;
    max-width: 700px;
    margin: 15px auto;
}
.photo-carousel.small {
    max-width: 500px;
}
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
}
.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 1.6em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}
.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.carousel-arrow.prev {
    left: 8px;
}
.carousel-arrow.next {
    right: 8px;
}
.carousel-arrow[hidden] {
    display: none;
}
