
#title img{
    width: 160px;
    height: 150px;    /* Maintains aspect ratio */
    margin: 10px;
}

html {
    zoom: 1.25;
}

body {
    margin: 10px;
    font-family: sans-serif;
    line-height: 2;
    background-color: rgb(195, 223, 240);
}

#title {
    display: flex;
    gap: 20px;
}

select {
    width: 200px;
    height: 25px;
    line-height: normal;
}

p, h1, option {
    line-height: normal;
}

h1 {
    margin-bottom: 10px;
}

.variable {
    display: flex;
    gap: 7px;
}

.slidecontainer {
    width: 150px; /* Width of the outside container */
}

.variable input[type="number"] {
    border: none;
    color: green;
    margin: 3px;
    border-radius: 3px;
    
}


/* checkbox*/

/* Container for the checkbox and label */
.checkbox-container {
    display: inline-block;
    position: relative;
    margin: 10px 0;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

/* Hide the default checkbox */
.checkbox-container input {
    display: none;
}

/* Custom checkbox square */
.checkmark {
    position: absolute;
    top: 5px;
    left: 150px;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 2px solid #ccc;
    border-radius: 4px; /* Rounded corners */
    transition: all 0.2s ease;
    transform: scale(0.8);
}

/* Hover effect */
.checkbox-container:hover input ~ .checkmark {
    background-color: #ddd;
}

/* Checked state */
.checkbox-container input:checked ~ .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

/* Checkmark tick */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the tick when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Tick styling */
.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* */
  
/* The slider itself */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 3px;  
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%; 
    background: green;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: green;
    cursor: pointer;
}

#waiting_text {
    color: red;
}

.variable label {
    display: inline-block;       /* Ensure width/overflow rules apply */
    white-space: nowrap;         /* Prevent text from wrapping to next line */
    width: auto;
    max-width: 200px;            /* Set a max width for responsiveness */
}

button {
    background-color: rgb(51, 197, 51);
    border-radius: 5px;
    color: white;
    height: 25px;
    width: auto;
    border: none;
    transform: scale(1.15);
}

input[type="file"] {
    background-color: rgb(51, 197, 51); /* Match your button color */
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.scroll-box {
    border: 1px solid #ccc;
    padding: 10px;
    max-width: 200px;
    width: auto;
    height: 300px;
    overflow-y: scroll; /* vertical scrollbar */
    background-color: #f9f9f9;
    border-radius: 3px;
}

.scroll-box-mini {
    border: 1px solid #ccc;
    padding: 10px;
    max-width: 200px;
    width: auto;
    height: 45px;
    overflow-x: scroll; /* horizontal scrollbar */
    background-color: #f9f9f9;
    border-radius: 3px;
}

.row {
    display: flex;
    gap: 15px;
}

.column1 {
    width: 75%;
}

.column2 {
    width: 25%;
    padding: 10px;
}

.column3 {
    width: 25%;
}

.column4 {
    width: 75%;
}

.button_controls {
    display: flex;
    gap: 20px;
    margin-left: 15px;
}

#graphs img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
    border-radius: 5px;
        
}

#graphs {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: right;
}

#download_button {
    display: inline-block;
    padding: 0px 4px;
    background-color: #007BFF; /* Button color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border: 5px;
    margin-top: 5px;
}

#download_button:hover {
    background-color: #0056b3; /* Darker on hover */
}

/* table */

#canvas-container {
    width: 100%;
    height: 500px;
    overflow: auto;
    position: relative;
}
canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* Some builds emit a combined class or HTML-CSS fallback */
#math_notation .MJXc-display,
#math_notation .mathjax-display,
#math_notation .mjx-chtml.MJXc-display {
text-align: left !important;
margin: 0 !important;
}

.time-complexity {
    font-style: italic;
}

/* 548 px width aspect ratio changes */

@media (max-width: 893px) {
    body {
        margin: none;
        margin-left: 5px;
    }

    #title {
        flex-direction: column-reverse;
        align-items: center;     /* Vertical */
        text-align: center;
    }

    .row {
        flex-direction: column;
    }

    .column1, .column2, .column3, .column4 {
        width: 100%;
        padding: 10px;
    }
    

    #title h1 {
        margin-bottom: 0;
    }

    #title img {
        width: 192px;
        height: 180px;
    }

    #graphs {  
        width: 96%;
        margin: 0px;
    }
    
    
}