/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    color: #f5f5f5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Index Page Styles */
.index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
}

/* Logo and Title Container */
.logo-title-container {
    margin-bottom: 30px; /* Adjust as needed */
}

/* Logo Image */
.logo-title-container img {
    width: 300px; /* Adjust as needed */
    height: auto;
}

/* Title */
.logo-title-container h1 {
    font-size: 1.5em; /* Adjust as needed */
    margin: 10px 0;
}

/* Button Container */
.button-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns in each row */
    gap: 15px; /* Space between buttons */
    max-width: 650px; /* Limit container width to keep buttons centered */
    margin: 0 auto; /* Center container horizontally */
}

/* Button Link Styles */
.button-container a {
    text-decoration: none; /* Remove underline from links */
}

/* Button Styles */
button {
    background: rgba(60, 60, 60, 0.6);
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1;
    transition: all 0.3s ease;
    width: 100%; /* Make buttons fill their grid cell */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Button Hover and Active States */
button:hover {
    background: rgba(70, 70, 70, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: scale(0.98);
}

/* Home Button Styles (If needed) */
.home-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1000;
}

.home-button img {
    width: 16px;
    height: auto;
    vertical-align: middle;
}

.home-button:hover img {
    opacity: 0.8;
}

/* Navigation Buttons */
.back-to-index {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.nav-buttons {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.back-button {
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.7) 0%, rgba(30, 30, 30, 0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.back-button svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.back-button:hover svg {
    color: rgba(255, 255, 255, 0.95);
}

/* Logo Title Container (if used) */
.logo-title-container {
    margin-bottom: 30px;
}

.logo-title-container img {
    width: 200px;
    height: auto;
}

.logo-title-container h1 {
    font-size: 2em;
    margin: 10px 0;
    color: #ffffff;
}