@font-face {
    font-family: "DynaPuff";
    font-style: normal;
    font-weight: 200;
    src: url('fonts/DynaPuff-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: "Alatsi";
    font-style: normal;
    font-weight: 200;
    src: url('fonts/Alatsi-Regular.ttf') format('truetype');
    font-display: swap;
}

body, div, h1, h2, h3, p, ul, li, img {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    min-width: 1040px;
    background-color: #f2efea;
    color: #5c4046;
    font-family: "Alatsi", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: "DynaPuff", cursive;
    font-weight: normal;
}

a, a:visited {
    color: #cca087;
}

a:hover {
    color: #e7b8be;
}

#page-shadow {
    width: 1000px;
    box-sizing: border-box;
    margin: 40px auto;
    background-color: #e7b0b5;
}

#wrapper {
    position: relative;
    top: -6px;
    left: -6px;
    background-color: #fafdfd;
    border: 1px solid #e7b0b5;
}

header {
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff;
    border-bottom: 2px dashed #e7b0b5;
    position: relative;
}

header h1 {
    font-size: 64px;
    color: #f4dcea;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

header h2 {
    font-family: "Alatsi", sans-serif;
    font-size: 18px;
    color: #e7b0b5;
    letter-spacing: 2px;
    border-top: 3px double #b0bec5;
    display: inline-block;
    padding-top: 8px;
}

#content {
    padding: 25px;
    background-color: #fafdfd;
}

footer {
    background-color: #ffffff;
    border-top: 2px dashed #e7b0b5;
    text-align: center;
    padding: 25px;
    font-size: 12px;
    color: #78909c;
}

footer a, footer a:hover, footer a:visited {
    color: #cca087;
}

.stats-widget {
    background-color: #ffffff;
    border: 2px solid #e7b0b5;
    margin-bottom: 25px;
}

.stats-top {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 25px;
    border-bottom: 2px dashed #e7b0b5;
}

.stats-live {
    flex: 0 0 auto;
}

.stats-live-count {
    font-family: "DynaPuff", cursive;
    font-size: 64px;
    color: #d81b60;
    line-height: 1;
}

.stats-live-label {
    font-family: "Alatsi", sans-serif;
    font-size: 14px;
    color: #e7b0b5;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stats-panel {
    flex: 1 1 260px;
}

.stats-panel-title {
    font-family: "DynaPuff", cursive;
    font-size: 15px;
    color: #e7b0b5;
    border-bottom: 2px dotted #e7b0b5;
    padding-bottom: 5px;
    margin-bottom: 14px;
}

.stats-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
}

.stats-metric-value {
    font-family: "DynaPuff", cursive;
    font-size: 22px;
    color: #5c4046;
}

.stats-metric-label {
    font-family: "Alatsi", sans-serif;
    font-size: 12px;
    color: #967e7e;
    margin-top: 2px;
}

.stats-history {
    padding: 25px;
}

.stats-history-header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.stats-history-title {
    font-family: "DynaPuff", cursive;
    font-size: 15px;
    color: #e7b0b5;
}

.stats-range-toggle {
    display: flex;
    gap: 4px;
}

.stats-range-btn {
    font-family: "DynaPuff", cursive;
    font-size: 12px;
    color: #d81b60;
    background-color: #ffffff;
    border: 2px outset #f8bbd0;
    padding: 3px 10px;
    cursor: pointer;
}

.stats-range-btn:hover {
    background-color: #eeeae7;
    border-style: inset;
}

.stats-range-btn.is-active {
    background-color: #f3dfea;
    border-style: inset;
    color: #ad1457;
}

.stats-chart-box {
    position: relative;
    box-sizing: border-box;
    width: 896px;
    height: 204px;
    border: 2px solid #e7b0b5;
    background-color: #fdf2f5;
    padding: 10px;
}

.stats-chart-box svg {
    display: block;
    width: 872px;
    height: 180px;
    cursor: crosshair;
}

.stats-chart-cursor {
    stroke: #967e7e;
    stroke-width: 1;
    stroke-dasharray: 4 3;
    opacity: 0;
    pointer-events: none;
}

.stats-chart-point {
    fill: #ffffff;
    stroke: #d81b60;
    stroke-width: 3;
    opacity: 0;
    pointer-events: none;
}

.stats-chart-cursor.is-visible,
.stats-chart-point.is-visible {
    opacity: 1;
}

.stats-chart-tooltip {
    position: absolute;
    z-index: 2;
    min-width: 118px;
    padding: 7px 9px;
    background-color: #ffffff;
    border: 2px solid #e7b0b5;
    box-shadow: 3px 3px 0 #f3dfea;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
}

.stats-chart-tooltip.is-visible {
    opacity: 1;
}

.stats-chart-tooltip.is-below {
    transform: translate(-50%, 0);
}

.stats-chart-tooltip-value {
    font-family: "DynaPuff", cursive;
    font-size: 14px;
    line-height: 1.25;
    color: #d81b60;
}

.stats-chart-tooltip-time {
    margin-top: 2px;
    font-family: "Alatsi", sans-serif;
    font-size: 11px;
    line-height: 1.25;
    color: #5c4046;
}

.stats-chart-empty {
    font-family: "Alatsi", sans-serif;
    font-size: 13px;
    color: #967e7e;
    text-align: center;
    padding: 40px 10px;
}

