body {
    background: linear-gradient(-45deg, #ffffff, #a8b7b6);
    background-size: 400% 400%;
    animation: gradientShift 14s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    gap: 40px;
    padding: 30px 0;
    font-family: 'Avenir Regular', sans-serif;
    overflow: hidden;

}

.tile-row {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    background: transparent;
    padding: 0 50px;
}


.tile-container {
    width: 150px;
    height: 150px;
    background: rgba(181, 181, 181, 0.19);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(1.1px);
    transition: all 0.3s ease;
    transform: scale(1);
    cursor: pointer;
    border: 5px solid transparent;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 5px 5px 15px rgba(255, 255, 255, 0.4),
        inset -5px -5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;

}

.tile-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-color: #e8f5ff;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 0;
    color: #333;
    border: 5px solid transparent;
    /* Initial transparent border */
    /*transition: border-color 0.3s ease, transform 0.3s ease, border-width 0.3s ease;*/
    /* Add a subtle inset shadow for depth, mimicking glass */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    font-size: 1.4em;
    color: #0077cc;
}

.tile-container:hover {
    transform: scale(1.05);
    /* The tile grows slightly */
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.2),
        inset 5px 5px 15px rgba(255, 255, 255, 0.4),
        inset -5px -5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    background: #46d0e3;
}

.tile-container:hover .tile-icon {
    /* Apply the scale to the icon */
    transform: scale(1.2);
}

.tile-container:hover .tile-inner {
    border-width: 10px;
}

.tile-icon {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0;
    padding: 0;
    display: block;
    border-radius: 20px;
    transform: scale(1.1);
    transition: transform 0.3s ease;

}


/* Define the movement steps */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#music-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;

    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;

}

#music-toggle:active {
    transform: translateY(-2px);
    transition: transform 0.5s ease-in-out;
}


#music-icon {
    width: 40px;
    height: 40px;
    display: block;
}

@font-face {
    font-family: 'MarvelouzTube Font 3';
    src: url('./assets/MarvelouzTube\ Font\ 3.ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Regular 3';
    src: url('./assets/Avenir\ Regular.ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.tile-row a {
    display: block;
    /* Make sure the link is a block element */
    text-decoration: none;
    /* Remove underline */
    text-align: center;
    /* 💥 This centers block-level children (like the <h3>) */
    color: #75807f;
    text-decoration: none;
}

.tile-row a:hover p {
    opacity: 0;
}

.tile-name-bubble {
    position: relative;

    left: 50%;
    top: -20px;
    transform: translateX(-50%) scale(0.8);

    min-width: 70px;
    min-height: 40px;

    padding: 10px 20px;


    background: rgba(255, 255, 255, 0.70);
    color: #4a4a4a;
    padding: 5px 10px;
    border-radius: 18px;
    font-size: 1.2em;
    font-weight: bold;
    white-space: normal;
    pointer-events: none;
    z-index: 20;
    align-content: center;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    opacity: 0;

    transition: opacity 0.2s ease, transform 0.2s ease;

}

.tile-row a:hover .tile-name-bubble {
    opacity: 1;

    transform: translateX(-50%) scale(1);
}

.tile-name-bubble:before {
    content: "";
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    top: 100%;
    width: 0;
    border-top: 10px solid rgba(255, 255, 255, 0.70);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

h1 {
    font-family: 'MarvelouzTube Font 3', sans-serif;
}

a{
    padding-left: 20px;
    padding-right: 20px;
}

/* TODO:
- Add lower bar with 'start'
*/