body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f9f9f9;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none"><rect width="100" height="100" fill="%23f9f9f9"/><line x1="50" y1="0" x2="50" y2="100" stroke="%23e0e0e0" stroke-width="1"/><line x1="0" y1="50" x2="100" y2="50" stroke="%23e0e0e0" stroke-width="1"/><rect x="1" y="1" width="48" height="48" rx="8" ry="8" fill="rgba(255,255,255,0.2)"/><rect x="51" y="1" width="48" height="48" rx="8" ry="8" fill="rgba(255,255,255,0.2)"/><rect x="1" y="51" width="48" height="48" rx="8" ry="8" fill="rgba(255,255,255,0.2)"/><rect x="51" y="51" width="48" height="48" rx="8" ry="8" fill="rgba(255,255,255,0.2)"/></svg>');
    background-repeat: repeat;
    background-size: 100px 100px;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: block;
    overflow: hidden;
    z-index: 0;
}

.tile {
    width: 90vmin;
    height: 90vmin;
    max-width: 700px;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease;
    opacity: 1;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.tile.hidden {
    opacity: 0;
}

.proverb {
    font-family: "Freestyle Script", "Comic Sans MS", cursive;
    font-size: clamp(2.4rem, 7vw, 6rem);
    text-align: center;
    padding: 2rem 20%;
    color: #7A95BC;
    text-shadow:
        -0.5px -0.5px 0 #222,
         0.5px -0.5px 0 #222,
        -0.5px  0.5px 0 #222,
         0.5px  0.5px 0 #222;
    opacity: 0;
    animation: fadeIn 0.75s forwards;
    z-index: 2;
}

.proverb-small {
    font-size: clamp(2.2rem, 6.3vw, 5.4rem);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.button {
    width: 50px;
    height: 50px;
    background-color: rgba(48, 79, 140, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    color: white;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: rgba(0, 86, 179, 0.9);
}

.switch-container.inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 60px;
}

.switch-label-text {
    font-size: 0.7rem;
    text-align: center;
    width: 100%;
    margin-bottom: 4px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
    background: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.switch-label .switch-handle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.switch-input {
    display: none;
}

.switch-input:checked + .switch-label {
    background: #7A95BC;
}

.switch-input:checked + .switch-label .switch-handle {
    transform: translateX(36px) rotate(360deg);
    background: #fff;
}