* {
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(to bottom, #001529, #004f66);
    color: #ffffff;
    margin: 0;
    padding: 10px 30px;
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
}

#stockPlot {
    border: 1px solid #ffffff33;
    width: 40vw; 
    height: 71vh; 
    background: #04213aa6; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: -20px 14px 50px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    font-weight: normal;
    font-size: 3em;
    width: 100%
}

#right {
    width: calc(60vw - 180px);
    padding: 0 30px;
}

#controls {
    background-color: white;
    margin-bottom: 20px;
    color: #444;
    padding: 10px 40px 40px 40px;
    box-sizing: border-box;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: auto;
    position: relative;
    box-shadow: -20px 14px 50px rgba(0, 0, 0, 0.2);
}

label {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0;
    -webkit-appearance: none;
    height: 8px;
    background: #ddd;
    outline: none;
    border-radius: 5px;
  -webkit-appearance: none; /* remove default */
  width: 100%;
  height: 8px;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #ed1b24;
  border: 2px solid #ed1b24;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #ed1b24;
  border: 2px solid #ed1b24;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

label > span {
    color: #ed1b24;
}

input[type="radio"] {
    display: none;
}

.btn_holder {
    display: flex;
    justify-content: center;
    width: 80%;
    border: 1px solid #ed1b24;
    border-radius: 10px;
    margin: 10px;
    overflow: hidden;
    cursor: pointer;
}

.left_btn, .right_btn {
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    width: 50%;
    border-right: 1px solid #ed1b24;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ed1b24;
    cursor: pointer;
}

.right_btn {
    border-right: none;
} 

input[type="radio"]:checked + label {
    background-color: #ed1b24;
    color: white;
}

.short {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#result_box {
    background-color: #ffffff;
    color: #444;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: -20px 14px 50px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    width: auto;
}
#result_box h2 {
    color: #ed1b24;
}

#results {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.derivative {
    color: #ed1b24;
    font-weight: bold;
    margin: 0 5px;
}

.symbol {
    margin: 0 10px;
    color: #004f66;
    font-weight: bold;
}