/*
  Author: Mauro Vogel
  Date: January 2024
*/

/* ----- Body ----- */
body{
    font-family: Helvetica;
}

/* ----- Behavoir of very narrow window ----- */
@media screen and (max-width: 940px) {
    #rightWindow{
        text-align: left !important;
        left: 10px;
        right: auto;
        margin-left: 800px;
    }
    footer{
        display: none
    }
}
@media screen and (max-height: 800px) {
    footer{
        display: none
    }
}

/* ----- Horizontal line ----- */
hr {
    border: none;
    height: 1px;
    background-color: #000;
}

/* ----- centered content class ----- */
.centered-content{
    text-align: center;
    align-items: center;
}

/* ----- Title ------- */
#titleDiv{
    min-width: 920px;
}

/* ----- A/B mention ---- */
#titleAB{
    position: absolute;
    font-size: 50px;
    left: 10;
    top: -30px;
}
#switchVersion{
    position: absolute;
    font-size: 15px;
    left: 50px;
    top: 35px;
}

/* ----- CytoScape ----- */
/* -- main window -- */
#cytoscape {
    min-width: 640px;
    width: calc(100% - 300px);
    margin-left: 150px;
    margin-right: 150px;
    height: 500px;
    position: absolute;
    top: 90px;

    border: dotted 1px black;

}
/* -- tape window -- */
#cytoscapeTape {
    min-width: 640px;
    max-width: calc(100% - 300px);
    width: 100%;
    margin-left: 150px;
    margin-right: 150px;
    height: 50px;
    position: absolute;
    top: 615px;
}
/* -- tree window -- */
#cytoscapeTree{
    position: absolute;
    top: 140px;
    width: 140px;
    height: 450px;
    border: dotted 1px black;
}

/* ----- Arrow Tape Position ----- */
.arrow-down {
    position: relative;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #000; 
    left: 462px;
    top: 525px;
  }

/* ----- Tape Control div (buttons etc) ----- */
#tapeControlDiv{
    min-width: 950px;
    position: relative;
    top: 580px;
}
/* ----- Simulation Control div ----- */
#simulationControlDiv{
    min-width: 950px;
    position: relative;
    top: 590px;
}
/*Simulation Speed */
.slider {
    -webkit-appearance: none;
    cursor: pointer;
    width: 200px;
    height: 22px;
    border-radius: 100px;
    background: #ccc;
    margin: 0 auto; /* Center the slider horizontally */
    margin-top: 8px;
    transition: transform 0.2s;
}
.slider:hover{
    border: solid 2px rgb(109, 109, 109);
    transition: background-color 0.3s;

}
#simulationSpeed{
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ---- Animation Toggle ---- */
#animationToggleDiv{
    display: flex;
    justify-content: center;
}


/* ----- Right Window ----- */
#rightWindow{
    min-width: max-content;
    position: fixed;
    width: max-content;
    top: 100px;
    right: 10px;
    text-align: right;
}
#fileInput{
    width: 125px;
}

/* ----- user Guide ----- */
h3{
    font-size: 17px;
}

#leftWindow{
    position: absolute;
    width: max-content;
    top: 80px;
}
#userGuide{
    font-size: 11px;
}


/* ----- Button Design ----- */
button{
    width: 150px;
    height: 30px;
    font-weight: 700;
    padding: 5px;
    margin: 2px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    color:#363636
}
/*grey-buttons*/
.grey-button{
    background-color: #ccc;
    border: 2px solid darkgray;
}
.grey-button:hover{
    color: rgba(0, 0, 0, 0.815);
    background-color: darkgray;
    border: 2px solid darkgray
}
.grey-button:disabled{
    color: rgba(206, 118, 118, 0.815);
    background-color: rgb(238, 238, 238);
    border: 2px solid rgb(255, 173, 173);
    cursor: not-allowed;
}
/*green-buttons*/
.green-button{
    color: white;
    background-color: #bfdf56;
    border: 2px solid #adca4d;
}
.green-button:hover{
    background-color: #adca4d;
    border: 2px solid #adca4d;
}
.green-button:disabled{
    color: rgba(206, 118, 118, 0.815);
    background-color: rgb(238, 238, 238);
    border: 2px solid rgb(255, 173, 173);
    cursor: not-allowed;
}
/*red-buttons */
.red-button{
    color: white;
    background-color: #df5656;
    border: 2px solid #ca4d4d;
}
.red-button:hover{
    background-color: #ca4d4d;
    border: 2px solid #ca4d4d;
}
.red-button:disabled{
    color: rgba(206, 118, 118, 0.815);
    background-color: rgb(238, 238, 238);
    border: 2px solid rgb(255, 173, 173);
    cursor: not-allowed;
}

