* {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    width: 100%;
}

a {
    text-decoration: none;
    color: #000;
}

header {
    text-align: center;
    background-color: #3d3d3d;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.menu, .notes {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e1e1e1;
    cursor: pointer;
    transition-property: left, right;
    transition-duration: 0.5s;
}

.menu > p, .notes > p {
    text-align: center;
}

header h1 a {
    text-align: center;
    font-family: 'Bebas Neue', cursive;
    font-weight: normal;
    color: #e1e1e1;
}

nav, .notice-container {
    background-color: #3d3d3d;
    color: #e1e1e1;
    position: absolute;
    transition-property: left, right;
    transition-duration: 0.5s;
    overflow-y: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.left, .right {
    position: absolute;
    color: #e1e1e1;
    transition-property: left, right;
    transition-duration: 0.5s;
    cursor: pointer;
}

.fa-times {
    cursor: pointer;
}

.fa-times:hover {
    color: #ff0000;
}

nav h2, nav h3, .notice-container h2 {
    font-family: 'Merriweather', serif;
}

.border, nav ul:nth-of-type(2) {
    border-bottom: 1px solid #e1e1e1;
}

nav ul li {
    list-style-type: none;
    margin-left: 1rem;
}

nav li a {
    font-family: 'Merriweather', serif;
    transition-duration: 0.2s;
    transition-delay: 0.1s;
    color: #e1e1e1;
}

nav li a:hover {
    font-size: 1.08rem;
    color: #9b9b9b;
}

#tense_button {
    cursor: pointer;
}

.rotated {
    transform: rotate(180deg);
}

.support-container, .faq-container {
    position: fixed;
    background-color: #3d3d3d;
    color: #e1e1e1;
}

.faq-container a {
    word-wrap: break-word;
    color: #e1e1e1;
    text-decoration: underline;
}

.faq-container a:hover {
    color: #9b9b9b;
}

.support {
    position: absolute;
    text-align: center;
    font-family: 'Merriweather', serif;
}

.support-container p:not(#card) {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.support-container p:last-of-type {
    margin-top: 0;
}

.support-container #card {
    background-color: transparent;
    text-align: center;
    width: 100%;
    border: none;
    color: #e1e1e1;
    font-family: 'Merriweather', serif;
    cursor: pointer;
    text-decoration: underline;
}

#card:focus {
    outline: none;
}

#card:hover {
    color: #9b9b9b;
}

.support-container .fa-times, .faq-container .fa-times {
    position: absolute;
    z-index: 2;
}

footer {
    background-color: #3d3d3d;
    text-align: center;
    width: 100%;
    height: 2rem;
    font-family: 'Merriweather', serif;
    z-index: -1;
    overflow: hidden;
}

footer div {
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
}

footer p {
    color: #e1e1e1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

footer div > p {
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    -webkit-box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.5);
}

@media screen and (max-width: 1920px) {
    header {
        height: 5rem;
    }

    .menu, .notes {
        font-size: 1.3rem;
        top: 1.5rem;
    }

    .menu {
        left: 2rem;
    }

    .menu-click {
        left: 18rem;
    }

    .notes {
        right: 2rem;
    }

    .notes-click {
        right: 18rem;
    }

    .menu > p, .notes > p {
        padding-bottom: 0.2rem;
    }

    .menu > p {
        padding-left: 0.4rem;
    }

    .notes > p {
        padding-right: 0.4rem;
    }

    header h1 a {
        font-size: 4rem;
    }

    nav, .notice-container {
        width: 15%;
        height: calc(100% - 7rem);
        top: 5rem;
    }

    nav {
        left: -15%;
    }

    .left, .right {
        font-size: 2rem;
        top: 1.3rem;
    }

    .left {
        left: -17rem;
    }

    .right {
        right: -17rem;
    }

    nav h2, nav h3, .notice-container h2 {
        margin-left: 1rem;
        margin-top: 1rem;
        font-size: 1.5rem;
    }

    nav h3 {
        font-size: 1rem;
        width: 35%;
    }

    nav ul {
        margin: 1rem auto 0;
    }

    nav ul li {
        padding: 5px 0;
    }

    nav ul:last-of-type {
        margin-bottom: 1.5rem;
    }

    #tenses {
        margin: 1rem auto 0;
    }

    .support-container, .faq-container {
        width: 10%;
        height: 25%;
        bottom: 2.5rem;
        font-size: 1.3rem;
    }

    .support-container {
        left: 35%;
    }

    .faq-container {
        right: 35%;
    }

    .support {
        width: 80%;
        height: 85%;
        top: 10%;
        left: 10%;
        font-size: 0.9rem;
    }

    .support p:not(:first-of-type):not(:last-of-type), #card {
        margin-top: 1rem;
    }

    .support-container .fa-times, .faq-container .fa-times {
        right: 0.5rem;
        top: 0.5rem;
    }

    footer div {
        width: 40%;
    }

    footer p {
        margin: 0.5rem 0;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 1440px) {
    nav, .notice-container {
        width: 20%;
    }

    nav {
        left: -20%;
    }

    .support-container, .faq-container {
        width: 12%;
        height: 23%;
    }

    .faq-container .support p {
        margin-top: 1rem;
    }
}

@media screen and (max-width: 1024px) {
    .menu-click {
        left: 11rem;
    }

    .notes-click {
        right: 11rem;
    }

    nav, .notice-container {
        width: 30%;
        height: calc(100vh - 7rem);
        top: 5rem;
    }

    nav {
        left: -30%;
    }

    .support-container, .faq-container {
        width: 18%;
        height: 25%;
        bottom: 4rem;
        overflow: hidden;
    }

    .support-container {
        left: 25%;
    }

    .faq-container {
        right: 25%;
    }

    .support {
        font-size: 0.8rem;
        margin-top: 1rem;
    }

    .support p:not(:first-of-type):not(:last-of-type), .support button {
        margin-top: 0.5rem;
    }

    .faq-container .support p:first-of-type {
        margin-top: 0;
    }

    footer div {
        width: 70%;
    }
}

@media screen and (max-width: 500px) {
    header h1 a {
        font-size: 3rem;
        line-height: 5rem;
    }

    .menu, .notes {
        top: 1.8rem;
        transition-property: color;
        transition-duration: 0.5s;
    }

    .menu {
        left: 1rem;
    }

    .notes {
        right: 1rem;
    }

    .menu-click {
        left: 1rem;
        z-index: -1;
        color: transparent;
    }

    .notes-click {
        z-index: -1;
        right: 1rem;
        color: transparent;
    }

    .left, .right {
        top: 1.7rem;
        font-size: 1.5rem;
    }

    .menu p, .notes p {
        display: none;
    }

    nav, .notice-container {
        width: 55%;
    }

    nav {
        left: -55%;
    }

    nav h2, nav h3, .notice-container h2 {
        width: 100%;
        font-size: 1.2rem;
    }

    nav h3 {
        font-size: 1rem;
    }

    nav ul li {
        padding: 4px 0;
    }

    nav li a {
        font-size: 0.9rem;
    }

    .support-container, .faq-container {
        bottom: 2.5rem;
        width: 40%;
    }

    .support-container {
        height: 30%;
    }

    .support-container {
        left: 1rem;
    }

    .faq-container {
        right: 1rem;
    }

    .support {
        margin-top: 0.2rem;
    }

    footer div {
        width: 100%;
    }

    footer p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 320px) {
    .support-container {
        height: 35%;
    }
}