h2 .title {
    margin: 3rem;
    color: #333;
}

#category {
    text-decoration: underline 0.5px;
    margin: 0 5px 0 15px;
    color: #444;
    background: rgba(190, 190, 190, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    transition: 0.5s;
    box-shadow: -0.5px 1px 2px 0px #888;
    display: inline-block;
    font-size: 16px;
}

#category:hover {
    color: #222;
    box-shadow: 0 0 4px 0px #999;
    background: rgba(150, 150, 150, 0.1);
}

#likeBtn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 10px;
    background-color: #eee;
    transition: all 0.3s ease;
    line-height: 2;
    padding: 0 10px;
    border-color: #ccc;
    cursor: pointer;
}

#likeBtn:hover {
    box-shadow: 0px 0px 5px 0px #4444;
    background-color: #eee2;
}

#likeBtn.liked {
    color: #c33;
}

#likeBtn.unliked {
    color: #bbb
}

.floatingCal {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    background: rgba(240, 240, 240, 0.5);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 330px;
    text-align: center;
    align-items: center;
    justify-items: center;
}

.gender-switch button {
    width: 100px;
    margin: 15px 0;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background-color: rgb(121, 208, 255);
    color: #222;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
}

.gender-switch button:hover {
    background-color: rgb(95, 190, 241);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gender-switch button.female {
    background-color: rgb(255, 110, 127);
    color: white;
}

.gender-switch button.female:hover {
    background-color: rgb(225, 85, 101);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.age-input,
.weight-input {
    margin: 15px 0;
}

.age-input input,
.weight-input input {
    width: 50px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#weight {
    width: 70px;
}

#length {
    width: 70px;
}

#hc {
    width: 60px;
}

#weightB {
    width: 60px;
}

#calculate-btn {
    border: none;
    border-radius: 20px;
    background-color: rgba(245, 245, 245, 0.3);
    color: white;
    cursor: pointer;
    font-size: 16px;
    grid-column: span 2;
    margin: 15px 0;
    transition: 0.5s;
}

#calculate-btn:hover {
    background-color: rgba(200, 200, 200, 0.3);
}

#result-box {
    display: none;
    color: #333;
    background: linear-gradient(45deg, rgba(176, 176, 176, 0.2), rgba(233, 233, 233, 0.3));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px 12px;
    border-radius: 20px 5px;
    text-align: left;
    white-space: break-spaces;
}

.copyBtn {
    display: none;
    padding: 7px 20px;
    margin: 3px 0;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #eee;
    cursor: pointer;
    font-size: 16px;
    width: 120px;
}

#copy-btn {
    border-radius: 20px 5px;
    background: rgba(108, 117, 125, 1);
}

#copy-btn-all {
    border-radius: 5px 20px;
    background: rgba(108, 117, 125, 1);
}

.calculusLinks {
    text-decoration: underline 0.5px;
    margin: 5px;
    color: #444;
    background: rgba(150, 150, 150, 0.2);
    border-radius: 10px;
    padding: 7px 15px;
    transition: 0.5s;
    box-shadow: -0.5px 1px 3px 0px #999;
    display: inline-block;
}

.calculusLinks:hover {
    color: #222;
    box-shadow: 0 0 4px 0px #999;
    background: rgba(150, 150, 150, 0.1);
}

details {
    margin: 2rem 2rem;
    max-width: 400px
}

summary {
    padding: 5px 10px;
    background-color: rgba(250, 250, 250, 0.5);
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

details a {
    text-decoration: underline 0.5px;
    color: #555;
    background: rgba(150, 150, 150, 0.5);
    border-radius: 5px;
    padding: 0 3px;
    transition: 0.5s;
}

details a:hover {
    color: #333;
}

details p {
    line-height: 2;
    font-size: 14px;
}

#chartContainer {
    position: relative;
    width: 300px;
    height: 200px;
    display: none;
}

.chartImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.highlightContainer {
    position: absolute;
    top: -4rem;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.highlightOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 100, 100, 0.4), rgba(255, 80, 80, 0.2));
    mix-blend-mode: multiply;
    clip-path: path('M0,200 C75,200 100,100 150,100 C200,100 225,200 300,200 L300,200 L0,200 Z');
    transition: width 0.5s ease;
}

#chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 200, 200, 0.2);
    clip-path: path('M0,200 C75,200 100,100 150,100 C200,100 225,200 300,200 L300,200 L0,200 Z');
}

.valueMarker {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    width: 2px;
    height: 120px;
    transform: translateX(-50%);
    transition: left 0.5s ease;
    z-index: 10;
    background: linear-gradient(0deg, rgba(255, 100, 100, 1), transparent);
}

#midMarker {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    width: 1px;
    height: 100px;
    transform: translateX(-50%);
    z-index: 9;
    background: rgba(100, 100, 100, 0.4);
}

#resCopyDiv {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    transform: translate(0, -1rem);
    gap: 10px;
}

.caLikk {
    text-decoration: none;
    color: rgb(112, 144, 94);
    padding: 2px 12px;
    margin: 0.5rem;
    border-radius: 20px;
    background: linear-gradient(120deg, #FDFAF6, #FAF1E6);
    box-shadow: 0 0 4px 0 #99BC85;
    border: solid 1px #E4EFE7;
    transition: 0.3s;
    display: inline-grid;
    line-height: 2;
}

.caLikk:hover {
    color: #99BC85;
    background: linear-gradient(30deg, #FDFAF6, #FAF1E6);
}

#browseCalc {
    text-decoration: none;
    color: rgb(112, 144, 94);
    padding: 0px 10px;
    border-radius: 20px;
    background: linear-gradient(30deg, #FDFAF6, #FAF1E6);
    border: solid 1px #E4EFE7;
    transition: 0.3s;
}

#browseCalc:hover {
    box-shadow: 0 0 2px 0 #99BC85;
}

#noFave {
    position: relative;
    padding: 1rem 1rem;
    margin: 4rem 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
    box-shadow: 0 0 10px 1px #cff4fccc;
}

.caList {
    text-decoration: none;
    color: #006A71;
    padding: 5px 12px;
    margin: 0.5rem;
    border-radius: 20px;
    background: linear-gradient(60deg, #F2EFE7, #9ACBD099);
    border: solid 1px #9ACBD0;
    transition: 0.3s;
    display: block;
}

.caList:hover {
    color: #48A6A7;
    background: linear-gradient(30deg, #F2EFE7, #9ACBD0);
}

.cateList {
    text-decoration: none;
    color: #3D0301;
    padding: 7px 20px;
    margin: 0.5rem;
    border-radius: 30px;
    background: linear-gradient(60deg, #EBE8DB, #D76C8299);
    border: solid 1px #B03052;
    transition: 0.3s;
    display: inline-block;
}

.cateList:hover {
    color: #B03052;
    background: linear-gradient(120deg, #EBE8DB, #D76C8299);
    border: solid 1px #3D0301;
}

@media (max-width: 350px) {
    .floatingCal {
        width: 280px;
    }
    .gender-switch {
        grid-column: span 2;
    }
    .weight-input {
        grid-column: span 2;
    }
    .age-input {
        grid-column: span 2;
    }
    .copyBtn {
        padding: 7px 20px;
        margin: 3px 10px;
        width: 100px;
    }
    label {
        font-size: 16px;
    }
}
