/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: black;
      font-size: 1em;
    line-height: 1.1;
}

body {
    background-color: white;
    min-height: 100vh;
    font-family: Verdana, sans-serif;
    padding-left: 10px;
    padding-right: 10px;
}

a {
    color: black;
}

table {
    color: black;
    background-color: #cccccc;
    padding: 5px;
    border-radius: 15px;
    border-collapse: collapse;
}

table td, table th {
    border: 1px black solid;
    padding: 5px;
}

:not(.index) table tr:first-child th {
    border-top: 0;
}

.index tr:first-child td {
    border-top: 0;
}

table tr:last-child td {
    border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
    border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
    border-right: 0;
}

form table tr td {
    text-align: left;
}

td {
    text-align: center;
}

.song {
    font-size: 1.2em;
    line-height: 1.4;
}

.info {
    text-align: left;
}

.new {
    background-color: #fcc48d;
}

.lfirst {
    border-top-left-radius: 15px;
}

.rfirst {
    border-top-right-radius: 15px;
}

.llast {
    border-bottom-left-radius: 15px;
}

.rlast {
    border-bottom-right-radius: 15px;
}

.pos {
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 900px) {
    h1 {
        background: -webkit-linear-gradient(left, #35126a, #f91362, #ff8e44);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        word-wrap: break-word;
        white-space: normal;
    }
    .menu {
        list-style-type: none;
        /*background-color: #7f496c;*/
        background-color: #fcc48d;
        height: fit-content(100%);
        width: fit-content(100%);
        overflow: hidden;
        padding: 0.5em;
        top: 0;
        border-radius: 10px;
    }

    .menuitem {
        display: grid;
        padding: 0.5em;
    }

    .menuitem a {
        background-color: #fcc48d;
    }

    .community {
        list-style-type: none;
        background-color: #fcc48d;
        border-radius: 10px;
        padding: 0.5em;
    }
}

@media (min-width: 901px) {
    h1 {
        width: max-content;
        background: -webkit-linear-gradient(left, #35126a, #f91362, #ff8e44);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .multicolumn {
        columns: 2;
    }

    .multicolumn .floatleft {
        break-inside: avoid;
    }

     .menu {
         list-style-type: none;
         background-color: #fcc48d;
         height: fit-content(100%);
         overflow: hidden;
         padding: 0.5em;
         top: 0;
         border-radius: 10px;
     }

     .menuitem {
         display: inline-block;
         margin-top: 1.1em;
         margin-bottom: 1.1em;
     }

     .menuitem a {
         background-color: #fcc48d;
         padding: 1em;
     }

     .menuitem a:hover {
         background-color: #FF1860;
     }

    .menuitem a:active {
        background-color: #FF1860;
    }

    .community {
        list-style-type: none;
        float: right;
        background-color: #fcc48d;
        border-radius: 10px;
        padding: 0.5em;
    }

    .community p {
        text-align: center;
    }

    .communityitem {
        padding: 0.25em;
    }

    .darkmode-switch {
        float: right;
        padding: 0px;
    }
}

footer {
    padding-top: 10px;
    min-height: 50px;
}


/* ==========================================================================
   Dark Mode
   ========================================================================== */

.dark-mode {
    color: white;
    background-color: #111111;
    min-height: 100vh;
    font-family: Verdana, sans-serif;
    padding-left: 10px;
    padding-right: 10px;
}

.dark-mode a {
    color: #E6EEF7;
}

.dark-mode table {
    color: white;
    background-color: #333333;
    padding: 5px;
    border-radius: 15px;
    border-collapse: collapse;
}

.dark-mode table td, table th {
    border: 1px white solid;
    padding: 5px;
}

.dark-mode .new {
    background-color: #542242;
}

.dark-mode .pos {
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 900px) {
    .dark-mode .menu {
        list-style-type: none;
        /*background-color: #7f496c;*/
        background-color: #542242;
        height: fit-content(100%);
        width: fit-content(100%);
        overflow: hidden;
        padding: 0.5em;
        top: 0;
        border-radius: 10px;
    }

    .dark-mode .menuitem a {
        background-color: #542242;
    }

    .dark-mode .community {
        background-color: #542242;
        border-radius: 10px;
        list-style-type: none;
        float: right;
    }
}

@media (min-width: 901px) {
    .dark-mode .multicolumn {
        columns: 2;
    }

    .dark-mode .multicolumn .floatleft {
        break-inside: avoid;
    }

    .dark-mode .menu {
        list-style-type: none;
        background-color: #542242;
        height: fit-content(100%);
        overflow: hidden;
        padding: 0.5em;
        top: 0;
        border-radius: 10px;
    }

    .dark-mode .menuitem a {
        background-color: #542242;
        padding: 1em;
    }

    .menuitem a:hover {
        background-color: #FF1860;
    }

    .menuitem a:active {
        background-color: #FF1860;
    }

    .dark-mode .community {
        background-color: #542242;
        border-radius: 10px;
        list-style-type: none;
        float: right;
    }
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

.dark-mode ::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

.dark-mode ::selection {
    background: #b3d4fc;
    text-shadow: none;
}


/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Dark mode toggle styling
   ========================================================================== */

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
}

input:checked + .slider {
    background-color: #FF1860;
}

input:focus + .slider {
    box-shadow: 0 0 1px #FF1860;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
    * Don't show links that are fragment identifiers,
    * or use the `javascript:` pseudo protocol
    */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
