/*

*/

body {
    margin: 0;
    padding: 0;
    font-family: Helvetica, sans-serif;
    color: #222;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
}

p {

}

iframe {
    border: none;
    margin: 0;
    padding: 0;
}

a {
    color: #666;
}

/*

*/

/*

*/

#wrapper {

}

/*

*/

.quote {
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 45px;
    overflow: auto;
    background-color: #0A246A;
}

.quote h2 {
    max-width: 90%;
    width: 540px; margin: 220px auto;
    font-family: Helvetica, sans-serif;
    color: #fff;
    text-shadow: 0 0 10px #000;
    line-height: 150%;
    letter-spacing: 2px;
}

.buttons {
    position: fixed;
    background: #fff;
    z-index: 2;
    top: 0;
    right: 0;
    width: 45px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .2);
}

.button {
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    display: block;
    float: left;
}

.button:hover, .button:active {
    background: rgba(0, 0, 0, .2);
}

/*

*/

.tasks {
    position: relative;
}

.mww > .photo {
    position: fixed;
    top: 0;
    left: 0;
    right: 45px;
    bottom: 0;
    background-position: center center;;
    background-size: cover;
}

.mww > .photo + form input[type="file"] {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
}

.circle {
    margin: 20px auto;
    height: 150px;
    width: 150px;
    position: relative;
    border-radius: 75px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    display: block;
    float: left;
    margin: 10px;
    margin-bottom: 40px;
}

.circle span em {
    border-radius: 999px;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 20px solid transparent;
    box-sizing: border-box;
}

.circle:not(.show) span em {
    transform: rotate(0deg)!important;
}

.circle > span {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: absolute
}

.circle > span:first-child {
    left: 0
}

.circle > span:last-of-type {
    left: 49.9%
}

.circle span:first-child em {
    left: 100%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left-color: transparent!important;
    border-left-width: 0!important;
    transform-origin: 0 50%;
    transition: transform ease-out 1s 1s;
}

.tasks.delay .circle span:first-child em {
    transition: transform ease-out 1s 2s;
}

.circle span em {
    transform: rotate(0deg);
    transition: transform ease-in 1s;
}

.tasks.delay .circle span em {
    transition: transform ease-out 1s 1s;
}

.circle span:last-of-type em {
    left: -100%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right-color: transparent!important;
    border-right-width: 0!important;
    transform-origin: 100% 50%
}

.circle h4 {
    position: absolute;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    width: 80%;
    height: 80%;
    border-radius: 100%;
    top: 10%;
    left: 10%;
    line-height: 120px;
    padding: 0;
    margin: 0;
    text-align: center;
    background: #fff;
    font-size: 13px;
    z-index: 1;
    overflow: hidden;
}

.tasks .circle.red span em {
    border-color: #E03C32;
}

.tasks .circle.grey span em {
    border-color: #999;
}

.tasks .circle.green span em {
    border-color: #006B3D;
}

.circle strong {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    text-align: center;
}

.circle.double h4:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    right: 0;
    display: block;
    z-index: -1;
}

/*

*/

table.calendar {
    border-collapse: collapse;
    width: 100%;
}

table tr td {
    border-left: 5px solid #fff;
    padding: 5px;
    position: relative;
}

table tr td:not(.color-):not(.continue):not(.time) {
    border-top: 5px solid #fff;
    margin-right: -5px;
}

table tr.active td {
    background: #fcc;
}

table tr.active td.time {
    color: #900;
}

/**/

.quotes {
    width: 306px;
    margin-top: 20px;
}

.quotes .row {
    clear: both;
}

.quotes .row:nth-child(even) {
    margin-right: 17px;
}

.quotes .row:first-child, .quotes .row:last-child {
    padding-right: 34px;
}

.quotes .row .quote-box {
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    text-align: center;
    padding-left: 3px;
    padding-right: 3px;
    float: right;
    display: flex;        /* enables flex centering */
    justify-content: center; /* horizontal */
    align-items: center;
    border-radius: 17px;
    margin-bottom: -4px;
    position: relative;
}

.quotes .row .quote-box.size-0 {
    font-size: 5px;
}

.quotes .row .quote-box.size-1 {
    font-size: 4.5px;
}

.quotes .row .quote-box.size-2 {
    font-size: 3.5px;

}

.quotes .row .quote-box.size-3 {
    font-size: 3px;
}

.quotes .row .quote-box.size-4 {
    font-size: 3px;
}

.quotes .row .quote-box.size-5 {
    font-size: 2.6px;
}

.quotes .row .quote-box.size-6 {
    font-size: 2.3px;
}

.quotes .row .quote-box.size-7 {
    font-size: 2px;
}

.quotes .row .quote-box.size-8 {
    font-size: 2px;
}

.quotes .row .quote-box.size-9 {
    font-size: 2px;
}

.quotes .row .quote-box.size-10 {
    font-size: 2px;
}

