* {
    padding: 0;
    margin: 0;
}


body {
    font-family:"ABeeZee", Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    background-color: lightskyblue;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1vh;
    padding-bottom: 2vh;
    margin-bottom: 30px;
    background-color: royalblue;
    white-space: nowrap;
    height: 150px;
}

#titleIcon {
    position: absolute;
    margin-left: 2vw;
    width: 100px;
    /* TODO */
}

.title-texts {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    color: white;
    align-items: center;
    align-self: center;
}

.title-text {
    font-weight: 1000;
    letter-spacing: 0.1em;
    color: white;
    text-shadow: 0.1em 0.1em blue;
    padding-block: 0.5vh;
    margin-block: 10px;
    font-size: 3em;
}

#dateButton {
    background-color: rgb(98, 132, 235);
    padding: 10px;
    font-family:"ABeeZee", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 1000;
    letter-spacing: 0.1em;
    color: rgb(248, 215, 67);
    text-shadow: 0.1em 0.1em black;
    text-decoration-skip-ink: none;
    font-size: 1em;
}

#dateButton:hover {
    color: white;
}

.box-button {
    background-color: rgb(65, 105, 225, 0.5); /* Green */
    border: solid 2px rgb(0, 0, 255);
    border-radius: 10px;
    color: white;
    text-shadow: 0.1em 0.1em blue;
    font-family:"ABeeZee", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 1000;
    letter-spacing: 0.025em;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    outline: none;
    cursor: pointer;
    /* overflow: hidden; TODO do we want this? */
    scale: 1;
    box-shadow: 0px 0px 0px 0px #666;
    transition: all 100ms ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.box-button:active {
    box-shadow: 0px 0px 0px 5px #666;
    scale: 1.05;
    z-index: 9999;
}

.box-button:hover {
    background-color: rgb(98, 132, 235);
    color: white;
}

.collapse-tab {
    background-color: rgb(65, 105, 225); /* Green */
    opacity: 0.6;
    border: solid 2px rgb(0, 0, 255);
    border-radius: 10px;
    color: white;
    display: inline-block;
    outline: none;
    cursor: pointer;
    /* overflow: hidden; TODO do we want this? */
    scale: 1;
    box-shadow: 0px 0px 0px 0px #666;
    transition: all 100ms ease;
}

.collapse-tab:active {
    box-shadow: 0px 0px 0px 5px #666;
    scale: 1.05;
}

.collapse-tab:hover {
    background-color: rgb(98, 132, 235);
    opacity: 1;
}

.collapse-tab img {
    width: 60%;
}

.main-container {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-around;
    max-width: 100%;
}

.writer-container {
    touch-action: none;
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-x: hidden;
}

#writerPage {
    grid-row-start: 1;
    grid-column-start: 1;
    pointer-events: none;
    touch-action: none;
}

#writerTrace {
    grid-row-start: 1;
    grid-column-start: 1;
    pointer-events: none;
    touch-action: none;
}

#writerLines {
    grid-row-start: 1;
    grid-column-start: 1;
    pointer-events: none;
    touch-action: none;
}

#writerMask {
    grid-row-start: 1;
    grid-column-start: 1;
    pointer-events: none;
    touch-action: none;
}

#writer {
    grid-row-start: 1;
    grid-column-start: 1;
}

.interface {
    pointer-events: none;
    grid-row-start: 1;
    grid-column-start: 1;
    width: 100vw;
}

.sidebars {
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    grid-row-start: 1;
    grid-column-start: 1;
    height: 100%;
    width: 100vw;
}

.sidebar-right {
    display: flex;
    direction: rtl;
    height: 100%;
}

.sidebar-left {
    display: flex;
    float: left;
    height: 100%;
}

#collapseRightSidebar {
    display: flex;
    justify-content: center;
    pointer-events: auto;
    align-self: center;
    border-radius: 10px 0px 0px 10px;
    border-right: none;
    height: 150px;
    width: 60px;
    transition: all .3s ease;
}


