/*******************/
/* DOWNLOADS BUTTON */
#downloadsButton {
    position: fixed;
    right: 1.5em;
    bottom: 3.25em;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em 1.3em;
    background-color: #0890f1;
    color: #ffffff;
    font-family: 'latobold';
    font-size: 1em;
    text-decoration: none;
    border: none;
    border-radius: 2em;
    cursor: pointer;
    -webkit-box-shadow: 2px 4px 8px 0px rgba(50, 50, 50, 0.35);
    -moz-box-shadow: 2px 4px 8px 0px rgba(50, 50, 50, 0.35);
    box-shadow: 2px 4px 8px 0px rgba(50, 50, 50, 0.35);
    -webkit-transition: background-color 0.2s ease, transform 0.2s ease;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
#downloadsButton:hover,
#downloadsButton:focus {
    background-color: #0a71bb;
    transform: translateY(-2px);
}
#downloadsButton .icon-download {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
}
#downloadsButton .icon-download svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/*******************/
/* DOWNLOADS MODAL */
#downloadsOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.6);
    z-index: 9999;
    padding: 1.5em;
    box-sizing: border-box;
}
#downloadsOverlay.isOpen {
    display: flex;
    align-items: center;
    justify-content: center;
}
#downloadsModal {
    position: relative;
    width: 100%;
    max-width: 32em;
    max-height: 85vh;
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 0.4em;
    padding: 2em;
    box-sizing: border-box;
    -webkit-box-shadow: 2px 4px 12px 0px rgba(50, 50, 50, 0.4);
    -moz-box-shadow: 2px 4px 12px 0px rgba(50, 50, 50, 0.4);
    box-shadow: 2px 4px 12px 0px rgba(50, 50, 50, 0.4);
}
#downloadsModal h2 {
    font-family: 'latobold';
    font-size: 1.3em;
    color: #333333;
    margin: 0 0 1em 0;
    padding-right: 1.5em;
}
#downloadsCloseButton {
    position: absolute;
    top: 1em;
    right: 1em;
    width: 1.6em;
    height: 1.6em;
    line-height: 1.6em;
    text-align: center;
    background: none;
    border: none;
    color: #6b6b6b;
    font-size: 1.4em;
    cursor: pointer;
    padding: 0;
}
#downloadsCloseButton:hover {
    color: #0890f1;
}
.downloadsList {
    list-style: none;
    margin: 0;
    padding: 0;
}
.downloadsList li {
    border-top: 1px solid #ebeaea;
}
.downloadsList li:last-child {
    border-bottom: 1px solid #ebeaea;
}
.downloadsList a {
    display: flex;
    align-items: center;
    gap: 0.8em;
    padding: 1em 0.2em;
    text-decoration: none;
    color: #333333;
}
.downloadsList a:hover {
    color: #0890f1;
}
.downloadsList .icon-download {
    flex: 0 0 auto;
    width: 1.3em;
    height: 1.3em;
}
.downloadsList .icon-download svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.downloadsList .downloadInfo {
    flex: 1 1 auto;
}
.downloadsList .downloadTitle {
    display: block;
    font-family: 'latobold';
}
.downloadsList .downloadMeta {
    display: block;
    font-size: 0.85em;
    color: #6b6b6b;
}

@media screen and (max-width: 560px) {
    #downloadsButton span.downloadsButtonLabel {
        display: none;
    }
    #downloadsButton {
        padding: 0.9em;
    }
}
