html *{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease-in-out;
    font-family: Arial, Helvetica, sans-serif;
}

.sidebar{display: none;}
button{cursor: pointer;}
a{text-decoration: none; color: black;}
.pd0{padding: 0;}
.pd3{padding: 3px;}
.pd5{padding: 5px;}
.pd8{padding: 8px;}
h1{font-size: 72px; padding: 20px;}
h2{font-size: 62px; padding: 20px;}
h3{font-size: 52px; padding: 20px;}
h4{font-size: 42px; padding: 20px; font-weight: 300;}
h5{font-size: 32px; padding: 20px;}
h6{font-size: 22px; padding: 20px;}
.anchor-offset {margin-top: -120px;padding-top: 120px;height: 0; z-index: -1000;}
.anchor-offset-mobile {margin-top: -400px;padding-top: 400px;height: 0; z-index: -1000;}
.shadow{text-shadow: 1px 1px 10px black;}
.t-r{text-align: right;}
.t-c{text-align: center;}
*:focus{outline: none; appearance: none;}


html{
    position: relative;
    width: 100vw;
    height: 100vh;
}
body{
    position: absolute;
    width: 100%;
    height: 100%;
}
nav{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: rgb(241, 241, 241);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 12%;
}
.calc{
    width: 100%;
    height: 83%;
    top: 12%;
    bottom: 5%;
    padding: 50px 0;
    position: absolute;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.calc .block{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 400px;
    height: auto;
}
#researchDetails label,
.calc label{
    padding: 8px;
}
input{
    appearance: none;
}
#researchDetails{
    width: 100%;
    height: fit-content;
    flex-direction: column;
}
#researchDetails *{
    width: 100%;

}
.calc select,
.calc input{
    appearance: none;
    font-size: 18px;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    background-color: rgb(241, 241, 241);
    box-shadow: 1px 1px 6px rgba(97, 97, 97, 1);
}
.result{
    position: relative;
    z-index: -1;
}
#result{
    position: absolute;
    text-align: center;
    padding: 20px;
    font-size: 28px;
    font-weight: 100;
    left: 0;
    right: 0;
}

#baseValue::-webkit-outer-spin-button,
#baseValue::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

footer{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2% 20%;
    height: 5%;
    box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.5);
    background-color: rgb(241, 241, 241);
}


@media (max-width: 850px) {
    html{
        width: 100%;
        height: 100%;
    }
    h4{
        font-size: 26px;
        padding: 8px;
    }
    .calc{
        padding: 4% 2%;

    }
}

.result-multi {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    justify-content: center;
}
.result-multi > div{
    min-width: 48%;
}
.quality-block {
    width: 160px;
    padding: 10px;
    text-align: center;
    border-radius: 12px;
    color: black;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 1px 1px 6px rgba(97, 97, 97, 1);
}
.quality-normal       { background: rgba(255,255,255,0.9); border: 2px solid black; }
.quality-unusual      { background: rgba(0,163,8,0.2);     border: 2px solid rgb(0,163,8); }
.quality-special      { background: rgba(0,0,163,0.2);     border: 2px solid rgb(0,0,163); }
.quality-rare         { background: rgba(163,0,100,0.2);   border: 2px solid rgb(163,0,100); }
.quality-exceptional  { background: rgba(253,3,3,0.2);     border: 2px solid rgb(253,3,3); }
.quality-legendary    { background: rgba(230,255,4,0.2);   border: 2px solid rgb(230,255,4); }
.freshness-selector {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    gap: 12px;
}
.freshness-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    background-color: #e0e0e0;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 1px 1px 6px rgba(97, 97, 97, 1);
    transition: background-color 0.2s ease;
}
.freshness-option:hover {
    background-color: #d0d0d0;
}
.freshness-option.selected {
    background-color: #b0b0b0;
}


.reputation-selector {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    gap: 12px;
}
.reputation-option {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    background-color: #e0e0e0;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 1px 1px 6px rgba(97, 97, 97, 1);
    transition: background-color 0.2s ease;
}
.reputation-option:hover {
    background-color: #d0d0d0;
}
.reputation-option.selected {
    background-color: #b0b0b0;
}
