/*
:root {
  --primary-color: darkseagreen;
  --secondary-color: #779377;
  --color-3: #fff;
  --color-4: #c6ebc6;
}

:root{
  --primary-color: #ffa1d0;
  --secondary-color: #ff7cb3;
  --color-3: #fff;
  --color-4: #eb5d98;
} 

:root{
  --primary-color: #e0e0e0;
  --secondary-color: #b6b6b6;
  --color-3: #fff;
  --color-4: #636363;
} 
*/

:root{
  --color-1: #e9d7c0;
  --color-2: #daa38f;
  --color-3: #9b7d61;
  --color-4: #92ada4;
  --color-5: #fed8a6;
}

html, body {
    height: 99%;
    background-color: var(--color-4);
    font-family: 'Devin Chavez Font', sans-serif;
}

.container{
    flex: 1;
    height: 100%;
    display: flex;
    padding: 5px;;

}

.left-menu{
    flex-direction: column;
    height: 100%;
    display: flex;
    width: 250px;
    user-select: none;
    justify-content: space-between;
}

.upload-section, .filter-section{
    background-color: var(--color-2);
    height: 25%;
    border-radius: 10px;
    position: relative;
    margin-right: 15px;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    flex: none;
}

.upload-section .upload-text{
    text-align: center;
    padding: 10px;
    font-size: 13px;
    background-color: #ac7f6f;
}

.file-item {
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    flex-direction: column;
    height: 200px;
    width: 100%;
    background-color: #ffff;
    border: 2px solid#ffff;
    object-fit:contain;
    image-rendering: pixelated;

}

.tab-content {
    width: 100%;
    gap: 4rem;
    padding: 10px;
    justify-content: space-around;
    overflow-y: scroll;
}

#sprites.tab-content, #ui.tab-content{
    display: grid;
    grid-template-rows: repeat(auto-fill, 200px);
    grid-template-columns: repeat(auto-fill, 200px);
}

#spritesheets.tab-content{
    display: grid;
    grid-template-rows: repeat(auto-fill, 300px);
    grid-template-columns: repeat(auto-fill, 300px);
}

#tilesets.tab-content{
    display: grid;
    grid-template-rows: repeat(auto-fill, 300px);
    grid-template-columns: repeat(auto-fill, 300px);
}

.download-lonk{
    color: #000000;
    text-decoration: none;
    border: 1px solid #6e6e6e;
    padding: 0 5px 0 5px;
    border-radius: 5px;
    font-size: 10px;
    display: block;
    text-align: center;
}

.download-lonk:hover {
    text-decoration: underline;
    background-color: #adadad;
}

.file-item:hover{
    border: 2px solid black;
    background: #e7e7e7;
}

form select, form input, form button{
    padding: 10px;
    width: 100%;
}

form button{
    background-color: #ac7f6f;
    border-radius: 0 0 10px 10px;
    border: 1px solid #ac7f6f;
    cursor: pointer;
    font-family: 'Devin Chavez Font', sans-serif;
    bottom: 0;
    position: absolute;
    left: 0;
}

.filter-section{
    padding: 5px;
    height: 70px;
}

.filter-section input{
    padding: 10px;
}

.download-section{
    background-color: var(--color-1);
    border-radius: 15px;
    display: flex;
    height: 100%;
    width: 100%;
}

.tabs{
    height: 30%;
}

.tabs div{
    margin: 5px 0 5px 5px;
    background-color: var(--color-5);
    padding: 10px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
}

.tabs .selected{
    background-color: var(--color-1);
}

.tabs div:hover{
    color:#6e6e6e;
}

form button:hover{
    border: 1px solid black;
}

.zoom-container{
    background-color: #ffff;
    width: 70%;
    position: relative;
    height: 70%;
    top: 10%;
    left: 15%;
    border: 5px solid black;
    align-items: center;
    display: flex;
    z-index: 10;
    flex-direction: column;
    opacity: 100%;
}

.zoom-container .zoomed-img{
    height: 90%;
    width: 90%;
    image-rendering: pixelated;
    object-fit: contain;
    position: absolute;
    bottom: 5px;
}

.zoom-container .preview-text, .toggle-container{
    background-color: black;
    color: white;
    padding: 5px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    z-index: 11;
}

.zoom-container .preview-text:hover{
    color: #6e6e6e;
}

.dark-mode{
    background-color: black;
}

.toggle-container{
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.toggle-container .toggle-text{
    width: 20px;
}

.hidden{
    display: none;
}

.backdrop{
    width: 100%;
    height:100%;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    backdrop-filter: blur(10px);
}

/* toggle switch */

.toggle-container .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-container .switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-container .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(72, 51, 141);
  -webkit-transition: .2s;
  transition: .2s;
  border-radius: 34px;
}

.toggle-container .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .1s;
  transition: .1s;
  border-radius: 50%;
}

.toggle-container .toggle-switch:checked + .slider {
  background-color: #f3d721;
}

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