html, body {
 background: black;
 font-family: "Segoe UI", "Open Sans", "Helvetica Neue", sans-serif;
 color: white;
 word-break: break-word;
 hyphens: auto;
 margin: 0;
 padding: 4px 16px;
 height: 100%;
 display: flex;
 flex-direction: column;
 overflow-wrap: normal;
 -webkit-text-size-adjust: 100%;
}

@media (min-width: 1200px) {
 body {
    overflow-y: hidden;
 }
}

/* Small mobile styles */
@media (max-width: 320px) {
 body {
    padding: 2px 8px;
 }
}

h1, h2, h3, h4, h5 {
 margin: 0;
 line-height: 1.1;
}

header {
 padding: 2rem 0;
}

header h1 {
 font-size: 3.5rem;
 text-align: center;
 line-height: 1.1;
 display: flex;
 flex-direction: column;
 align-items: center;
}

header h1 span {
 display: inline-block; /* Prevent word breaking */
}

/* Mobile adjustments for title */
@media (max-width: 480px) {
 header h1 {
    font-size: 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 0;
 }
}

@media (min-width: 768px) {
 header h1 {
    font-size: 6rem;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
 }
}

header p {
 text-align: center;
 font-size: 1.2rem;
 margin: 1rem 0 0;
}

@media (min-width: 768px) {
 header p {
    font-size: 1.4rem;
 }
}

h1 {
 text-align: center;
 font-size: 2rem;
}

h2 {
 font-size: 1.3rem;
}

h3 {
 font-size: 1rem;
}

p {
 font-size: 1rem;
 line-height: 1.4;
 margin: 0.5rem 0;
}

@media (min-width: 1024px) {
 header.container {
    padding: 6rem 0;
 }
}

header.container, div.container {
 margin: 0 auto;
 width: 95%;
}

@media (min-width: 1200px) {
 header.container, div.container {
    width: 1024px;
 }
}

@media (min-width: 1024px) {
 header.container, div.container {
    width: 960px;
 }
 h1 {
    font-size: 8rem;
 }
 h2 {
    font-size: 2rem;
 }
 h3 {
    font-size: 1.5rem;
 }
}

.flex {
 display: flex;
 flex-wrap: wrap;
 align-content: center;
 justify-content: center;
 margin: 2rem -0.5rem;
}

.flex .progress {
 padding: 0.5rem 0;
 box-sizing: border-box;
 margin: 0.25rem 0.5rem;
 width: calc(100% - 1rem);
}

@media (min-width: 375px) {
 .flex .progress {
    width: calc(50% - 1rem);
 }
}

@media (min-width: 780px) {
 .flex .progress {
    margin: 0.5rem;
    padding: 1rem 0;
    width: calc(25% - 1rem);
 }
}

/* Better spacing for very small screens */
@media (max-width: 320px) {
 .flex {
    margin: 1rem -0.25rem;
 }
 .flex .progress {
    margin: 0.15rem 0.25rem;
    padding: 0.25rem 0;
 }
}

svg {
 transform: rotate(-90deg);
 display: block;
 margin: 0;
 width: 100%;
 height: auto;
}

svg circle {
 fill: none;
 stroke-width: 50px;
}

svg circle.prog {
 will-change: auto;
 stroke: #3973ff;
}

svg circle.bg {
 stroke: rgba(0, 0, 0, 0.1);
}

.progress {
 display: flex;
 text-align: left;
}

.progress .left {
 width: 40px;
}

/* Adjust SVG size on smaller screens */
@media (max-width: 374px) {
 .progress .left {
    width: 30px;
 }
}

.progress .left, .progress .right {
 display: flex;
 flex-direction: column;
 justify-content: center;
}

.progress .right {
 flex: 1;
 margin-left: 0.5rem;
}

footer {
 text-align: center;
 margin-top: auto;
 padding: 24px;
 font-size: smaller;
 font-family: monospace;
 line-height: 1.8;
 opacity: 0.8;
}

a {
 color: #3973ff;
 text-decoration: none;
}

/* Prevent overflow on small screens */
@media (max-width: 374px) {
 .progress .right h2 {
    font-size: 1rem;
    word-break: break-all;
 }
 .progress .right h3 {
    font-size: 0.85rem;
 }
}
