@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Montserrat", sans-serif;
    margin: 20px;
    background-color: #2b2e32;
    color: #FFFFFF;
}

h1 {
    font-weight: 600;
}

h2 {
    font-weight: 400;
}

h3 {
    font-weight: 300;
}

.controls {
    margin-bottom: 16px;
}

input, button {
    font-size: 16px;
    padding: 8px;
    margin-right: 8px;
}

input[type=text] {
    width: 325px;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    transition: border 0.5s ease;
}

input[type=text]:hover {
    border: 2px solid #8fbcf2;/*#3091ff;*/
    border-radius: 8px;
}

input[type=button] {
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    transition: border 0.5s ease;
}

input[type=button]:hover {
    border: 2px solid #8fbcf2;
    border-radius: 8px;
}

input[type=button]:focus {
    border: 2px solid #FFFFFF;
    outline: 3px solid #8fbcf2;
}

button {
    position: relative;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: border 0.5s ease;
}

button:hover {
    border: 2px solid #8fbcf2;
    border-radius: 8px;
}

/* swipe layer */
button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(143, 188, 242, 0.7);
    pointer-events: none;
}

/* trigger on click */
button:active::before {
    animation: swipe 0.5s ease;
}

@keyframes swipe {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(200%);
    }
}

.slider {
    padding-top: 15px;
    padding-bottom: 15px;
    -webkit-appearance: none;
    width: 95%; 
    background: transparent;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;

}

.slider::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 8px;
    background: #FFFFFF;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%; 
    background: #8fbcf2;
    cursor: pointer;
    margin-top: -5px;
    border: 0px solid #8fbcf2;
    transition: border 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    border: 2px solid #FFFFFF;
}

#graph {
    width: 100%;
    height: 700px;
}

.note {
    font-style: italic;
    color: #8fbcf2;
    margin-top: 8px;
}

.error {
    color: #ff2a51;
    margin-top: 8px;
}

.line {  
    width: 100%; 
    height: 1px; 
    background-color: #8fbcf2;
}

.line2 {
    width: 100%; 
    height: 1px; 
    background-color: #8fbcf2;
    margin-top: 30px;
    margin-bottom: 30px;
}

.graphControls {
    display: flex;
    flex-wrap: wrap;
}

.graphControls > :nth-last-child(2) {
  flex-grow: 1;
}

.steps {
    width: 100%;
}

.sgd {
    width: 25%;
}

.momentum {
    width: 25%;
}

.rmsProp {
    width: 25%;
}

.Adam {
    width: 25%;
}

.animButtons {
    width: 100%;
    display: flex;
    justify-content: center;
}