#collapseLeftSidebar {
    display: flex;
    justify-content: center;
    pointer-events: auto;
    align-self: center;
    border-radius: 0px 10px 10px 0px;
    border-left: none;
    height: 150px;
    width: 60px;
    transition: all .3s ease;
}

.collapse-button-collapsed {
    max-width: 30px;
}


.collapse-button-collapsed img {
    scale: -1;
}


#helpButton {
    display: none; /* TODO */
}

.sidebar-options {
    pointer-events: auto;
    display: flex;
    position: relative;
    flex-direction: column;
    white-space: nowrap;
    align-items: center;
    max-width: 100%;
    transition: all .3s ease;
    overflow: hidden;
    background-color: rgb(183, 208, 255, 0.5);
    outline: solid 2px rgb(0, 0, 255, 0.5);
    max-height: 720px;
    overflow-y: scroll;
    opacity: 100%;
    z-index: 9999;
}

.sidebar-options.collapse {
    max-width: 100px;
}

/* width */
.sidebar-left ::-webkit-scrollbar {
    width: 25px;
}

/* Track */
.sidebar-left ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    background: rgb(183, 208, 255, 0.5);
}
  
  /* Handle */
.sidebar-left ::-webkit-scrollbar-thumb {
    background: rgb(0, 0, 255, 0.4); 
    border-radius: 10px;
}

/* Handle on hover */
.sidebar-left ::-webkit-scrollbar-thumb:hover {
    background: royalblue; 
}

/* width */
.sidebar-right ::-webkit-scrollbar {
    width: 25px;
}

/* Track */
.sidebar-right ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    background: rgb(183, 208, 255, 0.5);
}
  
  /* Handle */
.sidebar-right ::-webkit-scrollbar-thumb {
    background: rgb(0, 0, 255, 0.4); 
    border-radius: 10px;
}

/* Handle on hover */
.sidebar-right ::-webkit-scrollbar-thumb:hover {
    background: royalblue; 
}

.options-button-options {
    display: none;
    position: fixed;
    background-color: rgb(183, 208, 255, 0.5);
    z-index: 9999;
}

.options-button-options .box-button {
    border-radius: 10px;
    margin-inline: -1px;
    pointer-events: all;
}

.options-button-options-show {
    /* display: grid; */
    display: flex;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
}

.sidebar-options button {
    margin-block: -1px;
    display: flex;
    align-items: center;
    padding-block: 30px;
    width: 100%;
    border-radius: 0px 0px 0px 0px;
}

.option-selected {
    text-decoration: underline;
    background-color: royalblue;
}

.options-button-selected {
    background-color: royalblue;
}

.icon-only-button {
    display: flex;
    justify-content: center;
    align-content: center;
    border: none;
    background-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.icon-only-button img {
    cursor: pointer;
    width: 50px;
    opacity: 0.5;
}

.icon-only-button img:hover {
    opacity: 1;
}

.icon-only-button img:active {
    scale: 1.05;
    filter: drop-shadow(0px 3px #666);
    z-index: 9999;
}

.icon-button {
    min-height: 80px;
    max-height: 80px;
}

.icon-button img {
    width: 50px;
    margin-inline: 10px;
    opacity: 100%;
}

.icon-button span {
    width: 100%;
    margin-inline: 10px;
}

.controls-container {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-content: center;
    height: 100%;
}

#rewriteResetContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 40px;
    width: 100vw;
}

.left-controls-container {
    display: flex;
    flex-basis: 45%;
    justify-content: end;
    padding-right: 5vw;
}

.centre-controls-container {
    display: flex;
    flex-basis: 10%;
    justify-content: center;
}

.right-controls-container {
    display: flex;
    flex-basis: 45%;
    justify-content: start;
    padding-left: 5vw;
    align-items: end;
}

.right-controls-container button {
    margin-inline: 1vw;
    pointer-events: all;
}

.undo-redo-container {
    display: flex;
    margin-right: 9vw;
}

#rewriteButton {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2vw;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    opacity: 0.5;
}

#rewriteButton:hover {
    opacity: 1;
}

