/* DESKTOP RULES --- Mobile rules further down*/
a {
    color: rgb(180, 180, 180);
}
a:hover {
    color: rgb(255, 255, 255);
}

b {
    color: rgb(255, 255, 255);
}

body {
    background-color: rgb(3, 3, 3);
    color: rgb(250, 250, 250);
    font-family: Times New Roman, serif;
}

caption {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.collapsible {
    background-color: rgb(45, 45, 45);
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 15px;
    outline: none;
    padding: 10px;
    text-align: left;
    width: 90%;
}
.collapsible:active,
.collapsible:hover {
    background-color: rgb(60, 60, 60);
}

.column {
    float: left;
    margin-left: 1.665%;
    margin-right: 1.665%;
    width: 30%;
}

.content {
    background-color: rgb(30, 30, 30);
    color: rgb(245, 245, 245);
    font-size: 16px;
    line-height: 18px;
    margin-bottom: 15px;
    margin-left: 5%;
    margin-right: 5%;
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    text-align: left;
    transition: max-height .2s ease-out;
    width: auto;
}

.FeatList {
    vertical-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
}

.feat {
    background-color: rgb(45, 45, 45);
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    outline: none;
    padding: 10px;
    text-align: left;
    width: 100%;
}
.feat:active,
.feat:hover {
    background-color: rgb(60, 60, 60);
}

.feat-desc {
    background-color: rgb(20, 20, 20);
    color: rgb(252, 252, 252);
    font-size: 16px;
    line-height: 18px;
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    text-align: left;
    transition: max-height .2s ease-out;
    width: auto;
}
.feat-desc ul {
    font-size: 16px;
    line-height: 18px;
}

#filter-div {
    width: 50%;
}

#FilterForm {
    background-color: rgb(30, 30, 30);
    color: rgb(235, 235, 235);
    font-size: 14px;
    line-height: 16px;
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    text-align: left;
    transition: max-height .2s ease-out;
    width: auto;
}

#filters {
    background-color: rgb(45, 45, 45);
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    padding: 4px;
    text-align: left;
    width: 100%;
}
#filters:active,
#filters:hover {
    background-color: rgb(60, 60, 60);
}

h1 {
    color: rgb(255, 255, 255);
}
h2 {
    color: rgb(255, 255, 255);
    line-height: 2px;
    margin-top: 1em;
    text-align: left;
    text-decoration: underline;
}
h3 {
    color: rgb(255, 255, 255);
    margin-bottom: .5em;
    margin-top: .25em;
    text-align: left;
    text-decoration: underline;
}
h4 {
    color: white;
    font-size: 18px;
    font-style: italic;
    font-weight: bold;
    margin-bottom: .1em;
    margin-top: .3em;
    text-align: left;
    text-decoration: underline;
}

.inner-padding {
    padding: 10px 0;
}

ol, ul {
    font-size: 18px;
    margin-top: 0;
}

p {
    font-size: 18px;
    margin: 8px 0;
    text-align: left;
    text-indent: 45px;
}

.row {
    margin-bottom: 30px;
    margin-top: 15px;
}
.row::after {
    clear: both;
    content: "";
    display: table;
}

.rules {
    margin-left: 7.5%;
    margin-right: 7.5%;
    margin-top: 70px;
}

.sidenav {
    background-color: #000;
    height: 100%;
    overflow-x: hidden;
    padding-top: 60px;
    position: fixed;
    right: 0;
    top: 0;
    transition: 0.25s;
    width: 0;
    z-index: 1;
}
.sidenav .closebtn {
    font-size: 24px;
    position: absolute;
    top: 8px;
}
.sidenav a {
    color: rgb(225, 225, 225);
    display: block;
    font-size: 20px;
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    transition: 0.25s;
}
.sidenav a.active {
    background-color: white;
    color: black;
}
.sidenav a:hover {
    color: rgb(255, 255, 255);
    font-weight: bold;
}

#SpellList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.spell-button {
    background-color: rgb(45, 45, 45);
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    padding: 5px 10px;
    text-align: left;
    width: 100%;
}
.spell-button:active,
.spell-button:hover {
    background-color: rgb(60, 60, 60);
}

.spell-card {
    width: 100%;
}

.spell-desc {
    background-color: rgb(20, 20, 20);
    color: rgb(252, 252, 252);
    font-size: 14px;
    line-height: 18px;
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    text-align: left;
    transition: max-height .2s ease-out;
    width: auto;
}
.spell-desc h3 {
    color: rgb(200, 200, 200);
    font-size: 18px;
    font-style: italic;
    text-decoration-line: none;
}
.spell-desc p {
    font-size: 16px;
    margin: 8px 0;
    text-align: left;
    text-indent: 20px;
}
.spell-desc ul {
    font-size: 16px;
    line-height: 18px;
}

table, th, td {
    border: 2px solid black;
    border-collapse: collapse;
    margin: auto;
    margin-bottom: 15px;
    margin-top: 15px;
    max-width: 750px;
    padding: 5px;
    text-align: center;
}

.tablecolumnleft {
    float: left;
    margin-left: 4%;
    width: 44%;
}
.tablecolumnright {
    float: right;
    margin-right: 4%;
    width: 44%;
}

th {
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.topnav {
    background-color: rgb(20, 20, 20);
    margin-left: -14px;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100.5%;
}
.topnav a,
.topnav span {
    color: white;
    cursor: pointer;
    display: block;
    float: left;
    font-size: 24px;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
}
.topnav a:hover,
.topnav span:hover {
    background-color: white;
    color: black;
}

.topnavcenter a {
    float: none;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.topnavcenterleft a {
    float: none;
    left: 40%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.topnavcenterright a {
    float: none;
    left: 60%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.topnavleft {
    left: 60px;
    position: absolute;
    top: 60%;
    transform: translate(-50%, -50%);
}
.topnavleft a:hover {
    background-color: black;
    color: white;
}

.topnavright {
    float: right;
}

tr:nth-child(even) {
    background-color: rgb(40, 40, 40);
}

/* MOBILE RULES */
@media screen and (max-width: 600px) {

    .sidenav {
        padding-top: 15px;
    }
    .sidenav a {
        font-size: 12px;
        padding: 4px 4px 4px 12px;
    }

    #SpellList {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .topnavcenter a {
        left: 0;
        position: relative;
        top: 0;
        transform: none;
    }
}
