
body{
    display: flex;
    flex-direction: column;
    height: 110vh;
    margin: 0px;
    background-repeat: no-repeat;
    background-size: auto;
}

body.body-light{
    background: url(./Images/Blue.jpg);
}

body.body-dark{
    background: url(./Images/black-textured-paper-background.jpg);
}

* {
  box-sizing: border-box;
}

.h1-container{
    display: flex;
    justify-self: center;
    align-self: center;
    margin-left: auto;
}

.dark-light-btn-container{
    display: flex;
    margin-left: auto;
    margin-right: 2rem;
}

button.btn-settings-toggle{
    display: flex;
    flex: auto;
    margin: 0px;
    width: 100%;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    background-color: #1D267D;
    color: #e1c3ff;
    border: #060e58 solid 0px;
    padding: 0.5rem;
}

button.btn-settings-toggle-light{
    background-color: #1D267D;
}
button.btn-settings-toggle-dark{
    background-color: #0A043C;
}

button.btn-settings-toggle:hover{
    scale: 1.3;
    cursor: pointer;
}

button.btn-settings{
    display: flex;
    flex: auto;
    margin: 0px;
    width: 100%;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    background-color:#1D267D;
    color: #e1c3ff;
    border: #060e58 solid 2px;
    padding: 0.5rem;
}

.button-container{
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 1rem;
}

.header-container{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e1c3ff;
    border-bottom: #060e58 solid 2px;
}

.header-container-light{
    background-color: #1D267D;
}

.header-container-dark{
    background-color: #0A043C;
    border-bottom: #2b2c3a solid 2px;
}

.main-container{
    height: 100%;
    padding-top: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    background-color: rgba(0, 0, 0,0.2);
    padding-bottom: 3rem;
}

.settings-wrapper{
    background-color: transparent;
    background-color: rgba(29, 38, 125,0.3);
    border: #060e58 solid 2px;
    color: #e1c3ff;
    border: #060e58 solid 8px; 
}

.settings-container{
    background-color: transparent;
    display: flex;
    flex-direction: column;
    height: 600px;
    width: 300px;
    background-color: rgba(29, 38, 125,0.3);
    font-size: 18px;
    padding: 12px 20px;
}

input#color-select{
    border: #060e58 solid 3px;
    border-radius: 50px;
}


/* PEN COLOR SELECTOR */
input[type='color']#color-select {
    width:100px;
    height:100px;
    border-radius:50px;
    background: #060e58 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #0000001A;
    opacity: 1;
    cursor: pointer;
}

input[type='color']#color-select:hover {
    width:100px;
    height:100px;
    border-radius:50px;
    background: #060e58 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #0000001A;
    opacity: 1;
    cursor: pointer;
    scale: 1.07;
}

input[type="color"]#color-select {
    --webkit-appearance: none;
    border: none;
}
input[type="color"]#color-select::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]#color-select::-webkit-color-swatch {
    border: none;
    border-radius: 50px;
}

/* BACKGROUND COLOR SELECTOR */
input[type='color']#background-color-select {
    width:100px;
    height:50px;
    background: #060e58 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #0000001A;
    opacity: 1;
    cursor: pointer;
}
input[type='color']#background-color-select:hover {
    width:100px;
    height:50px;
    background: #060e58 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #0000001A;
    opacity: 1;
    cursor: pointer;
    scale: 1.07;
}
input[type="color"]#background-color-select {
    --webkit-appearance: none;
    border: none;
}
input[type="color"]#background-color-select::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]#background-color-select::-webkit-color-swatch {
    border: none;
}

