.side-by-side-images {
    display: flow-root; /* Modern clearfix method */
  }
  
  .side-by-side-images figure {
    float: left;
    width: 49%;
    margin-right: 2%; /* Add a small margin between the images */
  }
  
  .side-by-side-images figure:last-child {
    margin-right: 0; /* Remove margin from the last image */
    float: right; /* Align the second image to the right */
  }
  
  .side-by-side-images figure figcaption {
    text-align: center; /* Optional: Center the captions below each image */
  }


/* Changing font size
/* Decrease the overall body font size */
.wy-nav-content {
    font-size: 110%; 
}

/* Optional: Adjust the code block font size */
.rst-content tt, .rst-content code, .rst-content pre {
    font-size: 110%;
}

.rst-content table.docutils td {
    font-size: 100%;
}


/* Override the 0.9rem font size and line-height in tables */
html.writer-html5 .rst-content table.docutils td > p, 
html.writer-html5 .rst-content table.docutils th > p {
    font-size: inherit !important; 
    line-height: 24px;
}

/* Override line-height for paragraphs inside lists */
.rst-content .section ol li > p:only-child, 
.rst-content .section ol li > p:only-child:last-child, 
.rst-content .section ul li > p:only-child, 
.rst-content .section ul li > p:only-child:last-child {
    line-height: 24px;
}

.rst-content table.docutils td p {
    line-height: 24px;
}

/* Forcing the border line to appear after using rowspan */
table.docutils td[rowspan] {
    border-right: 1px solid #f7a246 !important;
}


/*changing the important box color to red */
/* Changing the left border to red */
.rst-content .admonition.important {
    border-left: 4px solid #ff4d4d !important;
}

/* Changing the header/title background to pink */
.rst-content .admonition.important .admonition-title {
    background: #f4cccc !important;
    
}

/* Giving shadow to the box */
.rst-content .admonition.important {
    background-color: #fff5f5 !important;
}

/* Configuring dropdown menu */
/* 1. Import Font Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* 2. Container Utama (Fixed di Bawah) */
.rst-versions.custom-footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 300px; /* Sesuaikan dengan lebar sidebar Sphinx 4.2.0 kamu */
    background: #272525 !important;
    z-index: 1000;
    padding: 12px 15px !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* 3. Wrapper untuk Flexbox */
.version-content-wrapper {
    display: flex !important;
    align-items: center !important; /* Membuat teks dan box sejajar secara vertikal */
    justify-content: space-between; /* Memberi jarak antara label dan dropdown */
    gap: 10px;
}

/* 4. Spasi antara Icon dan Judul */
.version-label-group {
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #fcfcfc;
}

.version-label-group .fa {
    margin-right: 12px !important; /* Memberi space antara icon dan judul */
    font-size: 14px;
}

.version-text {
    font-size: 12px;
    font-weight: 600;
}

/* 5. Styling Dropdown Box */
.version-select-box {
    font-family: 'Montserrat', sans-serif !important;
    background: #444 !important;
    color: white !important;
    border: 1px solid #666 !important;
    border-radius: 4px;
    padding: 2px 5px;
    cursor: pointer;
    flex-grow: 1; /* Agar box mengisi ruang yang tersedia */
}

.red { color: #ff0000; }
.blue { color: #0000ff; }
.green { color: #008000; }
.orange { color: #f7a246; }
.yellow { color: #e5de00; }
