:root {
    --r-cfb-green: #0C7F0B;
    --r-cfb-white: #FBFBFB;
    --r-cfb-black: #0C0F0B;
    --r-cfb-warning: #CD0000;
    --r-cfb-purple: #9C0F9B;
    --r-cfb-gold: #FFD400;
    --r-cfb-orange: #FF4500;
}

main {
    padding: 1rem;
}

#postrules tr:nth-child(even) {
    background: rgba(12, 127, 11, 15%);
}

.bar a {
    color: #fbfbfb;
    font-family: 'Lato', serif;
    text-decoration: none;
    height: 140px;
}

.bar img {
    margin: 10px 0;
}

.highscores {
    margin: 5px;
    border: solid 2px #0C7F0B;
    border-collapse: collapse;
}

.time {
    text-align: right;
}

th.time,
h2 {
    text-align: center;
}

#postrules td {
    padding: 12px 7px;
    font-size: medium;
    text-size-adjust: none;
}

#postrules td a {
    line-height: normal;
}

#postrules td:nth-of-type(1) {
    font-weight: bold;
}

h2 {
    text-align: center;
}

table {
    width: 100%;
}

.tabs {
    justify-content: center;
    display: flex;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    div.tab {
        font-size: 0.8rem;
        padding: 5px 10px;
        margin: 0 2px;
    }
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--r-cfb-green);
    color: white;
    border-radius: 4px 4px 0 0;
    margin: 0 5px;
}

.tab:hover {
    filter: grayscale(80%);
}

.tab.active {
    filter: brightness(130%);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    background: #fff;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

strong {
    color: var(--r-cfb-warning);
}

#rulesimg {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1rem;
}

@media (max-width: 600px) {
    #rulesimg {
        width: 95%;
    }
}

@media (min-width: 600px) {
    #rulesimg {
        width: 50%;
    }
}

div.bar h2 {
    display: inline-block;
    font-size: 2rem;
    font-weight: 400;
}

.generalnote {
    margin-bottom: 1rem;
}

.generalnote>h3 {
    display: inline;
}

.generalnote>p {
    display: inline;
}

footer {
    text-align: center;
}