.quotes .row .quote-box:after {
    content: '';
    display: block;
    width: 30px;
    height: 34.61px;
    position: absolute;
    top: -1px;
    left: 50%;
    margin-left: -15px;

    clip-path: polygon(
            50% 0%,   /* top */
            100% 25%, /* top-right */
            100% 75%, /* bottom-right */
            50% 100%, /* bottom */
            0% 75%,   /* bottom-left */
            0% 25%    /* top-left */
    );
}

.quotes .row:nth-child(4n) .quote-box:nth-child(odd):after {
    background: rgba(0, 0, 0, 0.1);
}

.quotes .row:nth-child(4n+1):not(:first-child) .quote-box:nth-child(even):after {
    background: rgba(0, 0, 0, 0.1);
}

.quotes .row:nth-child(4n+2) .quote-box:nth-child(even):after {
    background: rgba(0, 0, 0, 0.1);
}

.quotes .row:nth-child(4n+3):not(:last-child) .quote-box:nth-child(odd):after {
    background: rgba(0, 0, 0, 0.1);
}

/*

*/

.video-js > * {
    display: none;
}

.video-js > .vjs-control-bar {
    display: block;
}

.video-js > .vjs-control-bar > * {
    display: none;
}

.video-js > .vjs-control-bar .vjs-play-control {
    display: block;
    width: 45px;
    height: 45px;
    -webkit-appearance: none;
    line-height: 45px;
    text-align: center;
    font-size: 25px;
    border: none;
    background: none;
    position: relative;
}

.video-js > .vjs-control-bar .vjs-play-control.vjs-paused {

}

.video-js > .vjs-control-bar .vjs-play-control > span {
    display: none;
}

.video-js > .vjs-control-bar .vjs-play-control:before, #hls-p3.video-js > .vjs-control-bar .vjs-play-control:before {
    content: "P1";
    display: block;
    text-align: center;
    width: 45px;
    height: 45px;
    position: absolute;
    left: 0;
    top: 0;
}

#hls-p3.video-js > .vjs-control-bar .vjs-play-control:before {
    content: "P3";
}

/*

*/

