* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
}

.rainbowModeText {
    color: white;
    margin-top: 5px;
}

.container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    width: 700px;
    height: 700px;
    margin: 15px auto;
}

.rainbow {
    background-image: linear-gradient(
        90deg,
        rgba(255, 0, 0, 1) 0%,
        rgba(255, 154, 0, 1) 10%,
        rgba(208, 222, 33, 1) 20%,
        rgba(79, 220, 74, 1) 30%,
        rgba(63, 218, 216, 1) 40%,
        rgba(47, 201, 226, 1) 50%,
        rgba(28, 127, 238, 1) 60%,
        rgba(95, 21, 242, 1) 70%,
        rgba(186, 12, 248, 1) 80%,
        rgba(251, 7, 217, 1) 90%,
        rgba(255, 0, 0, 1) 100%
    );;
}

/* Color changing squares*/

.square {
    background-color: lightgray;
    border: 1px solid black;
}

.square:hover {
    background-color: lightgreen;
}

.touched {
    background-color: rgba(144, 238, 144, .7);
}

/* Buttons */

button {
    width: 60px;
    height: 34px;
    border: none;
    border-radius: 5px;
}

button:active {
    transform: scale(0.9);
}

.btnContainer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* Toggle Switch */

.btnSwitch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
 }
  
.btnSwitch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
  
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}
  
input:checked + .slider {
    background-color:  rgba(144, 238, 144, .7);
}
  
input:checked + .slider:before {
    transform: translateX(26px);
}

/* Dropdown instruction list */

.dropdown {
    align-self: flex-start;
    background-color: lightgrey;
    border-radius: 5px;
    width: 100px;
    height: 40px;
    padding: 10px;
    text-align: center;
    position: relative;
    display: inline-block;
    margin: 15px 15px;
}
  
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 14px 18px;
    z-index: 1;
}
  
.dropdown:hover .dropdown-content {
    display: block;
}