:root {
    --textprim: #d7d7d7;
    --textsecond: #c70ee3;
    --button: #2b2b2b;
    --accent: #525600;
    --buttonhover: #1A5BC7;
    --background: #1d1d1d;
    --inputs: #121212;

    /* spacing */
    --gap: 12px;
    --pad: 12px;
    --radius: 12px;
}

/* global */
* {
    box-sizing: border-box;
    font-family: ProximaNova, sans-serif;
    color: var(--textprim);
}

html { height: 100%; }

body {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--background);
    user-select: none;
    line-height: 1.35;
}

/* header */
#header {
    width: 100%;
    height: 7vh;
    padding: calc(var(--pad) / 2);
    background-color: var(--inputs);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: grid;
    grid-template-columns: 33.333% 33.333% 33.333%;
    gap: 1rem;
    align-items: center;
}

#title {
    line-height: 7vh;
    padding-left: 1.25rem;
    font-size: 3.5vh;
    font-weight: 600;
    color: var(--textsecond);
}

#credits {
    text-align: center;
    line-height: 2.5vh;
}

/* search */
#searchbar input {
    float: right;
    width: 75%;
    height: 4vh;
    background-color: var(--background);
    border: none;
    border-radius: var(--radius);
    font-size: 1.8vh;
    margin-top: 1.25vh;
    margin-right: 2vw;
    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    text-indent: 8px;
    padding: 0.25rem;
}

/* main content */
#contentbox {
    width: 100%;
    height: calc(100% - 7vh);
    position: absolute;
    bottom: 0;
    background-color: var(--inputs);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 1rem;
    padding: 1rem 0;
}

/* lists */
#fineslist {
    background-color: var(--background);
    border-radius: 20px;
    margin: 1.25vh;
    padding: 0.75rem;
    overflow: hidden;
    overflow-y: auto;
}

#fineslist::-webkit-scrollbar {
    display: none;
}

#results::-webkit-scrollbar {
    display: none;
}

#results {
    background-color: var(--background);
    border-radius: 20px;
    margin: 1.25vh;
    margin-left: 0;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 30px;
}

/* tables */
#fineslist table {
    overflow: hidden;
    margin-top: 3%;
    width: 100%;
    border-spacing: 6px;
}

#finesHeader th {
    overflow: hidden;
    color: white;
    font-size: 20px;
    padding: 8px;
}

#fineslist table tr td {
    text-align: center;
    padding: 10px 8px;
    transition: all 0.3s;
}

.fine {
    transition: all 0.3s;
}

.showing {
    background: var(--inputs);
}

.hiding {
    display: none;
}

.selected {
    background-color: var(--accent);
}

.selected td {
    color: white;
}

/* titles */
#resultsTitle {
    width: 100%;
    font-size: 3.2vh;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-top: 8px;
}

/* inputs & groups */
#infoTitle,
#plateInput,
#blitzerInput,
#systemwantedsInput,
#übergabeInput,
.result,
#notepadArea,
#checkbox,
#systemfehler,
#reue {
    width: 90%;
    position: relative;
    left: 5%;
    margin-top: 0.75vh;
}

#plateInput_input,
#blitzerInput_input,
#systemwantedsInput_input,
#übergabeInput_input,
#notepadArea textarea,
select {
    width: 80%;
    height: 4vh;
    background-color: var(--inputs);
    border: none;
    border-radius: var(--radius);
    font-size: 1.75vh;
    margin-top: 1vh;
    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    text-indent: 8px;
    padding: 6px 8px;
}

/* action buttons */
#resetButton,
#showButton,
#showAttorneysButton,
#rightsButton,
#towButton {
    width: 80%;
    height: 4.5vh;
    background-color: var(--inputs);
    border: none;
    border-radius: var(--radius);
    font-size: 1.6vh;
    margin-top: 1.5vh;
    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
    position: relative;
    left: 5%;
    padding: 0.4rem 0.6rem;
}

#showButton:hover,
#showAttorneysButton:hover,
#towButton:hover {
    background-color: rgb(107, 232, 96);
}

#rightsButton:hover {
    background-color: rgb(0, 119, 255);
}

#resetButton:hover {
    background-color: rgb(255, 44, 44);
}

/* extras */
.selected_extrawanted {
    color: yellow;
}

.extrawanted {
    transition: 0.1s all;
}

.extrawanted:hover {
    color: yellow;
}

/* checkbox */
[type="checkbox"] {
    position: relative;
    left: 10px;
    top: 0px;
    z-index: 0;
    -webkit-appearance: none;
}

[type="checkbox"] + label {
    position: relative;
    display: block;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 16px;
    color: white;
    font-weight: 600;
    padding-left: 60px;
    margin-top: -16px;
}

#checkboxfont1 {
    font-family: sans-serif;
    font-size: 16px;
    color: white;
    font-weight: 600;
}

[type="checkbox"] + label:before {
    width: 48px;
    height: 24px;
    border-radius: 30px;
    border: 2px solid var(--button);
    background-color: var(--inputs);
    content: "";
    margin-right: 15px;
    transition: background-color 0.5s;
    z-index: 5;
    position: absolute;
    left: 0px;
}

[type="checkbox"] + label:after {
    width: 24px;
    height: 24px;
    border-radius: 30px;
    background-color: #e64949;
    content: "";
    transition: all 0.4s;
    box-shadow: 0px 0px 2px #e64949;
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: 10;
}

[type="checkbox"]:checked + label:after {
    margin: 0 0 0 24px;
    background-color: #49e656;
    box-shadow: 0px 0px 2px #49e656;
}

