@import url('https://fonts.googleapis.com/css2?family=K2D:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
*{
    font-family: "K2D", serif;
    user-select: none;
}

/* html, body {
    overscroll-behavior: none;
  } */
  
body {
    font-family: "K2D", serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    min-height: 100vh;
    
}

a{
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: small;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav{
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.background-img{
    width: 100%;
    background-image:url('image/header.svg');
    background-position: center;
    background-size: cover;
    background-position-y: bottom;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    padding-bottom: 100px;
}

.button-type{
    background-color: #ff3b3f;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
}

/* Header */

header{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header {
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
}

.white-btn {
    font-family: "K2D", serif;
    border: none;
    background-color: white;
    color: #ff3b3f;
    padding: 0 15px 2px 15px;
    height: 30px;
    border-radius: 50px;
    font-weight: bolder;
    font-size: small;
}

/* Main */

.search-container {
    padding: 30px 20px 0 20px;
    text-align: center;
    color: white;
    border-radius: 20px;
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.search-container h1 {
    margin: 0;
    font-size: 46px;
}
.search-container .p {
    font-size: 18px;
    margin: 5px 0 20px;
}

/* Form */

.form{
    max-width: 700px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.form-box{
    max-width: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background-color: #9c0a0c6b;
    gap: 20px;
    border-radius: 15px;
}

/* select */

details {
    position: relative;
    width: 100%;
    color: black;
}

details[open] {
    z-index: 1;
}

fieldset {
    border: 0;
    padding: 0;
    width: 100%;
}
summary {
    color: #ffffff;
    padding: 1rem;
    cursor: pointer;
    border-radius: 5px;
    background-color: transparent;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid white;
}

input[type="checkbox"] {
    accent-color: #ff3b3f;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary:before {
    content: '';
    display: block;
    width: 100vw;
    height: 100vh;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
}

summary:after {
    content: '';
    display: inline-block;
    float: right;
    width: .5rem;
    height: .5rem;
    border-bottom: 1px solid currentColor;
    border-left: 1px solid currentColor;
    border-bottom-left-radius: 2px;
    transform: rotate(45deg) translate(50%, 0%) translateY(-3px);;
    transform-origin: center center;
    transition: transform ease-in-out 100ms;
}

summary:focus {
    outline: none;
}

details[open] summary:after {
    transform: rotate(-45deg) translate(0%, 0%);
}

ul {
    width: 100%;
    background: #ffffff;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    padding: 1rem;
    margin: 0;
    box-sizing: border-box;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
}

li {
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid #ccc;
}

li:first-child {
    padding-top: 0;
}

li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* FAKE SELECT */

summary.radios {
    counter-reset: radios;
}

summary.radios:before {
    content: var(--selection);
}

input[type=radio] {
    counter-increment: radios;
    appearance: none;
    display: none;
}

input[type=radio]:checked {
    display: inline;
    --display: block;
}

input[type=radio]:after {
    content: attr(title);
    display: inline;
}

ul.list {
    counter-reset: labels;
}

ul li{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

ul li p{
    margin: 0;
}

ul li span{
    margin-top: 2px;
}

label {
    width: 100%;
    display: flex;
    cursor: pointer;
    justify-content: space-between;
}

.label-select{
    flex-direction: row-reverse;
}

label span {
    display: var(--display);
    width: 1rem;
    height: 1rem;
    border: 1px solid #727272;
    border-radius: 3px;
}

/* Number form */

.number-input{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 5px;
}

.otp-input {
    max-width: 53px;
    width: 14%;
    min-height: 40px;
    height: 53px;
    font-size: 17px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    background-color: #ffffff;
    list-style: none;
    border: none;
}

.otp-input::placeholder{
    color: #ff3b3e79;
}

.otp-input:focus{
    outline: none;
    border: 2px solid #ff3b3e79;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}
#verifyOtpBtn {
    padding: 10px 20px;
    font-size: 18px;
    margin-top: 20px;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Button */

.btn{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4%;
    color: black;
    margin-bottom: 50px;
}

.btn input, .btn button{
    min-height: 40px;
    height: 53px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    border-radius: 55px;
    background-color: #ffffff;
    list-style: none;
    border: none;
}

.btn #reset{
    width: 53px;
    color: #ff3b3f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn #searchButton{
    padding: 0 2.1rem;
    margin-left: 4.5px;
    color: #000000;
}

/* Table */

.table-results{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

tr{
    border-bottom: 1px solid #ddd;  
}

.results {
    margin: 20px 10px;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
}
.results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: small;
}
.results th, .results td {
    padding: 10px;
    text-align: left;
}
.results th {
    background-color: #f5f5f5;
}

.sifaris-td{
    display: flex;
    justify-content: flex-end;
    vertical-align: middle;
}

.sifaris-btn{
    background-color: #ff3b3f;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    margin: 5px;
}

.details-row td input{
    padding: 5px 10px;
    border: #ddd solid 1.7px;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 20px;
}

.details-row td label{
    color: #494949;
}

.details-row td p{
    margin-top: 0;
    font-size: small;
    color: #ff292a;
}

/* filter */

.qiymet-filter{
    width: 100%;
    display: flex;
    align-items: flex-start;justify-content: space-between;
}

.qiymet-filter .araliq, .qiymet-filter .sirala{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.qiymet-filter .araliq{
    justify-content: flex-start;
    width: 50%;
}

.qiymet-filter .araliq input{
    font-size: small;
    width: 100%;
    max-width: 150px;
    padding: 5px 10px;
    border: #ddd solid 1.7px;
    border-radius: 5px;
}

.qiymet-filter .araliq button{
    background-color: #ff3b3f;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
}

.qiymet-filter .araliq input:focus{
    outline: #ff3134;
    border: 2px solid #ff313483;
}

.qiymet-filter .sirala{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 150px;
    font-size: small;
}

.qiymet-filter .sirala .radios-filter{
    color: #000000;
    padding: 5px 10px;
    border: #ddd solid 1.7px;
    border-radius: 5px;
}

.qiymet-filter .sirala .radios-filter .list li label{
    text-align: left;
}



/* next button */

.prev-page, .next-page{
    font-weight: bold;
    background-color: #ffffff;
    color: #ff3134;
    border: #ffffff 2px solid;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    margin: 20px;
}

.now-page{
    font-weight: bold;
    background-color: #ff3b3f;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    margin: 20px;
}

/* footer */

footer{
    font-size: 10px;
    color: rgba(0, 0, 0, 0.493);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: static;
    margin-top: auto;

}

.footer-contend{
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-contend p{
    margin: 0 20px;
}

@media only screen and (min-width: 500px){
    .footer-contend p{
        font-size: small;
    }
}

/* Media */

@media only screen and (min-width: 500px) {
    .results table {
        font-size: large;
    }

    .header {
        color: white;
        padding: 20px;
        text-align: center;
        display: flex;
        width: 100%;
        max-width: 1200px;
        justify-content: space-between;
    }
    
    .white-btn {
        font-family: "K2D", serif;
        border: none;
        background-color: white;
        color: #ff3b3f;
        padding: 2px 25px;
        height: 50px;
        border-radius: 50px;
        font-weight: bolder;
        font-size: large;
    }

    a{
        font-size: large;
    }

    .header img{
        height: 50px;
    }

    .otp-input {
        font-size: 24px;
    }

    input[type=radio]:after {
        font-size: 1rem;
    }
}