* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family:'Roboto', sans-serif;
}

/* needed for align-items: center; to work inside body {}, unless <!DOCTYPE html> is removed */
html, body {
    height:100%; 
}

:root {
    --background: white;
    --app: white;
    --button: #206dc5;
    --buttonText: white;
    --buttonHover: #1d62b1;
    --text: black;
    --border: #ccc;
    --label: #ccc;
    --labelBefore: white; 
}

.darkmode {
    --background: #121212;
    --app: #292929;
    --button: #bb86fc;
    --buttonText: white;
    --buttonHover: #a879e3;
    --text: #e2e2e2;
    --border: #292929;
    --label: #121212;
    --labelBefore: #bb86fc; 
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background);
}

.app {
    border-radius: 20px;
    padding: 30px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    background-color: var(--app);
    color: var(--text);
}

.icon {
    text-align: center;
    padding: 20px;
}

.search {
    padding-bottom: 20px;
}

.details {
    display: flex;
    flex-direction: column;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

p {
    line-height: 3;
}

input[type=text] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit] {
    width: 100%;
    background-color: var(--button);
    color: var(--buttonText);
    padding: 14px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: var(--buttonHover);
}

.toggleContainer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

label {
    position: absolute;
    width: 40px;
    height: 22px;
    background-color: var(--label);
    border-radius: 20px;
}

label:before {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    left: 1px;
    top: 1px;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--labelBefore);
    transition: 0.4s;
}

label.active:before {
    left: 18px;
    background: var(--labelBefore);
}
