/* CSS Variables */
:root {
    --primary-color: cadetblue;
    --secondary-color: gainsboro;
    --text-color: antiquewhite;
    --background-color: #f4f4f4;
}

/* Class Styles */
.bg-black {
    background-color: black;
    color: var(--text-color);
}

.bg-black:hover {
    color: white;
    font-weight: bold;
    font-size: 12.75px;
}

.bg-cadet-blue, .konsul-ahli-gizi, .regis-online {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.bg-cadet-blue:hover {
    color: white;
    font-weight: 700;
    font-size: 12.75px;
}


.bmi-container {
    position: relative; /* Mengatur posisi relatif untuk menempatkan elemen anak secara absolut */
    display: inline-block; /* Mengatur elemen menjadi inline-block agar bisa memiliki ukuran */
    margin: 20px;
    transition: transform 0.2s;
}

.bmi-container:hover {
    transform: scale(1.10);
}

.bmi-container::before {
    content: '';
    position: absolute;
    top: 50%; 
    left: 50%; 
    width: 100px;
    height: 100px; 
    background-color: cadetblue;
    border-radius: 50%;
    transform: translate(-50%, -50%); 
    z-index: 0;
}

.checkmark {
    height: 25px; 
    width: 25px; 
    background-color: #eee;
    border-radius: 50%;
    position: absolute;
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); /* Menyesuaikan untuk pemusatan vertikal */
    z-index: 1; /* Menempatkan checkmark di atas */
}

.container {
    display: flex;
    align-items: center; 
    position: relative;
    padding-left: 35px; 
}

.container-penyakit {
    display: none;
    text-align: center;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center; 
    position: relative;
    background-color: var(--secondary-color);
}

.form-group {
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
}

.form-group-kelamin {
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 5px;
}

#hasil {
    position: relative;
}

.identitas-diri {
    text-align: center;
}

.informasi-awal, .informasi-fitur, .informasi-hasil, .informasi-tambahan{
    text-align: justify;
}

.jenis-kelamin, .berat-badan, .tinggi-badan, .usia {
    font-weight: bold;
}

.keterangan-hasil {
    font-size: 20px;
    font-family: math;
    font-weight: bold;
    text-decoration: wavy;
    padding: 16px;
}

#konsul-ahli-gizi {
    display: none;
    width: fit-content;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    margin-right: 2px;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

#konsul-ahli-gizi:hover {
    text-decoration: none;
    font-weight: 500;
    background-color: var(--primary-color);
    color: white; 
    transform: scale(1.025);
}

.konten-utama {
    display: flex;
}

.left-content, .right-content {
    flex: 2; /* Membagi ruang secara merata */
    padding: 10px;
    box-sizing: border-box; /* Agar padding tidak mempengaruhi lebar */
}

.main-header {
    text-align: center;
    background-color: rgb(55, 152, 185);
    border-radius: 10px;
    padding: 10px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nilai-hasil {
    text-align: center;
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    font-size: 18px;
}

#regis-online {
    display: none;
    width: fit-content;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    margin-right: 2px;
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

#regis-online:hover {
    text-decoration: none;
    font-weight: 500;
    background-color: var(--primary-color); 
    color: white;
    transform: scale(1.025);
}

.result {
    text-align: center;
}

#result-bmi {
    position:relative;
    color: white;
    z-index: 1; /* Menempatkan angka di atas lingkaran */
    font-size: 2em;
    font-weight: bold;
    text-shadow: black;
    font-family: math;
}

.result-section {
    padding: 16px;
    text-align: center;
    background-color: var(--secondary-color);
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

.rumus-bmi {
    display: block;
    min-width: 200px;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    color: white;
    background-color: var(--primary-color);
    border: 1px solid black;
    width: fit-content;
    padding-top: 10px;
    padding-bottom: 15px;
    border-radius: 5px;
    transition: transform 0.3s;
    margin: 0 auto;
}

.rumus-bmi:hover {
    transform: scale(1.05);
}

.tombol-konsultasi {
    display: flex; /* Menggunakan Flexbox */
    justify-content: space-between; /* Menyebar tombol ke kiri dan kanan */
    margin-top: 10px;
}

/* ------------------------------------------------------------------- */

/* General Styles */
a {
    transition: color 0.3s;
}

a:hover {
    color:mediumblue;
}

button, .konsul-ahli-gizi, .regis-online {
    border-radius: 5px;
    border: none;
    padding: 10px 15px; 
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #5f9ea0; 
    transform: scale(1.05);
}

form {
    background-color: var(--secondary-color);
    padding: 32px;
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

footer {
    background-color: rgb(55, 152, 185);
    font-style: italic;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

html {
    background-color: #c6dada;
}

input[type=number] {
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="radio"] {
    opacity: 0;
    position: absolute;
}

input[type="radio"]:checked + .checkmark {
    background-color: cadetblue;
}

input[type="radio"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px; 
    height: 10px; 
    background-color: white; 
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Memusatkan checkmark */
}

main {
    background-color: #c6dada;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 100;
    display: flex;
    gap: 60px;
    padding: 32px;
}

/* Media Queries for mobile device*/
@media (max-width: 720px) {
    main {
        flex-direction: column;
        gap: 10px;
    }
}