header a {
    text-decoration: none;
}

header a * {
    cursor: pointer;
}

#playplace {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#playplace>h1 {
    height: 2.5em;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    background-color: #c46931;
    display: flex;
    justify-content: center;
    align-items: center;
}

#playplace h1 a {
    position: absolute;
    left: 1em;
    border: 6px solid #803212;
    border-radius: 10px;
    padding: 0.25em 0.5em 0.25em 0.5em;
    background-color: #eaa646;
    color: #008;
    text-decoration: none;
}

#playplace h1 a:hover {
    color: #22f;
    text-decoration: underline;
}

#categories {
    flex: 1;
    width: 100%;
    background-color: #eaa646;
    border-top: 6px solid #803212;
    padding: 1em;
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.automata {
    height: 20em;
    width: 12.5em;
    border: 6px solid #803212;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #000;
    text-decoration: none;
    align-items: center;
    cursor: pointer;
}

.automata h1 {
    flex: none;
    height: 3em;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    background-color: #c46931;
    border-bottom: 6px solid #803212;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.automata img {
    flex: 1;
    width: 100%;
}

#automaton_container {
    flex: 1;
    background-color: #eaa646;
    border-top: 6px solid #803212;
    display: flex;
    justify-content: center;
    align-items: center;
}

#automaton_tablet {
    min-height: 80%;
    width: 60%;
    display: flex;
    flex-direction: row;
}

#information {
    width: 35em;
    border: 6px solid #803212;
    border-radius: 40px 30px 30px 40px;
    background-color: #c46931;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1em;
    gap: 40px;
}

#information img {
    width: 100%;
    height: 30em;
    object-fit: cover;
    object-position: top;
    border: 6px solid #803212;
    border-radius: 20px;
    cursor: pointer;
}

#ruleset {
    height: min-content;
    width: min-content;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    border: 6px solid #803212;
    border-radius: 20px 20px 0 0;
    background-color: #eaa646;
}

#ruleset h1 {
    width: 100%;
    height: 1.25em;
}

#ruleset_grid {
    display: grid;
    grid-template-columns: repeat(9, 1.5em);
    font-weight: 900;
    font-size: 30px;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.5em;
    border: 0px solid #803212;
}

.zero {
    background-color: #00a;
    color: #fff;
}

.one {
    background-color: #0f0;
}

.two {
    background-color: #f00;
}

#expanded {
    height: 100%;
    width: 100%;
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(70, 50, 40, 75%);
    cursor: pointer;
    z-index: 2;
}

#expanded img {
    height: 90%;
    width: 70%;
    object-fit: cover;
    object-position: top;
    border: 6px solid #803212;
    border-radius: 30px;
}

#notes {
    flex: 1;
    border: 6px solid #803212;
    border-radius: 30px 40px 40px 30px;
    background-color: #c46931;
    transform: translateX(-6px);
    padding: 1.5em;
    font-family: Arial, Helvetica, sans-serif;
}

#notes p {
    font-size: 1.25rem;
}