.calendar.style {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

/* Main heading */
h1.calendar-style {
    margin: 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

/* Day cells */
.calendar.style td {
    height: 120px;
    padding: 10px;
    vertical-align: top;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: background .15s ease;
}

.calendar.style td:hover {
    background: #f8fafc;
}

/* Weekend columns */
.calendar.style tr td:nth-child(6),
.calendar.style tr td:nth-child(7) {
    background: #fafafa;
}

/* Day number */
.calendar.style h3 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

/* Today */
.calendar.style td.active {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.calendar.style td.active h3 {
    color: #2563eb;
}

/* Days outside the current month */
.calendar.style td.muted {
    background: #f9fafb;
}

.calendar.style td.muted h3 {
    color: #cbd5e1;
}

/* Events */
.calendar.style td div {
    margin: 3px 0;
    padding: 4px 6px;
    border-left: 3px solid #bbb;
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.3;
    transition: background .15s ease;
}

.calendar.style td div:not(.own) {
    color: #777;
    background: #eee;
}

.calendar.style td div.reminder {
    color: #900;
}

.calendar.style td div:hover {
    background: #ddd;
}

/* Links to previous/next month */
.calendar.style th a {
    color: #999;
    text-decoration: none;
}

.calendar.style .mww:hover {
    color: #888;
    text-decoration: underline;
}

/*

*/

.weather {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: #34495e;
    background: #fff;
    border: 1px solid #e5e9ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Each row represents one metric */
.weather tr {
    border-bottom: 1px solid #edf0f2;
}

.weather tr:last-child {
    border-bottom: 0;
}

/* Cells */
.weather td {
    padding: 7px 3px;
    height: 32px;
    white-space: nowrap;
    text-align: center;
    border-right: 1px solid #f0f2f4;
    border-left: none;
    vertical-align: middle;
}

.weather td:last-child {
    border-right: 0;
}

/* First column / metric names */
.weather td:first-child {
    text-align: left;
}

/* Alternating columns make the dense table easier to scan */
.weather tr:nth-child(even) td {
    background: #fafbfc;
}

/* Weather icons */
.weather img {
    display: block;
    width: 42px;
    height: 42px;
    margin: -4px auto;
}

/* Wind arrows */
.weather .wind-arrow {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 18px;
    color: #3498db;

    /* iOS 9 / older Safari */
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;

    -webkit-transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
}

/* Slightly emphasize the temperature row */
.weather tr:nth-child(3) td {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

/* Wind speed */
.weather tr:nth-last-child(2) td {
    color: #2980b9;
}

/**/

div.persons {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 8px 0;
    margin-bottom: 20px;
}

/* Style the anchor tags inside .persons like standard iOS buttons */
div.persons a.person {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    padding: 10px 5px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

div.persons a.person:active {
    opacity: 0.6; /* Classic touch feedback */
}

a.action {
    display: block;
    position: relative;
    padding: 14px 45px 14px 15px;
    background: #ffffff;
    border-bottom: 1px solid #c8c7cc;
    text-decoration: none;
    color: #000000;
    font-size: 17px;
    font-family: monospace; /* Preserves your timestamp structure formatting */
}

/* Add a clean top-border mimic for the first row right after an h2 */
h2 + a.action {
    border-top: 1px solid #c8c7cc;
}

/* Highlight the table row when tapped or held */
a.action:active {
    background-color: #d9d9d9;
}

/* 4. Inside the Action Rows: The Reward Span */
a.action > span {
    font-size: 14px;
    font-weight: 500;
    float: right;
    margin-right: 15px; /* Pulls it nicely to the right next to the arrow space */
    padding: 3px 8px;
    border-radius: 4px;
}

/*

*/

/* The Outer Fortune Wheel Frame Component */
.wheel-viewport {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 50px auto;
}

/* iOS 9 Premium Floating Indicator Needle */
.wheel-pointer {
    position: absolute;
    top: 50%;
    right: -10px;
    margin-top: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 25px solid #ffffff; /* White needle handles contrast beautifully */
    z-index: 100;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
    -webkit-filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3));
}

/* The Rotating Circle Base with Glass/Depth Styles */
.fortune-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border: 6px solid #ffffff;
    border-radius: 50%;
    background: #fbfbfd;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 0 20px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 0 20px rgba(0,0,0,0.1);

    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Frosted-glass premium center pin overlay */
.fortune-wheel::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    margin-left: -15px;
    background: #ffffff;
    border: 1px solid #c8c7cc;
    border-radius: 50%;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Vibrant Slice Coloring via Pure CSS nth-child
   Uses a gradient fading downwards to fake a clean wedge segment overlay
   ========================================================================== */
.fortune-slice, .fortune-text {
    position: absolute;
    width: 50%;
    height: 120px; /* Thicker bar height creates a wider visual pie wedge block */
    top: 50%;
    right: 0;
    margin-top: -60px; /* Keeps the rotational axis perfectly centered */
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    text-align: right;
    z-index: -1;
    box-sizing: border-box;
}

/* Slice 1: iOS System Blue */
.fortune-slice:nth-child(6n+1) { background: rgba(0, 122, 255, 0.6); } /* Slice 2: iOS System Purple */
.fortune-slice:nth-child(6n+2) { background: rgba(88, 86, 214, 0.6); } /* Slice 3: iOS System Teal */
.fortune-slice:nth-child(6n+3) { background: rgba(90, 200, 250, 0.6); } /* Slice 4: iOS System Green */
.fortune-slice:nth-child(6n+4) { background: rgba(76, 217, 100, 0.6); } /* Slice 5: iOS System Orange */
.fortune-slice:nth-child(6n+5) { background: rgba(255, 149, 0, 0.6); } /* Slice 6: iOS System Pink */
.fortune-slice:nth-child(6n+6) { background: rgba(255, 45, 85, 0.6); }


/* Beautiful White Contrast Typography over the bright slices */
.fortune-text {
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: #ffffff; /* Crisp white text readable on all backgrounds */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Enhanced clarity */
    white-space: nowrap;
    overflow: hidden;
    padding-left: 20px;
    z-index: 10;
    line-height: 120px;
}

/* iOS 9 Native Hardware Keyframes Definition */
@-webkit-keyframes iosWheelSpin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(var(--target-spin, 1440deg)); }
}
@keyframes iosWheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(var(--target-spin, 1440deg)); }
}

/* Decelerating spin utility class */
.fortune-wheel.spinning {
    -webkit-animation: iosWheelSpin 10s cubic-bezier(0.08, 0.82, 0.14, 1) forwards;
    animation: iosWheelSpin 10s cubic-bezier(0.08, 0.82, 0.14, 1) forwards;
}

@-webkit-keyframes revealText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes revealText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 2. Apply to your element */
.reveal {
    opacity: 0; /* Hidden by default */

    /* iOS 9 Support */
    -webkit-animation: revealText 0.3s ease-out forwards;
    -webkit-animation-delay: 10s;

    /* Standard modern support */
    animation: revealText 0.3s ease-out forwards;
    animation-delay: 10s;
    text-align: center;
}

/*

*/

a.continue {
    width: 320px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 20px auto;
    display: block;
}

/*

*/

.rulebook {
    max-width: 760px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #77796d;
    margin-bottom: 14px;
}

.intro {
    color: #77796d;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 32px;
}

.rules {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rule;
    border-top: 1px solid #dcdcd3;
}

.rules li {
    counter-increment: rule;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    align-items: start;
    padding: 23px 0;
    border-bottom: 1px solid #dcdcd3;
    font-size: 19px;
    line-height: 1.55;
}

.rules li::before {
    content: counter(rule, decimal-leading-zero);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e6e5dc;
    color: #66695c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}