* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    transition: all 0.3s;
    position: translateZ(0);
    user-select: none;
    /* standard syntax */
    -webkit-user-select: none;
    /* for Chrome、Safari */
    -moz-user-select: none;
    /* for Mozilla、Firefox */
}

:lang(zh) {
    font-family: "Microsoft JhengHei", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #999999;
    transition: all 0.8s;
    will-change: transition;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.89));
    z-index: -1;
    background-attachment: fixed;
    /* 將遮罩置於body元素之後 */

}



header {
    background: linear-gradient(338deg, rgba(0, 172, 255, 1) 0%, rgba(20, 20, 255, 1) 100%);
    color: #fff;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid;
    border-color: #95a3f3;
}

header h1 {
    margin: 0;
    flex: 1;
}

main {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 0;
}

@media screen and (max-width:768px) {
    main {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media screen and (min-width:1200px) {
    main {
        padding-left: 25%;
        padding-right: 25%;
    }
}

@media screen and (min-width:1600px) {
    main {
        padding-left: 32%;
        padding-right: 32%;
    }
}

#outputs {
    display: flex;
    flex-direction: column;
}

#outputs>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#outputs>div>.border {
    margin-bottom: 0px;

}

#outputs>div>span:last-child {
    width: 55%;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
}

#outputs>div>span:first-child {
    width: 45%;
    text-align: right;
}

#inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.border {
    width: 100%;
    height: 1px;
    margin-top: 10px;
    background-color: rgba(117, 117, 117, 0.2);

}

.container {
    background-color: rgba(255, 255, 255, 0.65);
    /*backdrop-filter: blur(50px);*/
    border: 1px solid rgb(148, 148, 148);
    border-radius: 7px;
    padding: 10px;
    width: 100%;
    margin: 20px;
    margin-bottom: 0px;
    position: relative;
}

.container_bg {
    z-index: -1;
    height: 80%;
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 35%;
    -webkit-user-drag: none;
    pointer-events: none;
    transform: translateZ(0);
}


#barcode_container {
    display: none;
    flex-direction: column;
    align-items: center;
    /* 垂直置中 */
    justify-content: center;
    /* 水平置中 */
    text-align: center;

}

#barcode {
    transform: scale(0.8);
    margin: -40px;
    shape-rendering: crispEdges;
    image-rendering: auto;
    -webkit-user-drag: none;
    pointer-events: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    top: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgb(0, 255, 234);
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

input[type="number"],
textarea {
    background-color: rgba(255, 255, 255, 0.658);
    border-radius: 3.5px;
    border: none;
}

.wrapper {
    height: 40px;
    width: 100%;
    border: none;
    margin-top: 2px;
    margin-bottom: 35px;
    text-align: left;
}

.wrapper input {
    height: 100%;
    width: 100%;
    border: none;
    font-size: 17px;
    border-bottom: 2px solid silver;
    padding-left: 5px;

}

.wrapper input:focus {
    outline: none;
    border-bottom: 2px solid rgb(255, 47, 47);
}

.wrapper input:focus+span {
    color: black;
    font-weight: bold;
}


.wrapper span {
    width: 100%;
    text-align: left;
    color: #6e6e6e;
    margin-left: 5px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#literinput_container {
    display: none;
}

input[type="radio"] {
    display: none;
}

.select_container label {
    position: relative;
    color: green;
    width: 100%;
    font-size: 15px;
    border: 2px solid green;
    border-radius: 5px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 2px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

@media screen and (max-width:375px) {
    .select_container label {
        font-size: 14px;
        white-space: nowrap;
    }
}

.select_container label:before {
    content: "";
    height: 8px;
    width: 8px;
    border: 2px solid green;
    border-radius: 50%;
    margin-right: 5px;
}

.select_container input[type="radio"]:checked+label {
    background-color: rgba(0, 128, 0, 0.8);
    color: white;
}

.select_container input[type="radio"]:checked+label:before {
    height: 8px;
    width: 8px;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 50%;
}

.select_container {
    flex-direction: row;
    display: flex;
    align-items: center;
    /* 垂直置中 */
    justify-content: center;
    /* 水平置中 */
    text-align: center;
}

#calculateButton {
    height: 50px;
    width: 80vw;
    max-width: 300px;
    margin-top: 10px;
    border: 1.5px solid;
    border-radius: 15px;
    font-size: 20px;
    background-color: #ecececbe;
}

#calculateButton:active {
    background-color: green;
    color: white;
    transition: 100ms;
    scale: 0.9;
}

#alert_txt {
    display: none;
    margin-top: 10px;
    color: red;
    font-size: 18px;
    font-weight: bold;
}

#show_panel_btn {
    background-color: rgba(255, 255, 255, 0.5);
    border: #9c9c9c93 solid 2px;
    border-radius: 15%;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    z-index: 1;
    position: fixed;
    bottom: 15px;
    right: 15px;
}

#show_panel_btn:active {
    background-color: rgba(0, 128, 0, 0.8);
    transition: 100ms;
    scale: 0.9;
}

#show_panel_btn:active>img {
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

#show_panel_btn img {
    height: 50px;
    width: 50px;
    padding: 10px;
    opacity: 80%;
    -webkit-user-drag: none;
    pointer-events: none;
}

#close_panel_btn {
    font-size: 20px;
    width: 300px;
    padding: 4px;
    border: 1px solid #000;
    background-color: #6b6b6b2a;
    border-radius: 5px;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    text-align: center;
}

#close_panel_btn:active {
    background-color: green;
    scale: 0.95;
    color: #fff;
}

#panel_bg {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: none;
    z-index: -2;
    display: flex;
    justify-content: center;
    align-items: center;

}

#fuel_price_panel {
    max-width: 480px;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.98);
    opacity: 0;
    /*backdrop-filter: blur(50px);*/
    height: 400px;
    max-height: 92vh;
    overflow: auto;
    border: #000 solid 1px;
    box-shadow: 0 0 7px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    flex-direction: column;
    transform: translateY(-15%);
    will-change: opacity, transform, transition;
}

.fuelColumn {
    display: flex;
    flex-direction: row;
    max-width: 330px;
    width: 100%;
    height: 50%;
    align-items: center;
    justify-content: center;
}

.fuelRow {
    width: 100%;
    margin-left: 5px;
}

.fuelItem {
    margin-bottom: 18px;
    margin-left: 10px;
    height: 50px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.fuelItem>img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.fuelItem>div {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 30px;
    font-weight: bold;
    color: rgb(0, 110, 255);
}

#sidebarToggle {
    margin-left: 5px;
}

#sidebarToggle svg:active {
    scale: 0.85;
}

#sidebarToggle svg {
    height: 32px;
    width: 32px;
}

#sidebar_bg {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: none;
    z-index: -2;
    display: flex;
}

#sidebar {
    display: flex;
    position: fixed;
    background: rgb(219, 219, 219);
    height: 100%;
    width: 300px;
    max-width: 80%;
    z-index: 3;
    transform: translateX(-15%);
    opacity: 0%;
    border-right: #555555b2 solid 1px;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.sidebar_item {
    width: 95%;
    background: white;
    border-radius: 10px;
    padding: 0px 15px 15px 20px;
}

.sidebar_item div{
    display: flex;
    justify-content: end;
}

#fuelPriceNotification_txt{
        text-align: start;
        width: 80%;
}

#fuelPriceNotification{
    color: rgba(0, 0, 255, 0.589);
    border: none;
    background: none;
    font-size: 16px;
    font-weight: bold;
}
#fuelPriceNotification:active{
    color: rgba(0, 255, 0, 0.829);
    scale: 0.95;
    transition: 0.05s;
}