/*** PAGE LAYOUT CONTAINERS ***/
.scripts-page .page-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.scripts-page .page-content-container{
    display: flex;
    flex-direction: column;
    flex: 0 1 900px;
    padding: 20px 20px 0px 20px;
}

.scripts-page .controls-container {
    display: flex;
    padding: 20px 0px 20px 0px;
}

.scripts-page .sort-container.align-right {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row-reverse;
    align-items: center;  /* vertical center */
}

.scripts-page .control-buttons-container.align-left {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
}

.scripts-page .script-container {
    display: flex;
    flex-direction: row;
    flex: 1 1 100%;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0px 0px 2px #525252;
    border-radius: 1px;
    border-left: 4px solid #ffd449;
    background-color: #fdfdfd;
}

.scripts-page .script-container:hover {
    box-shadow: 0px 0px 5px #525252;
    border-left: 6px solid #ffd449;
    border-radius: 5px;
    cursor: pointer;
}

/*** CONTROLS ***/
.scripts-page .controls-container #sort-select {
    background-color: whitesmoke;
    padding: 5px;
    cursor: pointer;
    font-family: 'OpenSerif-Regular';
    font-size: 16px;
    border: none;
}
.scripts-page .controls-container #sort-select:focus {
    outline: 0;
}

/*** DESCRIPTION ***/
.scripts-page .script-container .description-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
}

.scripts-page .script-container .description-container .name {
    flex: 1 1 auto;
    padding: 10px;
}

.scripts-page .script-container .description-container .creation-date {
    flex: 1 1 auto;
    padding: 10px;
}

/*** OPTIONS ***/
.scripts-page .script-container .option-container {
    display: flex;
    flex: 0 0 100px;
    justify-content: center; /* align icon horizontal */
    align-items: center; /* align icon vertical */
}
.scripts-page .script-container .option-container:hover {
    border-radius: 3px;
    box-shadow: 0px 0px 4px #525252;
}

.scripts-page .script-container .option-container .option-icon {
    width: 30px;
    height: 30px;
    transition: all linear 0.25s;
}
.scripts-page .script-container .option-container:hover .option-icon {
    width: 35px;
    height: 35px;
}

.scripts-page .script-container .download-container .download-icon {
    width: 40px;
    height: 40px;
}
.scripts-page .script-container .download-container:hover .download-icon {
    width: 45px;
    height: 45px;
}

@media only screen and (max-width: 768px) {
    /* reduce the size of the icons on smaller screens */
    .scripts-page .script-container .option-container {
        flex: 0 0 60px;
    }
    .scripts-page .script-container .option-container .option-icon {
        width: 20px;
        height: 20px;
        transition: all linear 0.25s;
    }
    .scripts-page .script-container .option-container:hover .option-icon {
        width: 25px;
        height: 25px;
    }

    .scripts-page .script-container .download-container .download-icon {
        width: 30px;
        height: 30px;
    }
    .scripts-page .script-container .download-container:hover .download-icon {
        width: 35px;
        height: 35px;
    }
}

/*** TITLE ***/
.scripts-page .title {
    text-align: center;
    font-family: Fabrikat-Black;
    font-size: 36px;
    color: #2F2F2F;
    letter-spacing: 0;
    line-height: 36px;
    padding: 20px 0px 30px 0px;
}


/*** DELETE POPUP ***/
.scripts-page sb-popup .delete-popup .button-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.scripts-page sb-popup .delete-popup .button-container .delete-button {
    background-color: red;
}
.scripts-page sb-popup .delete-popup .button-container .cancel-button {
    background-color: grey;
}

.scripts-page sb-popup .delete-popup h2 {
    padding-bottom: 30px;
}