body {
    font-family: 'Lexend', sans-serif;
    color: #001581;
    display: block;
}
a {
    color: #1826AE;
    text-decoration: none;
}
a:hover {
    color: #001581;
}
h6 {
    font-weight: 200;
}
.sociallink {
    max-width: 45px;
}
#eventslider {
    width: 50%;
} 
#eventslider2 {
    width: 50%;
}
.eventslider img {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 5px;
    margin-right: 5px;
} 

/* Branch Grid */

.branchesgrid{
    display: block;
} 
.branchimg {
    width: 250px;
    height: 200px;
    object-fit: cover;
    display: block;
}
#martinsburglink {
    width: 250px;
    height: 200px;
    object-fit: fill;
    display: inline-grid;
    position: relative;
    margin: 2px;
}
.martinsburglink::before {
    content: "Martinsburg Public Library";
    color: white;
    text-align: center;
    padding-top: 90px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: rgba(24, 38, 174, 0.6);
}
.martinsburglink:hover::before {
    background: rgba(0, 0, 0, 0);
    transition-duration: 0.3s;
}
#hedgesvillelink {
    width: 250px;
    height: 200px;
    object-fit: fill;
    display: inline-grid;
    position: relative;
    margin: 2px;
}
.hedgesvillelink::before {
    content: "Hedgesville Public Library";    
    color: white;
    text-align: center;
    padding-top: 90px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: rgba(24, 38, 174, 0.6);
}
.hedgesvillelink:hover::before {
    background: rgba(0, 0, 0, 0);
    transition-duration: 0.3s;
}
#musselmanlink {
    width: 250px;
    height: 200px;
    object-fit: fill;
    display: inline-grid;
    position: relative;
    margin: 2px;
    margin-top: 0px;
}
.musselmanlink::before {
    content: "Musselman South-Berkeley Community Library";
    color: white;
    text-align: center;
    padding-top: 90px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: rgba(24, 38, 174, 0.6);
}
.musselmanlink:hover::before {
    background: rgba(0, 0, 0, 0);
    transition-duration: 0.3s;
}
#northberkeleylink {
    width: 250px;
    height: 200px;
    object-fit: fill;
    display: inline-grid;
    position: relative;
    margin: 2px;
    margin-top: 0px;
}
.northberkeleylink::before {
    content: "North Berkeley Public Library";
    color: white;
    text-align: center;
    padding-top: 90px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: rgba(24, 38, 174, 0.6);
}
.northberkeleylink:hover::before {
    background: rgba(0, 0, 0, 0);
    transition-duration: 0.3s;
}

/* Library Online */


#libraryonline img {
    width: 85px;
    float: left;
} 

/* Header */

#homelink {
    margin-top: 0;
    margin-bottom: auto;
    margin-left: 10px;
    margin-right: auto;
} 
#homelinkimg {
    width: 100px;
}
h4 {
    margin-left: 5px;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: auto;
    float: right;
}
.headicon img {
    height: 50px;
    display: inline-grid;
    margin-left: auto;
    margin-right: auto;
}
.headicon {
    display: inline-grid;
    width: 125px;
    height: 80px;
}
h5 {
    display: inline-grid;
    text-align: center;
    font-weight: 300;
    margin-top: 5px;
}
#menu {
    margin-left: 45%;
    margin-right: auto;
}
#header {
    padding: 10px;
    display: inline-grid;
    width: 100%;
}
.quicklink {
    padding: 20px;
    /* position: relative; */
}

/* Footer */

#footer {
    display: inline-grid;
}
#branchesfooter {
    display: inline-flex;
    float: right;
}
#socials {
    display: inline-flex;
    margin-bottom: 0;
    margin-top: auto;
    margin-left: 5px;
    margin-right: auto;
    float: left;
}
#martinsburgfoot, #hedgesvillefoot, #musselmanfoot, #northberkeleyfoot {
    padding: 10px;
    width: 300px;
    float: right;
    display: inline-grid;
}

/* Event Slider */

/* Slideshow Container */
#slideshowcontainer {
    display: inline-block;
    position: relative;
    margin: auto;
}

/* Hide images by default */
#hide1 {
    display: none;
} 

/* Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 45%;
    width: auto;
    margin-top: 10px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border: 1px solid #001581;
    border-radius: 500px 500px 500px 500px;
    user-select: none;
    background-color: #001581;
    opacity: 0.7;
}

.next {
    right: 5px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/*dots*/
/*.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #1826AE;
}*/

/*fade animation*/

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.onlinelinkbutton {
    width: 90%;
    height: 120px;
    margin: 0;
    background-color: #e4eef7;
    border: none;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    color: #001581;
}
.onlinelinkbutton:hover {
    background-color: #19b26d;
}
.onlinelinkbutton img {
    border: solid 1px #1826AE;
    border-radius: 100px 100px 100px 100px;
    height: 85px;
    background-color: white;
    margin-left: 5%;
}
.onlinelinkbutton p {
    font-size: 18px;
}