/* Ini CSS */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* HOME */
* {
    font-family: "Urbanist", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    padding: 0;
}

html {
    background: #1F1C2C;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #928DAB, #1F1C2C);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #928DAB, #1F1C2C); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: #ffffff;

}

/* JUDUL */
.main-title {
    text-align: center;
    font-weight: 700;
    background-color: #3d3854;
    border-radius: 10px;
    margin-left: 65px;
    margin-right: 65px;
    margin-top: 15px;
    height: auto;
    padding: 7px;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    
} 

/* CONTAINER*/

main {
    display: flex;
    margin: 20px;
}

/* ASIDE */
aside.kiri, aside.kanan {
    padding: 30px;
    margin: 0;
    margin-left: 0;
    text-align: justify;
}

aside.kiri .card, aside.kanan .card{
    background-color: #3d3854;
    padding: 25px;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px;
}

/* BAG PETUNJUK */
.card-petunjuk {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card .span-p {
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0px -1px 7px #F1F8E9;
}

.card ol {
    padding: 20px;
}

/* BAG HITUNG */
form {
    padding: 25px;
    border: #ffffff 2px solid;
    border-radius: 15px;
    background-color: #2e2a3e;
    margin: 20px;
    text-align: start;
}

.button {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: non-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.btn{
    border-radius: 15px;
    width: 50%;
    height: 40px;
    font-size: 15px;
    text-transform: uppercase;
    margin: 10px;
    text-decoration: none;
}


#hitung {
    color: #ffffff;
    background-color: hsl(261, 52%, 35%);
    border: #cdcad7 1px solid;
}

#hitung:hover {
    background-color: #634aa8;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-3px);
}

#hitung:active {
    background-color: hsl(261, 52%, 35%);
    transform: translateY(5px);
    transition:  transform 0.1s ease-in-out, box-shadow 0.1s ease, background-color 0.3s ease;
    box-shadow: rgb(93 24 220) 0px 7px 29px 0px;
}

#reset {
    background-color: rgb(143, 20, 20);
    color: white;
    border: #cdcad7 1px solid;
} 

#reset:hover {
    background-color: rgb(159, 38, 38);
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-3px);
}

#reset:active {
    background-color: rgb(213, 54, 54);
    color: hsl(0, 0%, 100%);
    transform: translateY(5px);
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease, background-color 0.3s ease;
    box-shadow: rgb(196, 21, 21) 0px 7px 29px 0px;
}

.form-btn-container {
    margin-top: 12px;
    margin-bottom: 12px;
}

input[type=number] {
    width: 100%;
    height: 35px;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 600;
}

select {
    width: 100%;
    height: auto;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 600;
}

select option {
    font-size: 15px;
    font-weight: 500;
    height: 40px;

}

/* table informasi */

.bmi-table {
    width: 100%;
    border-radius: 30px;
    border-collapse: collapse;
    font-size: 16px;
    text-align: left;
    background-color: #ccc;
}

.bmi-table .judul {
    text-align: center;
    font-weight: 600;
    color: white;
    background-color: #928DAB;
}

.bmi-table th,
.bmi-table td {
    padding: 10px 10px;
    border: 5px solid #3d3854;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.bmi-table th {
    font-weight: bold;
    color: #333333; 
}

.bmi-table td {
    color: #555555;
    font-weight: 500;
}

/* BAG HASIL */
.information {
    margin: 20px;
    color: #ffffff;
    font-weight: 800;
}

.hasil h2 {
    color: #ffffff;
    margin: 20px;
    font-weight: 800;
}

.card-hasil {
    width: 500px;
    height: 300px;
    color: #1F1C2C;
    background-color: #928DAB !important;
}

.card-hasil h3 {
    font-weight: 800 !important;
    font-size: 20px;
}

.kategori {
    text-align: center;
}

#kategori {
    color: #4e0d4d;
    text-shadow: 1px 2px 7px #ffffff;
    font-weight: 900;
    font-size: 20px;
    text-transform: uppercase;
}

#bmi-hasil {
    font-size: 70px;
    text-align: center;
    margin-top: 60px;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: rgba(190, 182, 215, 0.8); /* Opasitas 50% */
    border-radius: 15px;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease, background-color 0.3s ease;
    box-shadow: #30102f 10px 6px 29px 0px;
}


.deskripsi {
    margin-top: 40px;
}

.deskripsi2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

/* SARAN DAN PERINGATAN */

#saran {    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(255, 255, 135);
}

#peringatan {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(255, 255, 135);
}

/* FOOTER */

footer {
    background-color: #3d3854;
    text-align: center;
    padding: 1rem 0 3rem;
    margin-top: 3rem;
}

footer .socials {
    padding: 1rem 0;
}

footer .socials a {
    color: #fff;
    margin: 1rem;
}

footer .socials a:hover, footer .links a:hover {
    color: rgb(145, 119, 154);
}

footer .links {
    margin-bottom: 1.4rem;
}
footer .links a {
    color: #fff;
    padding: 0.7rem 1rem;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

footer .creadit {
    font-size: 0.8rem;
    color: rgb(178, 153, 180);
}

footer .creadit a {
    font-weight: 700;
    color: rgb(178, 153, 180);
    text-decoration: none;
}

/* RESPONSIVE */

@media only screen and (max-width:880px) {
    main {
        flex-direction: column;
    }

    .card-hasil {
        width: auto;
    }
}

@media only screen and (max-width:600px) {

    button {
        margin: 0;
    }

    .button {
        justify-content: space-evenly;
        flex-wrap: non-wrap;
        flex-direction: column;
        margin-right: 20px;
    }

    .bmi-table th, .bmi-table td {
        font-size: 14px;
    }

    .card-hasil {
        width: auto;
    }

    #hitung {
        width: 100%;
    }

    #reset {
        width: 100%;
        margin-top: 13px;
    }

}

@media only screen and (max-width:500px) {

    .main-title {
        margin-left: 28px;
        margin-right: 28px;
        border-radius: 7px;
        font-size: 26px;
    }

    .card .span-p{
        font-size: 16px;
    }

    main {
        margin: 0;
    }

    aside.kiri .card, aside.kanan .card {
        margin-left: 0;
        margin-right: 0;
        font-size: 12px;
        border-radius: 10px;
    }

    form {
        margin: 0;
    }

    footer .links a {
        font-size: 13px;
        padding: 0.5rem;
    }

    footer .creadit {
        font-size: 0.6rem;
    }

    .bmi-table {
        border-radius: 0;
    }

    .bmi-table th, .bmi-table td {
        font-size: 12px;
        border: 3px solid #3d3854;
    }
}
