/* Popup Overlay */
.popup-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
    z-index: 1000;
    /* Make sure it is on top */
}

/* Popup Window */
.popup-window {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    /* Make sure it is on top of the overlay */
    border-radius: 8px;
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 13px;
    right: 10px;
    font-size: 21px;
    font-weight: bold;
    color: #ffffff;
    border: none;
    background: red;
    cursor: pointer;
    height: 35px;
    width: 31px;
    border-radius: 10px;
}

.close-popup:hover {
  background-color: #dc1111;	
}

/* Popup Form */
.stamp-size-form {
    display: flex;
    flex-direction: column;
}

.stamp-size-form label {
    margin-top: 10px;
}

.stamp-size-form input {
    margin-bottom: 10px;
}

.popup-window h2 {
    margin: 0 0 15px;
    font-size: 23px;
    font-weight: bold;
}

.color-picker {
    margin-top: 15px;
}

br {
    line-height: 5px;
}

.facebook,
.twitter,
.pinterest {
    display: inline-block;
    padding-bottom: 25px;
}

.headline {
    background-color: #1f2650;
    padding: 25px 0px 20px 0px;
    color: white;
    overflow: hidden;
    font-size: 24px;
    font-weight: bold;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
}

a.download-button {
    background-color: #f15a5a;
    padding: 25px 0px 20px 0px;
    color: white;
    overflow: hidden;
    font-size: 24px;
    font-weight: bold;
    display: block;
    width: 100%;
    margin-top: 20px;
    border-radius: 5px;
    text-decoration: none;
}

a.download-button:hover {
    background-color: #d12121;
}

.generator-canvas-box {
    overflow-x: auto; 
    overflow-y: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px;
    border: 1px dashed black;
    background-color: white;
    clear: both;
    margin: 0px 20px;
    min-height: 50px;
    text-align: center;
	background-color: #ececec;
}

.generator-canvas {
    background-image: url("grid.svg");
    background-repeat: repeat;
    background-size: 25px;
    width: 100%;
    height: 500px;
    border: 1px solid #d3d3d3;
    display: inline-block; 
	background-color: white;
}

.zoom-container {
    display: flex;
    margin-top: 10px;
    margin-right: 35px;
    justify-content: end;
    background: white;
    padding: 2px 5px;
    border-radius: 5px;
}

#zoom-select {
    padding: 5px;
    font-size: 14px;
    height: 30px !important;
    width: 150px !important;
}

.clearfix {
    content: "";
    clear: both;
    display: table;
}

.ft-head-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ft-return-link2 {
    color: white;
    text-align: left;
    text-decoration: none;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1f2650;
    width: 100%;
    padding: 16px 24px 16px 0px;
    margin-top: 15px;
    border-radius: 10px;
    font-weight: bold;
    float: right;
    cursor: pointer;
}

.topinfo {
    font-size: 37px;
    font-weight: bold;
    text-align: left;
    margin-top: 31px;
    color: #1f2650;
}

.menu-button {
    background-color: #1f2650;
    color: white;
    font-weight: bold;
    border-radius: 12px;
    padding: 30px 0px 16px 0px;
    margin-bottom: 20px;
    cursor: pointer;
}

.menu-button:hover,
.ft-return-link2:hover {
    background-color: #1a73e8;
}

.stamp-size {
    float: none;
    overflow: hidden;
    margin-bottom: 20px;
}

.generator-menu,
.download-stamp,
.addtext,
.round-text.addimage {
    float: none;
    overflow: hidden;
}

.free-stamp-generator {
    background-color: white;
    border-radius: 9px;
    -webkit-box-shadow: 0px 0px 23px -4px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 0px 23px -4px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 23px -4px rgba(0, 0, 0, 0.3);
}

.download-info {
    margin: 20px 0px;
    overflow: hidden;
    float: none;
    display: block;
}

input#textfield,
input#round-textfield {
    width: 80%;
    float: left;
    background-color: white;
    padding: 15px 20px;
    color: gray;
    border: 2px solid #1f2650;
    border-right: white;
}

