/* 
    Created on : 26.8.2023
    Author     : Janne Mustonen
*/

div.buttons{
    display: grid;
    grid-template-columns: 49% 49%;
    gap: 2%;
    margin-top: 1.5em;
}

div.buttons div.button{
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3vw;
    font-weight: bold;
    color: white;
    padding: 0.25em 0;
    cursor: pointer;
}

#cancel-button{
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3vw;
    font-weight: bold;
    color: white;
    padding: 0.25em 0;
    cursor: pointer;
    background-color: #FD2323;
}

#top-buttons{
    position: absolute;
    top: 0.5vh;
    right: 0.5vw;
    display: grid;
    grid-template-columns: 30% 40% 30%;
    width: 100%;
}

#top-buttons .left {
    text-align: right;
}

#top-buttons .middle {
    text-align: center;
}

#top-buttons .right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#top-buttons .right > div{
    margin: 1em;
    cursor: pointer;
}

#save-button{
    background-color: #92D050;
}

#start-button.start{
    background-color: #92D050;
}

#start-button.stop{
    background-color: #FFCB25;
}

#reset-button{
    background-color: #FD2323;
}

#reset-button.resetting{
    background-color: #E7E7E7 !important;
}

#lockAllFlaps{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3vw;
    font-weight: bold;
    color: white;
    padding: 0.25em 0;
    cursor: pointer;
    background-color: #FD2323;
}

/* Competitor selector dropdown */
#competitor-selector .dropdown {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 2vw;
    border: 1px solid #dcdcdc;
}

/* Settings Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.custom-select {
  appearance: none; /* Hide the default arrow in some browsers */
  background-color: #f0f0f0;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

/* Style the dropdown arrow */
.custom-select::after {
  content: "\25BC"; /* Unicode character for the dropdown arrow */
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

/* Style the options in the dropdown */
.custom-select option {
  background-color: white; /* Background color for each option */
  color: #333; /* Text color for each option */
}

.selectorList{
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
    text-align: center;
}

.selectorList li{
    border-bottom: 1px solid lightgrey;
    padding: 0.5em 0;
    cursor: pointer;
}