/********** Range Input Styles **********/
/* Range Reset */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 15rem;
  }
  
  /* Removes default focus */
  input[type="range"]:focus {
    outline: none;
  }
  
  /***** Chrome, Safari, Opera and Edge Chromium styles *****/
  /* slider track */
  input[type="range"]::-webkit-slider-runnable-track {
    background-color: #e1c3ff;
    border-radius: 0.5rem;
    height: 0.5rem;
  }
  
  /* slider thumb */
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    margin-top: -12px; /* Centers thumb on the track */
  
    /* custom styles */
    height: 2rem;
    width: 2rem;
    border-radius: 50px;
  }

  input[type="range"].light::-webkit-slider-thumb{
    background-color: #060e58; 
  }
  input[type="range"].dark::-webkit-slider-thumb{
    background-color: #e1c3ff; 
  }
  
  /* Reset the :active state for the slider thumb */
  input[type="range"].light::-webkit-slider-thumb:active {
    background-color: #060e58;
  }
  input[type="range"].dark::-webkit-slider-thumb:active {
    background-color: #e1c3ff;
  }
  
  input[type="range"]:focus::-webkit-slider-thumb {
    border: 1px solid #053a5f;
    outline: 3px solid #053a5f;
    outline-offset: 0.125rem;
    scale: 1.1;
  }
  
  /******** Firefox styles ********/
  /* slider track */
  input[type="range"]::-moz-range-track {
    background-color: #e1c3ff;
    border-radius: 0.5rem;
    height: 0.5rem;
  }
  
  /* slider thumb */
  input[type="range"]::-moz-range-thumb {
    border: none; /* Removes extra border that FF applies */
    border-radius: 0; /* Removes default border-radius that FF applies */
  
    /* custom styles */
    background-color: #060e58;
    height: 2rem;
    width: 2rem;
    border-radius: 50px;
  }
  
  /* Reset the :active state for the slider thumb */
  input[type="range"]::-moz-range-thumb:active {
    background-color: #060e58;
  }
  
  input[type="range"]:focus::-moz-range-thumb {
    border: 1px solid #053a5f;
    outline: 3px solid #053a5f;
    outline-offset: 0.125rem;
  }
  
  input[type='range'] {
    accent-color: #060e58;
    width: 250px;
    background: #060e58 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #0000001A;
    opacity: 1;
    cursor: pointer;
  }

.tile-size-div{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #e1c3ff;
    margin-top: 1rem;
}

.background-color-card{
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 1rem;
    gap: 1rem;
}

.grid-wrapper{
    padding: 8px;
    background-color: #060e58;

}

.grid-container{
    display: grid;
    background-color: rgb(255, 255, 255);
    min-width: 600px;
    min-height: 600px;
    border: #060e58 solid 2px;
}

.burner-div{
    width: 300px;
    height: 600px;
}

.color-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

footer{
    display: flex;
    margin-top: auto;
    padding: 20px;
    color: #e1c3ff;
    align-items: center;
    justify-content: center;
}

footer.light{
    background-color: #1D267D;
    border-top: #060e58 solid 2px;
}

footer.dark{
    background-color: #0A043C;
    border-top: #2b2c3a solid 2px;
}

p{
    margin: 0px;
}

.btn-settings:hover{
    scale: 1.07;
    background-color: #5C469C;
}

.grid-element{
    user-select: none; 
}

.grid-element-border{
    border: #f4f4f4 solid 1px;
}


/* @ media for mobile phone */

@media only screen and (max-width: 650px){
    .main-container{
        display: flex;
        flex-direction: column;
        padding: 0px;
        margin: 0px;
        height: auto;
    }
    .settings-container{
        display: flex;
        flex-direction: row-reverse;
        width: auto;
        height: auto;
        align-items: center;
        justify-content: center;
    }
    .color-selector-settings{
        display: flex;
    }
    .button.btn-settings{
        display: flex;
        flex-direction: row;
        width: 100px;
    }
    input[type='color']#color-select {
        width: 50px;
        height: 50px;
    }
    body{
        max-width: 100vh;
    }
    .button-container{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 10px;
        margin: 0px 15px ;
    }
    .grid-container{
        min-width: 500px;
        min-height: 500px;
    }
    .grid-wrapper{
        margin-bottom: 1rem;
    }
    input[type='color']#background-color-select{
        width: 50px;
        height: 30px;
    }
    input[type='range']{
        width: 100%;
    }
    span{
        text-align: center;
    }
    button.btn-settings-toggle{
        font-size: 18px;
    }
    .settings-wrapper{
        display: flex;
        margin-bottom: auto;
    }
}