:root {
    --ag-petrol: #22aa86;
    --ag-green: #9cc026;
    --ag-sbg: #F2F4F4;
    --ag-sbg-alt: #fff;
    --ag-p-dark: rgba(0, 0, 0, .60);
    --ag-h-dark: rgba(0, 0, 0, .80);
    --ag-p-light: rgba(255, 255, 255, .80);
    --ag-h-light: rgba(255, 255, 255, .95);
    --ag-white-transparent: rgba(255, 255, 255, 0.25);

    --bulb-open: #A5C029;
    --bulb-close: #b95c5c;
}

body {
    background-color: var(--ag-sbg);
}

/* navbar style */
.navbar-background {
    background-color: var(--ag-petrol);
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
}

.main {
    margin-top: 110px;
}

.footer {
    position: fixed;
    left: 0;
    text-align: center;
    padding-right: 15px;
    bottom: 0;
    width: 100%;
    background-color: var(--ag-sbg-alt);
    z-index: 2;
}

/* Switch button */
.custom-control-input ~ .custom-control-label::before {
    /* box shadow is blue by default but we do not want any
     shadow hence we have set all the values as 0 */
    box-shadow: 0 0 0 0 !important;
}

.custom-control-input ~ .custom-control-label::after {
    /* after the animation the inner will be white */
    background-color: white !important;
}

/*sets the background color of
switch to #5BB75B when it is checked*/
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--bulb-open) !important;
    border-color: var(--bulb-open) !important;
}

/*sets the border color of switch
to #DA4F49 when it is not checked*/
.custom-control-input:not(:checked) ~ .custom-control-label::before {
    background-color: var(--bulb-close) !important;
    border-color: var(--bulb-close) !important;
}


/* Switch buttons for rules*/
.material-switch > input[type="checkbox"] {
    display: none;
}

.material-switch > label {
    cursor: pointer;
    height: 0px;
    position: relative;
    width: 40px;
}

.material-switch > label::before {
    background: rgb(0, 0, 0);
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    content: '';
    height: 16px;
    margin-top: -8px;
    position: absolute;
    opacity: 0.3;
    transition: all 0.4s ease-in-out;
    width: 40px;
}

.material-switch > label::after {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    content: '';
    height: 24px;
    left: -4px;
    margin-top: -8px;
    position: absolute;
    top: -4px;
    transition: all 0.3s ease-in-out;
    width: 24px;
}

.material-switch > input[type="checkbox"]:checked + label::before {
    background: #0275d8;
    opacity: 0.5;
}

.material-switch > input[type="checkbox"]:checked + label::after {
    background: #0275d8;
    left: 20px;
}

.bulb-open {
    color: var(--bulb-open)
}

.bulb-close {
    color: var(--bulb-close)
}

#footerLogo {
    margin-bottom: 30px;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 355px;
    height: auto;
}

.filter-to-white {
    -webkit-filter: invert(100%); /* Safari/Chrome */
    filter: invert(100%);
}

.card {
    margin-top: 75px;
}

@media screen and (max-width: 600px) {
    #footerLogo {
        display: none;
    }
}

input[type=text] {
    width: 100%;
    padding: 12px 20px;
    letter-spacing: 0.2em;
    font-size: 120%;
}
