@import url('https://fonts.googleapis.com/css2?family=Comic+Sans+MS:wght@400&family=Permanent+Marker&family=Shadows+Into+Light&display=swap');

body {
    background-color: #1a202c;
    font-family: Arial, sans-serif;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.container {
    background-color: #2a3f5d;
    color: #000;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    overflow: auto;
}

.header {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px #000;
    margin-bottom: 1rem;
    font-weight: bold;
    font-family: 'Permanent Marker', Arial, sans-serif;
    text-decoration: underline;
}

.tables {
    display: grid;
    gap: 1rem;
    font-family: 'Shadows Into Light', Arial, sans-serif;
}

@media (min-width: 1024px) {
    .tables {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, auto);
    }
}

@media (max-width: 1023px) and (min-width: 864px) {
    .tables {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}

@media (max-width: 863px) and (min-width: 473px) {
    .tables {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, auto);
    }
}

@media (max-width: 472px) and (min-width: 305px) {
    .tables {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto);
    }
}

@media (max-width: 304px) {
    .tables {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, auto);
    }
}

html, body {
    min-width: 304px;
}

.table {
    background-color: #ffd700;
    border: 2px solid #1a202c;
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
}

.table h3 {
    background-color: #ff9913;
    color: #000;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
    padding: 0.5rem 0;
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: bold;
    border: 2px solid #000;
    font-family: 'Permanent Marker', Arial, sans-serif;
    font-size: var(--header-font-size, 1rem);
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    .header {
        font-size: 1.5rem;
    }
    .table {
        padding: 0.25rem;
    }
}
