@import url('https://fonts.googleapis.com/css2?family=Calligraffitti:wght@700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Calligraffitti', cursive;
    color: #333;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.quote-section {
    position: relative;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
    z-index: 1;
}

.quote-title {
    font-size: 24px;
    margin: 0;
    font-family: 'Calligraffitti', cursive; /* Title font */
}

.quote-grid {
    display: flex;
    overflow-x: auto;
    padding: 20px;
    gap: 20px;
    max-width: 90vw;
    width: 100%;
    height: 70vh;
    box-sizing: border-box;
    margin: 20px auto;
    justify-content: center;
    align-items: center;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.grid-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px; /* Adjusted box width */
    height: 150px; /* Adjusted box height */
    flex: 0 0 auto;
    margin: 0 10px;
    scroll-snap-align: center; /* Ensure centered snap */
}

.quote-text {
    margin: 0;
    font-size: 16px;
    font-weight: bold; /* Make the font bold */
    color: #222;
    font-family: 'Calligraffitti', cursive; /* Match title font */
}

.back-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.7);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    margin: 20px auto;
    display: block;
    text-align: center;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
