@font-face {
    font-family: 'ChonkFont';
    src: url('/chonk-calendar/static/fonts/CHONKFONT-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #F0F0F0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

a {
    color: #3498db;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #2c3e50;
}

h2 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: normal;
    font-style: italic;
}

h3 {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.byline {
    margin-bottom: 10px;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
}

.chonk-id {
    font-size: 1.5rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
}

.chonk-image {
    margin-bottom: 2rem;
    position: relative;
    container-type: inline-size;
}

.chonk-image img {
    width: 100%;
    height: auto;
    display: block;
}

.chonk-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    z-index: 10;
    padding: 10px;
    cursor: pointer;
}

.chonk-image .overlay.dark {
    color: black;
}

.chonk-image .overlay.light {
    color: white;
}

.chonk-image .overlay-top {
    display: flex;
    flex: 0 0 20%;
    align-items: flex-start;
    gap: 10px;
}

.chonk-image .overlay-middle {
    flex-grow: 1;
}

.chonk-image .overlay-bottom {
    display: flex;
    flex: 0 0 20%;
    align-items: flex-end;
    gap: 10px;
}

.chonk-image .overlay .date-overlay,
.chonk-image .overlay .time-overlay,
.chonk-image .overlay .chonk-id-overlay,
.chonk-image .overlay .ttnc-overlay {
    font-family: 'ChonkFont', 'Consolas', monospace;
    font-weight: normal;
    font-size: 4cqw;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
}

.chonk-image .overlay .date-overlay {
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
}
.chonk-image .overlay .time-overlay {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
    flex-grow: 1;
}
.chonk-image .overlay .chonk-id-overlay {
    justify-content: flex-start;
    align-items: flex-end;
    text-align: left;
    flex-grow: 1;
    line-height: 0.8em;
    width: 50%;
}
.chonk-image .overlay .ttnc-overlay {
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    flex-grow: 1;
    line-height: 0.8em;
    width: 50%;
}

.chonk-image .overlay.font-courier .date-overlay,
.chonk-image .overlay.font-courier .time-overlay,
.chonk-image .overlay.font-courier .chonk-id-overlay,
.chonk-image .overlay.font-courier .ttnc-overlay {
    font-family: 'Consolas', monospace;
    font-weight: bold;
}

.error {
    color: #e74c3c;
    font-size: 1.2rem;
    padding: 2rem;
    background-color: #fff;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    margin: 0 auto;
}

.progress-section {
    margin: 2rem 0;
}

.progress-section .progress-bar {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-section .progress-bar .progress-fill {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.progress-section .progress-text {
    font-size: 1rem;
    color: #666;
}

.fullscreen-button {
    margin: 1.5rem 0;
}

.fullscreen-button button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.fullscreen-button button:hover,
.fullscreen-button button:focus {
    background-color: #2980b9;
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.fullscreen-button button:active {
    background-color: #21618c; 
}

.chonk-image:fullscreen {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    container-type: inline-size;
}

.chonk-image:fullscreen img {
    width: 100%;
    height: 100%;
}

.about-section {
    margin-top: 3rem;
    text-align: left;
}

.about-section .about-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-section .about-link:hover,
.about-section .about-link:focus {
    text-decoration: underline;
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.about-section .about-content {
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
}

.about-section .about-content p {
    line-height: 1.6;
    color: #555;
}

.about-section .about-content p:not(:last-child) {
    margin-bottom: 1rem;
}
