body {
    background-color: rgb(243, 243, 243);
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

* { box-sizing: border-box; }

.w3-margin { margin: 24px; }
.w3-margin-left { margin-left: 20px; }
.w3-margin-top { margin-top: 20px; }
.w3-padding { padding: 16px; }
.w3-button { border: 0; padding: 9px 14px; cursor: pointer; font: inherit; }
.w3-button:hover { filter: brightness(1.14); }
.w3-table { border-collapse: collapse; width: 100%; }
.w3-table th, .w3-table td { padding: 9px 8px; text-align: left; }
.w3-bordered tr { border-bottom: 1px solid #d7d7d7; }
.w3-border { border: 1px solid #999; }
.w3-circle { border-radius: 50%; }
.w3-text-gray { color: #888; }
.w3-red { background: #a92132 !important; color: white !important; }

.hero {
    width: min(1220px, calc(100vw - 48px));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin: 0 0 18px;
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(129, 72, 181, .26), rgba(24, 135, 175, .18));
}
.hero h1 { margin: 0 0 4px; font-size: 34px; letter-spacing: -.03em; }
.hero p { margin: 0; max-width: 720px; color: #aeb7c4; }
.eyebrow { color: #d9a7ff !important; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.play-hint { max-width: 360px; display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.22); color: #cbd3df; }
.play-hint b { color: white; }
.game-shell::after { content: ""; display: table; clear: both; }
.panel { border: 1px solid rgba(20,20,20,.12); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.08); }
.tabButton { border-radius: 8px; background: transparent; color: inherit; }
.settings-tab { float: right; }

.w3-bar-item {
    width: 100px;
    height: 40px;
    text-align: center;
}

td {
    vertical-align: middle !important;
}

.current {
    background-color: orange !important;
}

.progress-text {
    position: absolute;
    top: 0px;
    bottom: 0px;
    padding: 5px;
    color: white
}

.progress-bar {
    position: relative;
    background-color: rgb(12, 101, 173);
    cursor: pointer;
    width: 200px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 30px;
    background-color: rgb(46, 148, 231)
}

.hidden {
    display: none !important;
}

.hiddenTask {
    display: none !important;
}

.button {
    border: 1px solid black !important;
}

.item-button {
    background-color: white;
    text-align: center;
    width: 200px;
    height: 40px;
    padding: 8px;
}

.item-button:hover {
    cursor: pointer;
    background-color: rgb(192, 192, 192);
}

button:focus {
    outline: none;
}

.scroll {
    overflow-y: auto;
}

.tooltip {
    position: relative;
    display: inline-block;
}
  
.tooltip .tooltipText {
    visibility: hidden;
    width: 240px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: -5px;
    left: 105%;

    opacity: 0;
    transition: opacity 0.5s;
}
  
.tooltip:hover .tooltipText {
    visibility: visible;
    opacity: 0.8;
}

.sidebar-element {
    margin-bottom: 16px;
}

.slidecontainer {
    width: 100%;
}

.slider {
    -webkit-appearance: none;
    width: 50%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.inline {
    display: inline-block;
}

.panel {
    background-color: white;
}

.small-margin  {
    margin-bottom: 2px;
}

@media (max-width: 900px) {
    .w3-margin { margin: 12px; }
    .hero { width: 100%; align-items: stretch; flex-direction: column; }
    .game-shell { width: 100% !important; }
    .game-shell > .panel { float: none !important; width: 100% !important; margin-left: 0 !important; margin-top: 12px !important; overflow-x: auto; }
    .game-shell > .panel:first-child { height: auto !important; }
    .settings-tab { float: none; }
}