/*cancel button*/
.cancel-button{
    vertical-align: center;
    width: 50px;
    background: transparent;
    font-size: 24px; 
    color: #ccc; 
    cursor: pointer;
    border: none;
}

.cancel-button:hover {
    color: darkgray; /* Darker grey on hover */
}

.cancel-button-div {
    text-align: right;
}

/*move tape left, move tape right*/
#moveTapeLeft, #moveTapeRight{
    width: 50px;
}

/*Step/Reset Simulation Buttons*/
#stepSimulationButton, #resetSimulationButton{
    width: 130px;
}
/*move left move right button*/
#moveTapeRight,
#moveTapeLeft {
    width: 50px;
}

/*Save Button*/
.thin{
    width: 120px !important;
}

/* Toggle Buttons ("Move") */
.toggle-button {
    background-color: #ccc;
    border: 2px solid darkgray;
    }
.toggle-button:hover{
    color: rgba(0, 0, 0, 0.815);
    background-color: darkgray;
    border: 2px solid darkgray
}
.toggle-button.active {
background-color: #4CAF50;
color: #fff;
border: 2px solid darkgreen;
}



/*----- Text Input Fields -----*/
.modal-input{
    width: 20px !important;
    font-weight: 700 !important;
}

/* ---- Text Input Fields ---- */
input[type="text"]{
    width: 150px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding-left: 5px;
    font-weight: 500;
    letter-spacing: 2px;
}
input[type="text"]:hover{
    background-color: #f2f2f2;
    border: 2px solid #666;
}
input[type="text"]:focus{
    border: 2px solid #bfdf56;
    outline: none;
}



/* ----- Presets ----- */
select {
    width: 120px;
    height: 30px;
    border-radius: 10px;
    margin-bottom: 5px;
    border: 2px solid darkgrey;
    text-align: center;
    font-weight: 700;
    transition: transform 0.2s;
}
select:hover{
    background-color: darkgrey;
};
/* Style the options */
option {
    background-color: #f2f2f2;
    padding: 5px;
    border: 1px solid #ccc;
}



/* ------- Modals ------*/

/* Modal */
.modal {
    display: none;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
  }
.modal-content {
    background-color: white;
    width: 300px;
    padding: 5px 5px 20px 20px;
    border-radius: 5px;
    text-align: center;
}

/*save  modal */
#saveModal{
    position: fixed;
    padding-top: calc(30vh);
    padding-left: calc(100vw - 350px); 
    background-color: rgba(0, 0, 0, 0.7);
}



/* on-off switch */
/* --- on off switch  code adapted from https://alvarotrigo.com/blog/toggle-switch-css/ --- */
.fancy-checkbox{
    height: 0;
    width: 0;
    visibility: hidden;
}

.checkboxLabel {
    cursor: pointer;
    text-indent: 60px;
    width: 40px;
    height: 22px;
    background: #ccc;
    display: block;
    border-radius: 100px;
    border: solid 2px #ccc;
    position: relative;
}
.fancy-checkbox:enabled:hover + .checkboxLabel{
    border: solid 2px rgb(109, 109, 109);
    transition: border 0.2s;
    transform: scale(1.05);
}

.fancy-checkbox:disabled + .checkboxLabel{
    background-color: #ff9f9f88;
    border: 2px solid rgb(194, 194, 194);
}

.checkboxLabel:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 10px;
    transition: 0.2s;
}

.fancy-checkbox:checked + .checkboxLabel {
    background: #bfdf56;
    border: solid 2px #bfdf56;
}

.fancy-checkbox:checked + label:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}



/*tape movement input (in Edge Modal)*/

/* Styling for input[type="range"] */
#tapeMovement {
    width: 60%; /* Ensure the range input takes the full width available */
    height: 20px; /* Set the height as needed */
    margin: 5px 0; /* Adjust the margin as needed */
    background: #ccc; /* Background color for the range track */
    border: 2px solid darkgray; /* Border style for the range track */
    border-radius: 10px; /* Rounded corners for the range track */
    cursor: pointer; /* Change the cursor to a pointer on hover */
    transition: transform 0.2s; /* Add a smooth transform effect on hover */
}

/* Stil für den Slider-Wert */
#slider-value {
    color: black;
    display: inline-block;
}

/* Stil für den neutralen Wert */
#slider-value.neutral {
    margin-left: 0px;
}

/* Stil für den linken Wert */
#slider-value.left {
    margin-left: -160px;
    color: black;
}

/* Stil für den rechten Wert */
#slider-value.right {
    margin-left: 160px;
}



/*---- Footer ----*/
footer {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 4px;
    padding-right: 10px;
    text-align: right;
    background-color: #f1f1f1;
    width: 250px;
    box-sizing: border-box; /* Ensures padding doesn't affect the width */
}