#rewriteButton:active {
    box-shadow: none;
}

#rewriteButton span {
    align-self: center;
    z-index: 9999;
    font-family:"ABeeZee", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 1000;
    letter-spacing: 0.025em;
    font-size: 2vw;
    color: blue;
    text-shadow: 0.05em 0.05em white;
    margin: 0;
    padding: 0;
}

#rewriteButton img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5vw;
    margin: 0;
    padding: 0;
}

@media only screen and (max-width: 600px) {
  #rewriteResetContainer {
    flex-direction: column;
  }
}

#undoButton img {
    width: 3vw;
    max-width: 50px;
}

#redoButton img {
    width: 3vw;
    max-width: 50px;
}

#resetButton {
    margin-right: 9vw;

}

#resetButton img {
    width: 3vw;
    max-width: 50px;
}

.interface button {
    pointer-events: all;
}

.interface .slider {
    pointer-events: all;
}

.interface input {
    pointer-events: all;
}

.slider-with-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-inline: 20px;
    opacity: 0.5;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 10px;
    border-radius: 50px;
    border: 2px solid grey;
    background: white;
    outline: none;
    -webkit-transition: .2s;
    transition: opacity .2s;
}
  
.slider-with-text:hover {
    opacity: 1;
}

.slider:hover {
    background: rgb(183, 208, 255);;
}
  
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%; 
    border: 3px solid blue;
    background: royalblue;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25x;
    height: 25px;
    border-radius: 50%; 
    background: royalblue;
    border: 3px solid blue;
    cursor: pointer;
}

.write-speed-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding-block: 20px;
}

#speedSlider,
#zoomSlider {
    width: 10vw;
}

.slider-text {
    position: absolute;
    top: 10px;
    font-family:"ABeeZee", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 1000;
    letter-spacing: 0.025em;
    font-size: 1vw;
    color: blue;
    text-shadow: 0.1em 0.1em white;
    margin-top: 18px;
}

.checkboxes-container {
    display: flex;
    flex-direction: column;
    border: 2px solid blue;
    border-radius: 12px;
    padding-inline: 2vw;
}

.loop-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    font-family:"ABeeZee", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 1000;
    letter-spacing: 0.025em;
    font-size: calc(12px + 0.2vw);
    text-shadow: 0.1em 0.1em white;   
    color: blue;
}

.loop-container input {
    margin-left: 20px;
}

.disable-select {
    user-select: none; /* supported by Chrome and Opera */
   -webkit-user-select: none; /* Safari */
   -khtml-user-select: none; /* Konqueror HTML */
   -moz-user-select: none; /* Firefox */
   -ms-user-select: none; /* Internet Explorer/Edge */
}

#formContainer {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#emailForm {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 15px;
    background: #a6c8ff;
    padding: 30px;
    border: 3px solid royalblue;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 255, 0.3);
    font-family: "ABeeZee", Verdana, Geneva, Tahoma, sans-serif;
    max-width: 90vw;
    width: 500px;
    color: blue;
    text-shadow: 0.05em 0.05em white;
    font-weight: 1000;
}

#emailForm h1 {
    color: blue;
}

#emailForm input,
#emailForm textarea {
    border: 2px solid royalblue;
    border-radius: 10px;
    padding: 10px;
    font-size: 1em;
    font-family: inherit;
    resize: none;
    background-color: white;
    color: black;
    box-shadow: inset 0 0 5px rgba(0, 0, 255, 0.1);
}

#emailForm textarea {
    height: 120px;
}

#contactHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#submitButton {
    align-self: center;
    padding: 20px;
}

#closeFormButton {
    top: 10px;
    right: 10px;
    height: 60px;
    width: 60px;
    font-size: 40px;
    text-shadow: none;
    background-color: rgb(129, 11, 11);
    text-align: center;
}

#closeFormButton:hover {
    background-color: red;
}

#emailResult {
    font-size: 20px;
}

#emailForm a {
    color: #000000;
    text-decoration: none;
}

#emailForm a:hover {
    text-decoration: underline;
}