/*
 * Copyright (c) 2024. Amazon.com, Inc. or its affiliates. All rights reserved.
 */

@font-face {
    font-family: 'Ember W Lt';
    src: url('/font/AmazonEmber_W_Lt.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ember Cd Lt';
    src: url('/font/AmazonEmberCd_W_Lt.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}

a {
    color: #cf99ed;
    text-decoration: none;
}

a:visited {
    color: #9f99ed;
}

html,
body {
    margin: 0;
}

body {
    background-color: black;
    background-image: url('/img/bedge-grunge.png');

    font-family: 'Ember Cd Lt', sans-serif;
    color: #cdc3c3;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #333;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
    border: 2px solid #333;
}

h1 {
    font-size: 150%;
}

h2 {
    font-size: 120%;
}

h3 {
    font-size: 100%;
}

h1,
h2,
h3 {
    margin: 0.5em 0;
}

hr {
    border-color: #444;
}

/* Background */

#recordImage {
    background-image: url('/img/record.svg');
    position: fixed;
    width: 1024px;
    height: 1024px;
    opacity: 0.3;
    left: -300px;
    top: -300px;
    z-index: 1;
}

/* Error */

.messageContainer {
    margin-top: 2em;
    position: relative;
    z-index: 2;
}

.messages {
    padding: 10px;
}

.errorMessage,
.toastMessage {
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.toastMessage {
    background-color: rgba(17, 10, 44, 0.68);
    border: thin solid #07106a;
}

.errorMessage {
    background-color: #2c0a0aad;
    border: thin solid #950808;
}

/* Loading */

.loader {
    position: fixed;
    left: calc(50% - 25px);
    top: calc(50% - 25px);
    z-index: 6;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f311;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Header */

#header {
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #111;
    border-bottom: #333 solid 2px;
    z-index: 5;
    box-shadow: 0 16px 16px rgba(0, 0, 0, 0.8);
    padding: 0;
}

#header > ul {
    max-width: 1600px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 15px auto;
    padding: 0 15px;
    list-style-type: none;
}

#header > ul > li > a {
    font-family: 'Ember Lt', sans-serif;
    font-weight: normal;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 24px;
    color: #fff;
}

#logo {
    display: inline-flex;
    align-items: center;
}

#logo > a {
    display: inline-flex;
    align-items: center;
}

#logo > a,
#logo > a:visited {
    margin: 0;
}

#logo img {
    width: 48px;
}

/* components */

.pushButton {
    background-color: #32344a;
    color: #cdc3c3;
    border: thin solid #5c6370;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
    transition:
        background-color 0.1s,
        color 0.1s;
}

.pushButton:hover {
    background-color: #3e4163;
    color: #cdcac3;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.pushButton:active {
    background-color: #020f23;
}

.button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button:hover {
    filter: brightness(70%) sepia(1) hue-rotate(144deg);
}

.button:active {
    filter: brightness(60%);
}

.toggleButton {
    padding: 10px 0;
}

.closeBtn {
    float: right;
    margin: 7px 0 0 0;
}

.radioGroup {
    margin: 0;
}

.radioGroup li {
    margin: 0;
    gap: 10px;
}

.listOption {
    padding: 0.3em;
    display: flex;
    align-items: center;
}

.listOption > img {
    padding: 10px;
}

.listOption > .labelContainer {
    margin: 0 0 10px 0;
}

.listOption h2 {
    margin: 0;
}

.listOption p {
    margin: 5px 0 5px 0;
    color: #7a7975;
}

.title,
.subTitle {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subTitle {
    color: #888;
}

.dataColumn {
    text-align: center;
}
