:root {
    --link-hover-light: #b0de6a;
    --link-hover-colour: #b0de6a;
    --primary-colour: #6ab0de;

    --fastTransition: all 0.25s ease-in-out;
    --medTransition: all 0.5s ease-in-out;
    --slowTransition: all 0.75s ease-in-out;
    --defaultTransition: var(--medTransition);
}

@media not print {
    body[data-theme="dark"] {
        --link-hover-colour: #b0de6a;
    }

    body[data-theme="light"] {
        --link-hover-colour: #46582a;
    }

    body[data-theme="auto"] {
        --link-hover-colour: #46582a;
    }
}

body {
    overflow-y: auto;
}

/* left sidebar on the page*/
.sidebar-drawer {
    z-index: 52 !important;
}

/* For whether the method/function is async or not */
.py-attribute-table-badge{
    margin-right: 5px;
}
  
  
/* the attributes/methods table of a class */
.py-attribute-table-column {
    display:inline-block;
    vertical-align: top;
    padding: 0 16px 2em 16px;
}
  
  
/* div to tell the different overrided operations of a class */
.operations {
    border-style: solid;
    border-width: 1px 1px 1px 5px;
    border-color: var(--primary-colour);
    padding-top: 2em;
    padding-bottom: 2em;
    padding-left: 10px !important;
    margin: 1em;
}


/* div for the signature of class methods */
.method > dt{
    width: 100%;
    border-left: 4px solid var(--primary-colour) !important;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

/* container for the icon options of each page */
.content-icon-container {
    position: sticky;
    top: 75px;
    background-color: var(--color-background-secondary);
    padding: 0; 
    border-radius: 15px;
    z-index: 10;
    opacity: 0.95;
    gap: 0 !important;
}

.content-icon-container > div {
    padding: 10px;
    margin: 0;
}

.content-icon-container > div:first-child {
    border-radius: 15px 0 0 15px;
}

.content-icon-container > div.theme-toggle-container {
    border-radius: 0 15px 15px 0;
}


.content-icon-container > div:hover {
    background-color: var(--link-hover-colour);
    transition: var(--defaultTransition);
}


.content-icon-container > div:hover svg {
    color: var(--color-background-secondary) !important;
    transition: var(--defaultTransition);
}

.contactLink[title ="GitHub"] {
    margin-right: 40px;
}

.contactLink[title ="GitHub"]:hover > .contactLinkIcon {
    color: var(--link-hover-light) !important;
    transition: var(--defaultTransition);
}
  
.topNav {
    width: 100%;
    height: 50px;
    background-color: black;
    color: white;
    position: relative;
    border-bottom: 5px solid #2980b9;
    position: sticky;
    top: 0;
    z-index: 51;
} 

.contactLink {
    float: right;
    margin: 0 20px;
}

.contactImgLink {
    width: 24px;
    height: 24px;
}

.contactLinkIcon {
    font-size: 24px;
    color: white;
}

.contactLinkIcon:visited {
    color: var(--primary-colour);
}

.contactLinksContainer {
    position: absolute;
    top: 25%;
    width: 100%;
    padding: 0 20px 0 0;
    display: flex;
    justify-content: center;
}

.field-list > dt, .field-list > dd {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* ========= Dropdown =============== */

.dropbtn {
    background-color: black;
    border: none;
    cursor: pointer;
    color: white;
}

.dropbtn:hover, .dropbtn:focus {
    color: var(--link-hover-light);
    transition: var(--defaultTransition);
}
  
.dropdown {
    position: relative;
    display: inline-block;
}
  
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    border-radius: 5px;
}
  
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
  
.dropdown a:hover {
    background-color: var(--link-hover-colour);
    color: var(--color-background-hover);
    transition: var(--defaultTransition);
}
  
.show {
    display: block;
}

/* ======================================= */
/* ========= Colored Text ================ */

.redbold {
    color:#cc2900;
    font-weight: bold;
}

.orangeyellowbold {
    color: #b38f00;
    font-weight: bold;
}

.greenbold {
    color: #009933;
    font-weight: bold;
}

/* ======================================= */