#checkbox {
    position: relative;
    left: 5%;
    width: 90%;
    margin-top: 1vh;
    margin-bottom: 0.75vh;
}

/* custom select already covered above */

/* scrollbars for notepad */
  /* Firefox */
  #notepadArea textarea {
    scrollbar-width: auto;
    scrollbar-color: #ffdd00 #ffffff00;
  }

  /* Chrome, Edge, and Safari */
  #notepadArea textarea::-webkit-scrollbar {
    width: 6px;
  }

  #notepadArea textarea::-webkit-scrollbar-track {
    background: #ffffff00;
  }

  #notepadArea textarea::-webkit-scrollbar-thumb {
    background-color: #ffdd00;
    border-radius: 10px;
    border: 1px solid #ffffff00;
  }

#notepadArea {
    width: 90%;
    position: relative;
    left: 5%;
    max-height: 300px;
}

#notepadArea textarea {
    width: 80%;
    background-color: var(--inputs);
    border: none;
    border-radius: var(--radius);
    font-size: 1.6vh;
    margin-top: 1vh;
    min-height: 4vh;
    max-width: 95%;
    min-width: 120px;
    max-height: 280px;
    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    font-weight: 500;
    color: white;
    padding-left: 8px;
}

/* floating modal containers */
#finesListContainer,
#finesListContainer_title,
#attorneyContainer,
#rightsContainer,
#loading,
#disclaimer {
    border-radius: 16px;
}

/* fines list floating */
#finesListContainer {
    width: 60%;
    height: 60%;
    position: fixed;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background);
    box-shadow: 0px 0px 10px black;
    border-radius: 16px;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
}

#fineListContainer[data-showing="true"] {
    opacity: 1;
}

#finesListContainer::-webkit-scrollbar {
    display: none;
}

#finesListContainer_title {
    width: 100%;
    color: white;
    text-align: center;
    padding-top: 5px;
    font-size: 1.6rem;
    font-weight: 600;
}

#finesListContainer table {
    position: relative;
    width: 95%;
    margin-top: 10px;
    left: 2.5%;
    border-spacing: 6px;
    color: white;
    text-align: center;
}

#finesListContainer table tr th {
    color: white;
    padding: 10px;
}

.finesList_fine {
    background-color: var(--inputs);
    padding: 8px;
}

/* disclaimer */
#disclaimer {
    opacity: 0;
    position: fixed;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    max-width: 45vw;
    z-index: 100;
    background-color: #0e0e0e;
    border-radius: 15px;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.219) 0px 0px 70px 0vw;
    transition: 1s all ease;
}

#disclaimer_title {
    font-size: 1.75vw;
    font-weight: 700;
    color: white;
    padding-bottom: 8px;
}

#disclaimer_text {
    padding-bottom: 12px;
    font-size: 1vw;
}

#disclaimer_button {
    border: none;
    background-color: rgb(255, 72, 72);
    color: white;
    font-size: 1vw;
    border-radius: 1.75vh;
    padding: 12px 16px;
    font-weight: 500;
    tab-size: 0px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s;
}

#disclaimer_button:hover {
    background-color: rgb(255, 25, 25);
}

/* loading/dots */
#loading {
    background: var(--inputs);
    padding: 24px;
    border-radius: 20px;
    width: auto;
    height: auto;
    position: fixed;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

#loading img {
    width: 12vw;
}

#dotContainer {
    padding-top: 14px;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.dot {
    padding: 6px;
    aspect-ratio: 1 / 1;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dotContent {
    background-color: rgb(235,194,65);
    height: 100%;
    width: 100%;
    border-radius: 8px;
}

/* dot animations unchanged */
#dot1 .dotContent {
    animation-name: dotAnim;
    animation-duration: 1.25s;
    animation-delay: -0.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

#dot2 .dotContent {
    animation-name: dotAnim;
    animation-duration: 1.25s;
    animation-delay: -0.25s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

#dot3 .dotContent {
    animation-name: dotAnim;
    animation-duration: 1.25s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes dotAnim {
    0% { height: 100%; width: 100%; }
    40% { height: 0%; width: 0%; }
    60% { height: 0%; width: 0%; }
    100% { height: 100%; width: 100%; }
}

/* attorney container */
#attorneyContainer {
    width: 60%;
    height: 75%;
    overflow-y: hidden;
    position: fixed;
    z-index: 11;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background);
    box-shadow: 0px 0px 10px black;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 0.75rem;
}

#attorneyContainer[data-showing="true"] {
    opacity: 1;
}

#attorneyContainer::-webkit-scrollbar {
    display: none;
}

#attorneyContainer_title {
    width: 100%;
    color: white;
    text-align: center;
    padding-top: 5px;
    font-size: 25px;
    font-weight: 600;
}

#attorneyContainer iframe {
    width: 100%;
    height: 100%;
}

/* rights container */
#rightsContainer {
    width: 55%;
    height: 35%;
    overflow-y: hidden;
    position: fixed;
    z-index: 11;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background);
    box-shadow: 0px 0px 10px black;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 0.75rem;
}

#rightsContainer[data-showing="true"] {
    opacity: 1;
}

#rightsContainer::-webkit-scrollbar {
    display: none;
}

#rightsContainer_title {
    width: 100%;
    color: white;
    text-align: center;
    padding-top: 5px;
    font-size: 25px;
    font-weight: 600;
}

#rightsContainer iframe {
    width: 100%;
    height: 100%;
}
