@font-face {
    font-family: 'FiraCode';
    src: url('../fonts/Fira_Code/FiraCode-VariableFont_wght.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

a {
    color: #f7f7f7;

    text-decoration: underline;
}

body {
    font-family: 'FiraCode', sans-serif;
    background-color: rgb(16, 16, 16);
    color: #f7f7f7;
    min-height: 100vh; 
    overflow-x: hidden;
    margin: 0;
    width: 100vw;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 75px 1fr 75px;
}


/* Path: css/header.css */
#litec-header {
    background-color: rgb(10, 10, 10);
    color: #f7f7f7;

    text-align: center;
    width: 100%;
    height: 75px;
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: 75px 1fr 75px;
    grid-template-areas: "dropdown title logo";
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
}

#header-title {
    grid-area: title;
    font-size: 14px;
    text-align: center;
    justify-self: center;
}

#header-dropdown-trigger {
    grid-area: dropdown;
    justify-self: center;
}

#header-dropdown-trigger:hover {
    cursor: pointer;
    text-shadow: #f7f7f7 0px 0px 3px;
    transition: text-shadow 0.5s ease;
}

#header-dropdown {
    justify-self: center;
    align-self: center;
    justify-content: center;
    position: absolute;
    top: 100%; /* Positioniere das Dropdown direkt unter dem Header */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* oder eine andere feste Breite */
    background-color: rgb(10, 10, 10);
    visibility: hidden; /* Standardmäßig nicht sichtbar */
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s; /* Verzögere die Änderung der Sichtbarkeit, um mit der Opazität zu synchronisieren */
    z-index: 1000; /* Stelle sicher, dass es über anderen Inhalten liegt */
}

#header-dropdown.open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#header-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#header-dropdown ul li a {
    text-decoration: none;
    color: #f7f7f7;
    display: block;
    margin: 10px 0;
}

#header-dropdown ul li a:hover { 
    color: white;
    font-weight: bold;
}

#litec-body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#litec-footer {
    background-color: rgb(10, 10, 10);
    color: #f7f7f7;

    text-align: center;
    width: 100%;
    height: 75px;
    font-size: 12px;
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
}

#litec-body-container-estimator {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 20% 60% 20%;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 95%;
    height: 90%;
    overflow: hidden;
}

#litec-body-container-estimator-informational-output {
    background-color: rgb(10, 10, 10);
    font-size: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 90%;
    height: 90%;
    overflow: hidden;
}
.estimator-output-value {
    color: rgb(191, 225, 193);
    font-size: 13px;
    text-align: center;
}

.estimator-output-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 90%;
    height: 90%;
    overflow: hidden;
}

#litec-body-container-estimator-disclaimer {
    color: #d7d7d7;
    text-align: center;
    font-size: 13px;
}

#litec-body-container-estimator-data-selection {
    background-color: rgb(10, 10, 10);
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    width: 95%;
    height: 80%;
}

#estimator-data-asin-input {
    width: 80%;
    height: 70px;
    justify-self: center;
    align-self: center;
}

#estimator-data-selection-country {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 100%;
    height: 100%;
}

#_estimate {
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 80%;
    height: 70px;
    background-color: rgb(6, 6, 6);
    border: 0.5px solid #afafaf;
}

.estimator-data-country-select {
    background-color: transparent;
    border: none;
    color: #f7f7f7;
    font-size: 13px;
    width: 80%;
    height: 80%;
    background-color: rgb(6, 6, 6);
    border: 0.5px solid #afafaf;
}

.estimator-data-country-select:hover {
    cursor: pointer;
    color: rgb(226, 226, 226);
    transition: 0.5s;
}

.estimator-data-country-select-selected {
    background-color: transparent;
    color: #f7f7f7;
    font-size: 13px;
    width: 80%;
    height: 80%;
    border: 2px solid rgb(255, 179, 179);
}

.stand_input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    padding-left: 10px;
    color: #f7f7f7;
    border-bottom: 1px solid #f7f7f7;
}

.stand_input:focus {
    outline: none;
}

.stand_input::placeholder {
    color: #f7f7f7;
}

.stand_button {
    background-color: transparent;
    border: none;
    color: #f7f7f7;
    font-size: 13px;
}

.stand_button:hover {
    background-color: #f7f7f7;
    cursor: pointer;
    transition: 0.5s;
}



#litec-body-kl-profit-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 45% 10% 45%;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 95%;
    height: 95%;
}

#litec-body-kl-profit-container-inp {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 99%;
    height: 90%;
}

.litec-body-kl-profit-container-inp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 95%;
    height: 90%;
    max-width: 800px;
    max-height: 800px;
}

.litec-body-kl-profit-container-inp-container-tile {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 95%;
    height: 95%;
    border-radius: 5px;
}

.litec-body-kl-profit-container-inp-container-tile-title {
    color: #f7f7f7;
    font-size: 13px;
    text-align: center;
}

#litec-body-kl-profit-container-inp-numpad {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 100%;
    height: 95%;
    max-width: 800px;
    max-height: 800px;
}

.litec-body-kl-profit-container-inp-numpad-field {
    display: flex;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 95%;
    height: 90%;
    color: #dedede;
    background-color: #252525;
    border: 1px solid black;
    border-radius: 5px;
    user-select: none;
}

.litec-body-kl-profit-container-inp-numpad-field:hover {
    cursor: pointer;
    color: #f7f7f7;
}

.kl_inp_f {
    height: 100%;
    width: 100%;
    display: flex;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    font-size: 15px;
    background-color: #252525;
    user-select: none;
}
.kl_inp_f_n_i {
    background-color: #161616;
    font-size: 15px;
    user-select: none;
}

.kl_inp_f_active {
    background-color: #3a3a3a;
    font-size: 15px;
    user-select: none;
}

.litec-body-kl-profit-container-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 95%;
    height: 90%;
    max-width: 800px;
}

.litec-body-kl-profit-container-actions-button {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
    justify-content: center;
    align-content: center;
    align-self: center;
    justify-self: center;
    width: 95%;
    height: 95%;
    max-width: 250px;
    color: #dedede;
    background-color: #252525;
    border-radius: 5px;
    user-select: none;
}

.litec-body-kl-profit-container-actions-button:hover {
    cursor: pointer;
    color: #f7f7f7;
}

/* Popup-Container: Hintergrund dunkel & halbtransparent über den gesamten Bildschirm */
.kl-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* über allem anderen liegen */
}

/* Popup-Inhalt: zentrierte Box */
.kl-popup-content {
    background-color: #101010;
    border: 1px solid #555;
    padding: 20px;
    max-width: 600px;
    width: 80%;
    color: #f7f7f7;
    font-family: 'FiraCode', monospace;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1rem;
}

/* Button-Container */
.kl-popup-button-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Close-Button & Copy-Button Basis-Stil */
.kl-popup-close-button,
.kl-popup-copy-button {
    background-color: #252525;
    border: 1px solid #404040;
    color: #f7f7f7;
    font-family: 'FiraCode', monospace;
    font-size: 13px;
    padding: 5px 10px;
    cursor: pointer;
}

.kl-popup-close-button:hover,
.kl-popup-copy-button:hover {
    background-color: #3a3a3a;
}

/* Code-Stil innerhalb des Popups */
.kl-popup-content code {
    display: block;
    background-color: #161616;
    color: #f7f7f7;
    padding: 10px;
    white-space: pre; /* Zeilenumbrüche strikt beibehalten */
    font-size: 13px;
    border: 1px solid #333;
    border-radius: 3px;
}
