/* imports Noto Sans JP font form Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap');    

html {
    box-sizing: border-box;     /* doesn't allow page to stretch morre than screen (horizontally)*/
}

body {
    margin: 0;                  /* default is 10px */
    min-height: 100vh;  
    background-color: #000;

    /* sets the background to a repeating svg image; taken from heropatterns.com */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23888888' fill-opacity='0.2'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    
    color: #eee;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    text-align: center;

    /* flex */
    display: flex;
    align-items: center;
    justify-content: center;
}

.light-body{                    /* light theme */
    background-color: #fff;
    color: #000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.2'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bulb-container {
    display: flex;
    justify-content: flex-end;
    min-height: 1.6rem;
}

.fa-lightbulb {
    font-size: 1.5rem;
}

.fa-lightbulb:hover {
    color: rgb(253, 253, 112);
    font-size: 1.6rem;
}

.lit-bulb {                     /* light theme */
    color:rgb(248, 248, 0);
}

.lit-bulb:hover {               /* light theme */
    color: #111;
}

.quote-container {
    width: auto;
    max-width: 900px;
    padding: 20px 30px;
    border-radius: 10px;
    background-color: rgba(200, 200, 200, 0.5);
}

.light-quote-container {        /* light theme */
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 10px 10px rgba(0, 0, 0, 0.2);
}

.quote-text {
    font-size: 2.75rem;
}

.long-quote {
    font-size: 2rem;
}

.fa-quote-left {
    font-size: 4rem;
}

.quote-author {
    font-size: 2rem;
    margin-top: 15px;
    font-weight: 400;
    font-style: italic;
}

.button-container {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

button {
    cursor: pointer;
    font-size: 1.2rem;
    height: 2.5rem;
    border: none;
    border-radius: 10px;
    color: #fff;
    background-color: #333;
    outline: none;
    padding: 0.5rem 1.8rem;
    box-shadow: 0 0.3rem rgba(255, 255, 255, 0.65);
}

.light-button {                     /* light theme */
    background-color: #444;
    box-shadow: 0 0.3rem rgba(121, 121, 121, 0.65);
    filter: brightness(100%);
}

button:hover {
    filter: brightness(120%);
}

.light-button:hover {               /* light theme */
    filter: brightness(120%);
}

button:active {
    transform: translate(0, 0.3rem);
    box-shadow: 0 0.1rem rgba(255, 255, 255, 0.65);
}

.light-button:active {              /* light theme */
    box-shadow: 0 0.3rem rgba(121, 121, 121, 0.65);
}

.btn-twitter:hover, .btn-github:hover {
    color: #38a1f3;
}

.fa-twitter, .fa-github {
    font-size: 1.5rem;
}

.loader {
    border: 16px solid #333;
    border-top: 16px solid #f3f3f3; 
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

.light-loader {                     /* light theme */
    border: 16px solid #f3f3f3;
    border-top: 16px solid #333;
}

.stuck-loader {
    animation-play-state: paused;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
  

/* Media Query: Tablet or smaller */
@media screen and (max-width: 1000px) {
    .quote-container {
        margin: auto 10px;
    }

    .quote-text {
        font-size: 2.5rem;
    }
}