input#submittext {
    width: 20%;
    float: left;
    background-color: #1A73E8;
    padding: 15px 0px;
    color: white;
    border: 2px solid #1A73E8;
    font-weight: bold;
}


.leftside {
    width: 20%;
    float: left;
}

.rightside {
    width: 80%;
    float: left;
    margin-top: 7px;
}


.addtext {
    padding-bottom: 25px;
}

.optioninfo {
    text-align: left;
    font-size: 23px;
    font-weight: bold;
    padding: 0px 18px;
}

.button-up,
.button-down,
.button-delete,
.button-copy,
.bold-text,
.font-family-icon,
.font-size-icon,
.italic-font-icon,
.color-icon,
.text-start-icon,
.spacing-icon,
.radius-icon,
.position-x-icon,
.position-y-icon,
.rotation-icon,
.choose-shape-icon,
.dashed-stroke-icon,
.stroke-width-icon,
.image-size-icon,
.move-rl-icon,
.move-ud-icon,
.image-rotation-icon {
    background-repeat: no-repeat;
    background-size: 25px;
    height: 25px;
    width: 25px;
    border: none;
    background-color: #1f2650;
}

.button-up {
    background-image: url(up.svg);
}

.button-down {
    background-image: url(down.svg);
}

.button-delete {
    background-image: url(delete.svg);
}

.button-copy {
    background-image: url(copy.svg);
}

.font-family-icon {
    background-image: url(font-family.svg);
}

.bold-text {
    background-image: url(bold-text.svg);
}

.font-size-icon {
    background-image: url(font-size-icon.svg);
}

.italic-font-icon {
    background-image: url(italic-font-icon.svg);
}

.color-icon {
    background-image: url(color-icon.svg);
}

.text-start-icon {
    background-image: url(text-start-icon.svg);
}

.spacing-icon {
    background-image: url(spacing-icon.svg);
}

.radius-icon {
    background-image: url(radius-icon.svg);
}

.position-x-icon {
    background-image: url(position-x-icon.svg);
}

.position-y-icon {
    background-image: url(position-y-icon.svg);
}

.rotation-icon {
    background-image: url(rotation-icon.svg);
}

.choose-shape-icon {
    background-image: url(choose-shape-icon.svg);
}

.dashed-stroke-icon {
    background-image: url(dashed-stroke-icon.svg);
}

.stroke-width-icon {
    background-image: url(stroke-width-icon.svg);
}

.image-size-icon {
    background-image: url(image-size-icon.svg);
}

.move-rl-icon {
    background-image: url(move-rl-icon.svg);
}

.move-ud-icon {
    background-image: url(move-ud-icon.svg);
}

.image-rotation-icon {
    background-image: url(image-rotation-icon.svg);
}

.generated-layer,
.font-family,
.font-size,
.bold-font,
.italic-font,
.color,
.text-start,
.spacing,
.radius-text,
.rotation,
.choose-shape,
.dashed-stroke,
.stroke-width,
.image-size,
.rec-size,
.move-rl,
.move-ud,
.image-rotation,
.position-x,
.position-y {
    background-color: #1f2650;
    padding: 14px 15px 10px 10px;
    color: white;
    border-radius: 14px;
    font-weight: bold;
    float: left;
    margin-right: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.button-down {
    margin-right: 5px;
}

.button-copy {
    margin-right: 1px;
}

.layerp {
    margin-bottom: 0px;
    float: left;
    margin: 0px 9px 0px 0px;
}

p.optionlayer {
    float: right;
    margin: 0px 0px 0px 9px;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 18px 14px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 19px;
    color: white;
    background-color: #1A73E8;
}

.custom-file-upload:hover,
input#submittext:hover {
    background-color: #0f5abd;
    border-color: #0f5abd;
}

.settings>div {
    margin: -10px 20px 20px 20px;
    background-color: #e8f5ff;
    padding: 15px 30px;
    border: 1px solid #9fb0c0;
    overflow: hidden;
}

.settings>div label {
    width: 20%;
}

tspan,
circle,
path,
polygon,
ellipse,
rect,
image {
    cursor: pointer;
}

.generated-layer.active {
    border: 3px solid #f15a5a;
}