:root {
    --bg-color: #fff;
    --text-color: #333;
}

body,
html {
    font-family: Lato, Helvetica, sans-serif;
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.dark-mode {
    --bg-color: #333;
    --text-color: #fff;
}

.button-container {
    position: relative;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.title {
    margin-right: 25%;
    position: relative;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding-top: 30px;
}

.navbar {
    position: fixed;
    width: 25%;
    height: 100%;
    background-color: rgba(255, 253, 253, 0.822);
    border: solid #ccc 1px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 15px;
    right: 0;
    overflow-y: scroll;
}

.navbar h2 {
    color: darkslategrey;
    text-align: center;
    margin-bottom: 4px;
}

.navbar h3 {
    color: darkslategrey;
    text-align: center;
    font-size: 14px;
    margin-bottom: 4px;
}

.navbar button {
    position: relative;
    border-width: 0px;
    color: black;
    font-size: 14px;
    border-radius: 3px;
    text-align: center;
    transition: 0.3s;
    width: 100%;
    height: 35px;
    margin-bottom: 8px;
    cursor: pointer;
}

.navbar select {
    position: relative;
    border-width: 0.5px;
    color: black;
    font-size: 14px;
    border-radius: 3px;
    border-color: #ccc;
    text-align: center;
    transition: 0.3s;
    width: 100%;
    height: 35px;
    margin-bottom: 8px;
    margin-top: 5px;
    cursor: pointer;
}

.navbar input[type="number"] {
    width: 50%;
    border-width: 0.5px;
    color: black;
    font-size: 14px;
    border-radius: 3px;
    border-color: #ccc;
    text-align: center;
    height: 25px;
    margin-bottom: 8px;
    margin-top: 5px;
}

#button-tools {
    background-color: #feadb9;
}

#button-translate {
    background-color: #ddf2f4;
    width: 23%;
    font-weight: bold;
    font-size: larger;
}

#button-zoom {
    background-color: #ddf2f4;
    width: 30%;
}

#button-scale {
    background-color: #ddf2f4;
    width: 40%;
    height: 30px;
}

#button-proj {
    background-color: #ec82bd;
}

#button-help {
    background-color: #5f7daf;
    color: white;
}

.button-file {
    border-width: 0px;
    border-radius: 3px;
    position: absolute;
    min-height: 40px;
    min-width: 100px;
    font-size: 16px;
    cursor: pointer;
}

#button-save {
    left: 39%;
    background-color: plum;
}

#button-help {
    left: 25%;
    background-color: #feadb9;
    color: #333;
}

#button-load {
    left: 32%;
    background-color: rgb(197, 164, 240);
}

.navbar button:hover {
    opacity: 0.8;
}

.button-file:hover {
    opacity: 0.8;
}

canvas {
    width: 800px;
    height: 530px;
    position: relative;
    margin-left: 10%;
    margin-top: 25px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: rgba(255, 253, 253, 0.822);
}

textarea {
    width: 1000px;
    height: 480px;
    position: relative;
    margin-left: 15%;
    margin-top: 30px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

a.helplink {
    text-decoration: none;
    color: white;
}

.header {
    text-align: center;
    font-size: 20px;
    font-family: 'Segoe UI';
    font-weight: bold;
    margin-top: 20px;
}

.table {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    border: 1px solid rgb(122, 114, 114);
    border-radius: 5px;
}

td,
th {
    padding: 10px;
}

th {
    background-color: rgb(127, 225, 255);
}

.switch-container {
    position: relative;
    display: inline-flex;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}

.switch {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.switch-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.2s;
}

.switch:checked+.switch-label {
    background-color: #ec82bd;
}

.switch:checked+.switch-label:before {
    transform: translateX(26px);
}

.switch-title {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    vertical-align: middle;
}


/*switch-shader untuk shader*/

.switch-shader-container {
    position: relative;
    display: inline-flex;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}

.switch-shader {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-shader-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.switch-shader-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.2s;
}

.switch-shader:checked+.switch-shader-label {
    background-color: rgb(197, 164, 240);
}

.switch-shader:checked+.switch-shader-label:before {
    transform: translateX(26px);
}

.switch-shader-title {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    vertical-align: middle;
}


/*switch-animate untuk shader*/

.switch-animate-container {
    position: relative;
    display: inline-flex;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}

.switch-animate {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-animate-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.switch-animate-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    border-radius: 50%;
    transition: all 0.2s;
}

.switch-animate:checked+.switch-animate-label {
    background-color: #feadb9;
}

.switch-animate:checked+.switch-animate-label:before {
    transform: translateX(26px);
}

.switch-animate-title {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    vertical-align: middle;
}


/* Style the modal */

.modal {
    color: #333;
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.568);
    /* Black w/ opacity */
}


/* Modal Content */

.modal-content {
    background-color: #f2f2f2;
    margin: 15% auto;
    margin-top: 2%;
    margin-bottom: 0%;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    /* Could be more or less, depending on screen size */
    box-shadow: 0 0 10px rgba(6, 6, 6, 0.5);
    /* Add shadow */
    border-radius: 10px;
    /* Add rounded corners */
}


/* Close Button */

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.title-help {
    text-align: center;
    font-size: 25px;
    font-family: 'Segoe UI';
    font-weight: bold;
    margin-top: 15px;
    color: darkslategrey;
}

.title-help-menu {
    color: purple;
}

#animation-controller {
    display: none;
}