
body {
    background-color: #efeeee;
    display:grid;
    place-items:center;
    width:100vw;
    height:100vh;
}

.text-color {
    color: #4b4a4a;
}

.co-container {
    width: 128px;
    height: 128px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width: 639px) {
    .co-container {
        width: 85px !important;
        height: 85px !important;
    }
}
.container{
    display:grid;
    place-items:center;
    cursor:pointer;
    padding:4rem;
    background:#efeeee;
    border-radius:50%;
    transition:all 0.3s ease-in;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.1),
        -10px -10px 10px rgba(255,255,255,0.6);
    width: 100px;
    height: 100px;
}
@media (max-width: 639px) {
    .container {
        width: 85px !important;
        height: 85px !important;
        padding: 2rem !important;
    }
}
.container .fas{
    /* display:grid; */
    place-items:center;
    font-size:4rem;
    color:gray;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}
@media (max-width: 639px) {
    .container .fas {
        font-size: 2.67rem; /* Enlarged by 1/3 from 2rem */
    }
}
.container:active{
    box-shadow: inset 10px 10px 10px rgba(0,0,0,0.1),
        inset -10px -10px 10px rgba(255,255,255,0.6);
}
.container:active .fas{
    color:#721efa;
}   

.track {
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    height: 70px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding: 0.5rem;
    box-shadow: inset 10px 10px 10px rgba(0,0,0,0.1),
        inset -10px -10px 10px rgba(255,255,255,0.6);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
.track::-webkit-scrollbar {
    height: 8px;
}
.track::-webkit-scrollbar-track {
    background: transparent;
}
.track::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
.track::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
.track > a {
    flex-shrink: 0;
    box-shadow: none !important;
}
.track > a.yellow-active,
.track > a.green-active,
.track > a.blue-active,
.track > a.purple-active {
    box-shadow: none !important;
}

/* Active and related states */
a.yellow-active { background-color: #FF0; color: #4b4a4a; box-shadow: 0 0 20px #ffd900; }
a.green-active { background-color: #ABFF00; color: #4b4a4a; box-shadow: 0 0 20px #74ee15; }
a.blue-active { background-color: #24E0FF; color: white !important; box-shadow: 0 0 20px #04c4ff; }
a.purple-active { background-color: #f000ff; color: white !important; box-shadow: 0 0 20px #f000ff; }

a.yellow-related { background-color: #FF0; color: #4b4a4a; }
a.green-related { background-color: #ABFF00; color: #4b4a4a; }
a.blue-related { background-color: #24E0FF; color: white !important; }
a.purple-related { background-color: #f000ff; color: white !important; }

/* Base chord button styles - all common properties */
.chord-button {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border-width: 2px;
    font-weight: 600;
    transition-property: transform;
    transition-duration: 200ms;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* background-color: gainsboro; */
    box-shadow: 5px 5px 5px rgba(0,0,0,0.1),
    -5px -5px 5px rgba(255,255,255,0.6);
}

.chord-button:hover {
    transform: scale(1.1);
}

/* Size variations */
.chord-button[data-size="large"] {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
}
@media (min-width: 640px) {
    .chord-button[data-size="large"] {
        width: 4rem;
        height: 4rem;
        font-size: 1.125rem;
    }
}

.chord-button[data-size="small"] {
    width: 2rem;
    height: 2rem;
    font-size: 0.6rem;
}
@media (min-width: 640px) {
    .chord-button[data-size="small"] {
        width: 3rem;
        height: 3rem;
        font-size: 0.75rem;
    }
}

/* Make dim buttons same size as 7th buttons on mobile only */
@media (max-width: 639px) {
    .chord-button[data-color="purple"] {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 0.6rem !important;
    }
    /* Make major/minor buttons same size as 7th buttons on mobile only */
    .chord-button[data-color="yellow"],
    .chord-button[data-color="green"] {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 0.6rem !important;
    }
    /* Remove box-shadow from wheel buttons on mobile */
    .chord-button {
        box-shadow: none !important;
    }
    /* Resize blue buttons in track to match others on mobile */
    .track > a.blue-related {
        width: 2rem !important;
        height: 2rem !important;
        font-size: 0.6rem !important;
    }
}

/* Color variations based on data-color attribute */
.chord-button[data-color="yellow"] {
    border-color: #eae622;
    color: #616014;
}
.chord-button[data-color="yellow"]:hover {
    background: linear-gradient(135deg, #616014, #eae622);
    color: white;
}

.chord-button[data-color="green"] {
    border-color: #8bf34a;
    color: #306e49;
}
.chord-button[data-color="green"]:hover {
    background: linear-gradient(135deg, #306e49, #6ec23a);
    color: white;
}

.chord-button[data-color="blue"] {
    border-color: #75bdf8;
    color: #367ca5;
}
.chord-button[data-color="blue"]:hover {
    background: linear-gradient(135deg, #367ca5, #75bdf8);
    color: white;
}

.chord-button[data-color="purple"] {
    border-color: #d18af8;
    color: #c62fe0;
}
.chord-button[data-color="purple"]:hover {
    background: linear-gradient(135deg, #c62fe0, #d18af8);
    color: white;
}

/* Events div horizontal scrolling */
#events {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
#events::-webkit-scrollbar {
    height: 8px;
}
#events::-webkit-scrollbar-track {
    background: transparent;
}
#events::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
#events::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
#events > div {
    flex-shrink: 0;
}

/* Button styles for combine and download buttons */
.action-button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: #efeeee;
    color: #4b4a4a;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.1), -5px -5px 5px rgba(255,255,255,0.6);
    transition: all 0.2s ease;
}
.action-button:hover {
    background-color: #e0dfdf;
    box-shadow: 3px 3px 3px rgba(0,0,0,0.1), -3px -3px 3px rgba(255,255,255,0.6);
}
.action-button:active {
    box-shadow: inset 5px 5px 5px rgba(0,0,0,0.1), inset -5px -5px 5px rgba(255,255,255,0.6);
}

/* Move events div down on mobile to avoid overlap */
@media (max-width: 639px) {
    #events {
        top: calc(50% + 120px + 25vw + 2rem + 1vw) !important;
    }
    /* Move wheel lower on mobile to avoid overlapping title */
    .wheel-container {
        transform: translate(-50%, -35%) !important;
    }
}

/* Expand main container to use maximum width on mobile and tablet */
@media (max-width: 1024px) {
    main {
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
    }
}

/* Move events div down on tablet to avoid overlap with enlarged wheel */
@media (min-width: 640px) and (max-width: 1024px) {
    #events {
        /* Top position is set dynamically by JavaScript based on wheel size */
        max-width: calc(100vw - 2rem) !important;
        width: calc(100vw - 2rem) !important;
    }
}

/* Move wheel down on desktop */
@media (min-width: 1025px) {
    main {
        max-width: calc(1024px - 2rem) !important;
        width: calc(1024px - 2rem) !important;
    }
    .wheel-container {
        transform: translate(-50%, calc(-45% + 50px)) !important;
    }
}

/* Sticky note style */
.sticky-note {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    background-color: #ffeb3b;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    padding: 4px 8px;
    font-size: 0.75rem;
    color: #333;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 0;
    border-color: transparent #fdd835 transparent transparent;
}

/* Sticky note style for right side */
.sticky-note-right {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 140px;
    height: 140px;
    background-color: #ffeb3b;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    padding: 4px 8px;
    font-size: 0.75rem;
    color: #333;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-note-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 15px;
    border-color: transparent transparent transparent #fdd835;
}

/* Smaller sticky note style for bottom left */
.sticky-note-bottom {
    position: absolute;
    bottom: 10px;
    left: 50px;
    width: 100px;
    height: 80px;
    background-color: #ffeb3b;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: rotate(-1deg);
    padding: 4px 6px;
    font-size: 0.65rem;
    color: #333;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-note-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 12px 0;
    border-color: transparent #fdd835 transparent transparent;
}
