:root {
    --background-main: #30343f;
    --background-header: #191e2b;
    --background-aside: #252935;
    --font-color-primary: #ffffff;
    --slider-bar-color: #5a5d68;
    --slider-bar-color-hover: #9e9e9e;
    --slider-thumb-color: #ffffff;
    --button-color-primary: #393e49;
    --button-color-hover: #4e5565;
    --font-family-primary: 'Open Sans', sans-serif;
}

[data-theme="light-theme"] {
    --background-main: #eeeeee;
    --background-header: #e0e0e0b;
    --background-aside: #fafafa;
    --font-color-primary: #424242;
    --slider-bar-color: #5a5d68;
    --slider-bar-color-hover: #9e9e9e;
    --slider-thumb-color: #424242;
    --button-color-primary: #e0e0e0;
    --button-color-hover: #bdbdbd;   
}

* {
    font-family: var(--font-family-primary);
    color: var(--font-color-primary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

body>header {
    background-color: var(--background-header);
    height: 115px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

nav {
    display: flex;
    flex-direction: row;
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

.btn {
    background-color: var(--button-color-primary);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    height: 36px;
    padding: 15px;
}

nav .btn {
    background-color: transparent;
}

nav .btn:hover {
    background-color: var(--button-color-hover);
}

#btn-text-menu {
    margin: 0 5px;
}

nav i, #btn-download i {
    margin-right: 5px;
    color: var(--font-color-primary);
}

.hidden {
    display: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-main);
    min-height: 745px;
    flex: 1;
}

#meme-container {
    display: flex;
    flex-direction: column;
    width: 610px;
    height: 610px;
    max-width: 70vw;
    max-height: 70vw;
}

.top-text-wrapper, .bottom-text-wrapper {
    width: 100%;
    background-color: #ffffff;
    text-align: center;
}

#top-text-container, #bottom-text-container {
    font-size: 40px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: #000000;
    padding: 17px 50px;
    line-height: 1.2;
}

.image-container {
    flex: 1;
    width: 100%;
    background-color: #000000;
}

#btn-download {
    background-color: #2e7d32;
    color: #ffffff;
    padding: 25px 15px;
    margin-top: 30px;
}

#btn-download:hover, #btn-download:focus {
    background-color:  #1b5e20;
}

#btn-download i {
    margin-right: 5px;
    color: #ffffff;
}

/* ASIDE PANELS */

aside {
    background-color: var(--background-aside);
    width: 260px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 15px;
}

.btn-close {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    border-radius: 3px;
    height: 22px;
    padding: 0px 5px;
    cursor: pointer;
    position: fixed;
    right: 0;
    top: 15px;
}

.btn-close:hover {
    background-color:  var(--button-color-hover);
}

.close-icon {
    color: var(--font-color-primary);
    font-size: 20px;
    font-weight: 900;
}

.sidebar {
    display: flex;
    flex-direction: column;
    background-color: var(--background-aside);
}

h2 {
    font-size: 18px;
    text-align: center;
}

.label {
    font-size: 12px;
    font-weight: 600;
    margin: 20px 0 8px;
}

.input-box, .color-box {
    background-color: var(--button-color-primary);
    border: 0;
    border-radius: 3px;
    outline: 0;
    padding: 5px 10px;
    height: 36px;
}

.input-box:hover {
    background-color: var(--button-color-hover);
}

fieldset{
    border: none;
}

/* IMAGE ASIDE PANEL MENU */

#image-background-options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
}

.image-background-color-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#image-background-color, #text-color, #text-background-color {
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    width: 22px;
    height: 25px;
    margin-right: 3px;
    cursor: pointer;
}

.color-value {
    font-size: 14px;
}

#image-filter-options {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.slider-label, .checkbox-label {
    font-size: 12px;
}

.slider {
    -webkit-appearance: none;
    margin: 10px 0 15px;
    height: 6px;
    border-radius: 3px;
    background: var(--slider-bar-color)
}

.slider:focus {
    background: var(--slider-bar-color-hover);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--slider-thumb-color);
    cursor: pointer;
  }

#btn-reset-filters {
    margin-top: 20px;
    padding: 0 20px;
    align-self: flex-start;
}

#btn-reset-filters:hover {
    background-color: var(--button-color-hover);
}

/* TEXT ASIDE PANEL MENU */

.checkbox{
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.checkbox-label {
    margin-left: 5px;
}

#font-properties {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

#font-selector {
    flex: 1;
    margin-bottom: 5px;
}

#font-size-value {
    flex: 3;
    max-width: 50%;
}

.btn-align-text {
    display: flex;
    justify-content: center;
    flex: 1;
    padding: 0;
    margin-left: 5px;
}  

.btn-align-text:hover, #outline-options button:hover {
    background-color: var(--button-color-hover);
}

#text-color-options{
    display: flex;
    justify-content: space-between;
}

.text-color-wrapper, .text-background-color-wrapper {
    display: flex;
    flex-direction: column;
}

.text-color-wrapper div, .text-background-color-wrapper div {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#outline-options {
    margin-top: 20px;
    display: flex;
}

#outline-options button {
    padding: 0 10px;
}

#outline-options button:nth-of-type(even) {
    margin: 0 5px;
}

.no-outline {
    text-shadow: none;
} 

.light-outline {
    text-shadow: rgb(255, 255, 255) 2px 2px, rgb(255, 255, 255) -2px 2px, rgb(255, 255, 255) 2px -2px, rgb(255, 255, 255) -2px -2px;
}

.dark-outline {
    text-shadow: rgb(0, 0, 0) 2px 2px, rgb(0, 0, 0) -2px 2px, rgb(0, 0, 0) 2px -2px, rgb(0, 0, 0) -2px -2px;
}

/* ######## BREAKPOINTS ######## */

        /* ### TABLET ### */

@media (max-width:700px) {

    /* # HEADER # */    

    body>header {
        height: 102px;
    }
        
    h1 {
       font-size: 26px;
    }
    
    /* # MAIN # */

    #top-text-container, #bottom-text-container {
        font-size: 30px;
    }

    /* # ASIDES # */

    aside {
        width: 100%;
    }
}

       /* # MOBILE # */

@media (max-width:480px) {

       /* # MAIN # */

    #top-text-container, #bottom-text-container {
        font-size:22px;
    }
}
