/**
 *
 *
 *  Impact block styles
 *
 */

.blocks {
    margin-top: 25px;
}

.blocks-header {
    padding-left: 24px;
    padding-right: 24px;
    margin-bottom: 25px;
}

.blocks-grid {
    padding-left: 20px;
    padding-right: 20px;
}

.blocks-no-pad {
    padding-left: 0px;
    padding-right: 0px;
}

.blocks-pad {
    padding: 24px;
}

.block {
    padding: 5px;
}

.block-draggable {
    padding: 25px;
}

.block-inner {
    background: white;
    width: 100%;
    padding-bottom: 100%;
    position: relative;
}

.block-inner-fade {
    padding-bottom: 143%;
    background: white;
    width: 100%;
    position: relative;
}


.block-select {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    border-radius: 15px;
    background: lightgrey;
}

.block-select>.icon-check {
    color: lightgrey;
}

.block-select-active {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    border-radius: 15px;
    background: orange;
}

.block-content {
    position: absolute;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.block-inner.highlighted {
    background: rgb(27, 122, 158) !important;
}

.block-content-active {
    border: 2px solid orange;
}

.block-banner {
    position: absolute;
    width: 100%;
}

.block-brand-logo {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
}

.block-brand-locked {
	position: absolute;
	width: 100%;
	height: 100%;
}

.block-outer-brand-locked {
	position: absolute;
    width: calc(100% - 10px);
    height: 29px;
    left: 5px;
}

.block-landscape {
    width: 100%;
    height: 65%;
}

.block-portrait {
    width: 65%;
    height: 100%;
}

.block-image {
    border: 4px solid white;
    width: 100%;
    height: 100%;
}

.block-edit {
    background: rgba(0, 0, 0, 0.1);
    bottom: -40px;
    height: 30px;
}

.block-edit-cog {
    background: white;
    bottom: -40px;
    height: 30px;
}

.block-image>.block-image-icon {
    border-bottom-right-radius: 4px;
    width: 60px;
    height: 60px;
}

.block-super-image .block-image {
    border: none !important;
}


.block-photo-active {
    border: 2px solid white;
}

.block-header-icon {
    background-color: rgba(0, 0, 0, 0.15);
    color: white;
    border-radius: 4px;
    font-size: 20px;
    padding: 6px;
    margin: 14px;
}

.block-super-image {
    background-color: rgba(107, 150, 150, 0.15);
    margin-left: 20px;
    width: 41px;
    height: 41px;
}

.block-super-icon {
    background-color: #6b9696;
    color: white;
    border-radius: 4px;
    font-size: 15px;
    padding: 5px;
    margin: 0px 5px 0px 10px;
    width: 25px;
    height: 25px;
}

.block-counter {
    position: absolute;
    height: 25px;
    width: 25px;
    background: orange;
    right: 10px;
    top: 10px;
    border-radius: 100%
}

.block-controls {
    display: inline;
    float: right;
}

.block-controls button:focus {
    outline: none;
}



/* Block outer div */
.block-outer {
    margin-top: 10px;
}

.block-outer-small {
    margin-top: 4px;
}

.block-content-padding {
    padding: 5px;
}

/* Block under campaign (content > create) */

.block-campaign {
    background-color: #e1eaea;
}

.blocks-campaign {
    display: flex;
    margin-top: 10px;
}

.block-arrow {
    position: relative;
    left: 50%;
	width: 0;

    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 20px;
    border-color: orange transparent transparent transparent;
    animation-duration: 1s;
	 animation-name: arrowBounce;
    animation-iteration-count: infinite;
	animation-direction: alternate;
	will-change: transform
}

.block-arrow-inner {
	position: absolute;
	left: 50%;
	top: -18px;
	transform: translateX(-50%);
	width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 15px 0 15px;
    border-color: white transparent transparent transparent;
}

.brand-info {
	position: absolute;
    top: 5px;
    left: 5px;
	border-bottom-right-radius: 5px;
}

.brand-admin-info {
	position: absolute;
    top: 5px;
    right: 5px;
	border-bottom-left-radius: 5px;
}

@keyframes arrowBounce {
    from {
        transform: translate(-50%,-50%);
    }

    to {
        transform: translate(-50%, -100%);
    }
}

.block-arrow-container {
	position: absolute;
	bottom: -30px;

	left: 50%;
	transform: translateX(-50%);
}

.screen-block:hover .screen-name {
	display: none!important;
}
.screen-block:hover .screen-last-seen {
	display: inline-block!important;
}

.screen-block:hover {
	width:300px;
}
