/* Muhammet ÇOLAK - START */
.hidden
{
    display: none;
}
#errorMsg
{
    color: #cc0033;
    font-family: monospace;
    font-size: .875rem;
}
.resize-container {align-self: center;}
.buttons-container label {
    cursor: pointer;
    user-select: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    transform: translateX(-50%, -50%);
}
.buttons-container input[type="checkbox"] { display: none; }
.buttons-container label svg
{
    scale: 0.7;
}
.buttons-container label
{
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}
#settings-show-button
{
    display: none !important;
}

.buttons-container #settings-button:checked ~ label#settings-close-button
{
    display: none !important;
}

.buttons-container #settings-button:checked ~ label#settings-show-button
{
    display: flex !important;
}
.buttons-container .button-group.zoom-actions,
.buttons-container .button-group.image-actions
{
    flex-direction: column;
}

.buttons-container .button-group
{
    display: flex;
    height: min-content;
}
.originalImage { max-width: 100vh; }

@media screen and (max-width: 768px) {
    .image-actions
    {
        display: flex;
        gap: 0.5rem;
    }

    .image-resolutions
    {
        display: flex;
        gap: 0.5rem;
    }
}
/* Muhammet ÇOLAK - END*/

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 120px 0 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero:before {
    content: "";
    background: color-mix(in srgb, var(--background-color), transparent 70%);
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero .container {
    display: flex;
    position: relative;
    z-index: 3;
}

.hero h2 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    text-transform: uppercase;
    text-shadow: -1px 0 2px #2f4d5a;
}

.hero p {
    color: var(--default-color);
    margin: 10px 0 0 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: -1px 0 2px #2f4d5a;
}

.ho-hero-thumb {
    width: 130px;
    margin-bottom:7px;
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 30px;
        line-height: 36px;
    }
}

.hero .btn-scroll {
    transition: 0.4s;
    color: var(--default-color);
    display: block;
    margin-top: 30px;
    animation: btn-up-down 1s ease-in-out infinite alternate-reverse both;
}

.hero .btn-scroll i {
    font-size: 48px;
}

.hero .btn-scroll:hover {
    color: var(--accent-color);
}

@keyframes btn-up-down {
    0% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(-5px);
    }
}

/* Drawer styling */
.drawer {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 30px;
    color: #333333;
    border-left: 1px solid #333333;
    z-index: 1000;
}
.drawer-header h4 {
    margin-bottom: 0px;
    color:#fff;
}
/* Full width when open */
.drawer.open {
    width: 315px;
}

/* Drawer content styling */
.drawer-header {
    padding: 10px;
    background-color: #E94545;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-content {
    padding: 10px;
}

.close {
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

.sprocket-icon {
    display: flex; /* Center the icon */
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa; /* Light background */
    position: fixed;
    top: 150px;
    right: 0;
    cursor: pointer;
    z-index: 999;
    width: 50px; /* Increase size for better clickability */
    height: 50px;
    border-radius: 50%; /* Make it circular */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition on hover */
}

.sprocket-icon i {
    font-size: 24px; /* Larger gear icon */
    color: #007bff; /* Bootstrap primary color for the icon */
}

.sprocket-icon:hover {
    background-color: #007bff; /* Change background on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.sprocket-icon:hover i {
    color: #fff; /* Change icon color on hover */
}

.status-container
{
    position: absolute;
    min-width: max-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
}

#crop-editor .current-status{
    pointer-events : none;
    color : #fff;
    text-shadow : rgb(0, 0, 0) 0px 0px 5px;
    z-index : 99;
}

#crop-editor .crop-status{
    pointer-events : none;
    color : #fff;
    text-shadow : rgb(0, 0, 0) 0px 0px 5px;
    z-index : 99;
}
#crop-editor .zoom-status{
    pointer-events : none;
    color : #fff;
    text-shadow : rgb(0, 0, 0) 0px 0px 5px;
    margin-left : 15px;
    margin-top : 10px;
    z-index : 99;
}

#crop-editor .resize-container{
    position: relative;
    display: inline-block;
    cursor: move;
    margin: 0 auto;
}
#crop-editor .resize-container{
    position: relative;
    display: inline-block;
    cursor: move;
    margin: 0 auto;
}
#crop-editor .resize-handle{
    transform : scale(1);
    -ms-transform : scale(1);
    -webkit-transform : scale(1);
    -moz-transform : scale(1);
    -o-transform : scale(1);
}
#crop-editor .resize-handle:hover{
    transform : scale(2);
    -ms-transform : scale(2);
    -webkit-transform : scale(2);
    -moz-transform : scale(2);
    -o-transform : scale(2);
}
/*
REMOVED - Due to buttons resizing effects
#crop-editor .resize-handle{
    transition : all .2s ease-in-out;
    -webkit-transition : all .2s ease-in-out;
    -moz-transition : all .2s ease-in-out;
    -o-transition : all .2s ease-in-out;
}
*/
#crop-editor .resize-handle-ne,
#crop-editor .resize-handle-se,
#crop-editor .resize-handle-nw,
#crop-editor .resize-handle-sw
{
    position : absolute;
    display : block;
    width : 15px;
    height : 15px;
    background : rgba(255, 255, 255, 0.9);
    border-radius : 50%;
}
#crop-editor .resize-handle-nw{
    top : -10px;
    left : -10px;
    cursor : nw-resize;
}
#crop-editor .resize-handle-ne{
    top : -10px;
    right : -10px;
    cursor : ne-resize;
}
#crop-editor .resize-handle-sw{
    bottom : -10px;
    left : -10px;
    cursor : sw-resize;
}
#crop-editor .resize-handle-se{
    bottom : -10px;
    right : -10px;
    cursor : se-resize;
}
#crop-editor .crop-area{
    pointer-events: auto!important;
    background-color: rgba(255, 255, 255, 0.25);
    position: absolute;
    top:50%;
    left:50%;
    z-index : 99;
    border : dashed 4px rgba(255, 255, 255, 0.9);
    text-align: center;
}
#crop-editor .crop-size{
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: bold;
}
#crop-editor .crop-table{
    width : 100%;
    height : 100%;
    position : relative;
}
.btn-main-menu-action > svg,
.btn-crop-tool > svg,
.buttons-container button > svg{
    scale: 0.7;
}
.btn-crop-tool:focus,
#crop-editor .buttons-container button:focus,
.crop-element > .edit:focus{
    outline:0;
}
.btn-crop-tool:hover{
    opacity: 1;
}
.btn-crop-tool.flip-x{
    top: 20px;
}
.btn-crop-tool.flip-y{
    top: 60px;
}
.btn-crop-tool.invert{
    top: 100px;
}
.btn-crop-tool.crop{
    top: 140px;
}
#crop-editor{
    background-color: #2a2c39;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    display: none;
}
#crop-editor.open{
    display: flex;
}
#crop-editor .buttons-container button:hover{
    opacity: 1;
}
.btn-crop-tool{
    position: absolute;
    left: -40px;
    background-color: transparent;
    color: #fff;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.2;
    width: 35px;
    height: 35px;
}
.btn-main-menu-action{
    display: none;
    width: 35px!important;
    height: 35px!important;
    font-size: 15px!important;
}
.crop-element{
    overflow: hidden;
    position: relative;
    height: 100%;
    display: block;
    cursor: pointer;
    background-color: #ccc;
}
.crop-element.busy{
    pointer-events: none;
}
.crop-element .crop-progress-container{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 5px;
}
.crop-element .crop-progressbar{
    background-color: #337ab7;
    height: 100%;
    position: absolute;
    line-height: inherit;
}
.crop-element > img{
    position: relative;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}
.crop-element > .edit{
    position: absolute;
    display: none;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
    background-color: #333;
    color: #fff;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.8;
    font-size: 20px;
}
.crop-element.not-empty > .edit{
    display: inline;
}
.crop-element > input[type=file]{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}
.zoom-actions,
.image-actions,
.image-resolutions{
    position: absolute;
    bottom: 25px;
    z-index: 999;
}
.image-actions{
    left: 10px;
}
.image-resolutions{
    right: 10px;
}
.zoom-actions {
    right: 10px;
    top: 25px;
}
.buttons-container label,
.zoom-actions button,
.image-actions button,
.image-resolutions button{
    background-color: transparent;
    color: #fff;
    border: 2px solid;
    opacity: 0.8;
    height: 30px;
    min-width: 40px;
    font-size: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 5px auto 0 auto;
    outline:none;
}

.buttons-container label:hover,
.zoom-actions button:hover,
.image-actions button:hover,
.image-resolutions button:hover{
    opacity: 1;
}
.buttons-container label,
.zoom-actions button,
.image-actions button{
    min-width: auto;
    border-radius: 50%;
}
.editor-busy-container{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #2a2c39;
    z-index: 99999;
}
#crop-editor.busy .editor-busy-container{
    display: inline;
}
.editor-busy,
.loader,
.loader:after ,
.editor-busy:after {
    border-radius: 50%;
    width: 10px;
    height: 10px;
}
.loader ,
.editor-busy {
    font-size: 10px;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    z-index: 99;
    border-top: 1.1em solid rgba(51, 51, 51, 0.8);
    border-right: 1.1em solid rgba(51, 51, 51, 0.8);
    border-bottom: 1.1em solid rgba(51, 51, 51, 0.8);
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
.resize-crop{
    width: 0;
    height: 0;
    position: absolute;
    display: none;
}
.crop-area.resize-w .left,
.crop-area.resize-w .right{
    display: inline;
}
.crop-area.resize-h .top,
.crop-area.resize-h .bottom{
    display: inline;
}
.resize-crop.right{
    cursor: e-resize;
    top: 50%;
    right: -25px;
    margin-top: -7.5px;
    border-style: solid;
    border-width: 7.5px 0 7.5px 15px;
    border-color: transparent transparent transparent  #d1d1d1;
}
.resize-crop.left{
    cursor: w-resize;
    top: 50%;
    left: -25px;
    margin-top: -7.5px;
    border-style: solid;
    border-width: 7.5px 15px 7.5px 0;
    border-color: transparent #d1d1d1 transparent transparent;
}
.resize-crop.top{
    cursor: n-resize;
    left: 50%;
    margin-left: -7.5px;
    top: -25px;
    border-style: solid;
    border-width: 0 7.5px 15px 7.5px;
    border-color: transparent transparent #d1d1d1 transparent;
}
.resize-crop.bottom{
    cursor: s-resize;
    left: 50%;
    margin-left: -7.5px;
    bottom: -25px;
    border-style: solid;
    border-width: 15px 7.5px 0 7.5px;
    border-color: #d1d1d1 transparent transparent transparent;
}

.hero-edit-active {
    background-color: #E94545 !important;
    border-color: #cc3f3f !important;
}

.btn-hero-edit {
    color: #ffffff;
    background-color: #222529;
    border-color: #15171A;
}

.btn-hero-edit:hover,
.btn-hero-edit:focus,
.btn-hero-edit:active,
.btn-hero-edit.active,
.open .dropdown-toggle.btn-hero-edit {
    color: #ffffff;
    background-color: #4D545E;
    border-color: #15171A;
}

.btn-hero-edit:active,
.btn-hero-edit.active,
.open .dropdown-toggle.btn-hero-edit {
    background-image: none;
}

.btn-hero-edit.disabled,
.btn-hero-edit[disabled],
fieldset[disabled] .btn-hero-edit,
.btn-hero-edit.disabled:hover,
.btn-hero-edit[disabled]:hover,
fieldset[disabled] .btn-hero-edit:hover,
.btn-hero-edit.disabled:focus,
.btn-hero-edit[disabled]:focus,
fieldset[disabled] .btn-hero-edit:focus,
.btn-hero-edit.disabled:active,
.btn-hero-edit[disabled]:active,
fieldset[disabled] .btn-hero-edit:active,
.btn-hero-edit.disabled.active,
.btn-hero-edit[disabled].active,
fieldset[disabled] .btn-hero-edit.active {
    background-color: #222529;
    border-color: #15171A;
}

.btn-hero-edit .badge {
    color: #222529;
    background-color: #ffffff;
}

.btn-create-slide {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--accent-color, #007bff); /* Default to Bootstrap primary */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

/* Icon styling inside the button */
.btn-create-slide i {
    margin-right: 8px;
    font-size: 18px;
}

/* Hover effect */
.btn-create-slide:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.templateSuccess {
    margin-bottom:0 !important;
    padding: 6px 12px !important;
}

.btn-ho-primary {
    color: #fff;
    background-color: #E94545;
    border-color: #E94545;
}

.btn-ho-primary:hover {
    color: #fff;
    background-color: #d23e3e;
    border-color: #d23e3e;
}

.btn-ho-primary:focus,
.btn-ho-primary:active,
.btn-ho-primary.active,
.show > .btn-ho-primary.dropdown-toggle {
    color: #fff !important;
    background-color: #b63535 !important; /* Darker shade for active state */
    border-color: #b63535 !important;
}

.status-style {
    background: rgba(255, 255, 255, 0.3);
    padding: 12px;
    color: #fff;
    border-radius: 5px;
}

#StatusAlert {
    display: none; /* Initially hidden */
    opacity: 0;
    transition: opacity 0.5s ease; /* Smooth transition for fade */
}

#StatusAlert.fade-in {
    opacity: 1; /* Fully visible when fading in */
}

#StatusAlert.fade-out {
    opacity: 0; /* Fades out to invisible */
}

@media(max-width:992px){
    .wrapper{
        width:100%;
    }
}

/* Container with border wrapping both input & drawer */
.form-group-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    transition: border-color 0.3s ease-in-out;
    margin-bottom: 10px;
}

/* Input and button row */
.input-group-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Arrow button styling */
.toggle-drawer {
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s ease-in-out;
}

/* Sliding Drawer */
.dropdown-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
    background: #f8f9fa;
    padding: 0 10px;
}

/* Active state for drawer */
.dropdown-drawer.show {
    max-height: 80px; /* Adjust height to fit content */
    padding: 10px;
}

/* Flex container for inline dropdowns */
.dropdown-inline {
    display: flex;
    gap: 10px; /* Spacing between dropdowns */
    align-items: center;
}

/* Ensure select elements take equal space */
.dropdown-inline select {
    flex: 1;
    min-width: 120px;
}


#TemplateMarkup label {
    margin-bottom:7px;
}

.square-color-picker {
    width: 40px !important;   /* Ensure the color picker is square and uses !important */
    height: 40px;             /* Make it square */
    padding: 0;               /* Remove padding */
    display: inline-block;    /* Align properly with other elements */
}

.input-group-container input,
.form-select {
    width: 100%;  /* Ensure they take up full container width */
    margin-bottom: 10px;  /* Space between elements */
}

/* Remove the 100% width for the input group */
.input-group {
    display: inline-flex;  /* Use inline-flex to allow the elements to fit next to each other */
    width: auto;
    margin-bottom: 10px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
    background-color: #6c757d; /* Default Gray */
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#TemplateMarkupTextArea {
    font-family: monospace;  /* Use a monospaced font for better readability */
    white-space: pre-wrap;   /* Preserve white space and line breaks */
    word-wrap: break-word;   /* Ensure long words break into the next line */
    border: 1px solid #ccc;  /* Add a border for visibility */
    padding: 10px;           /* Padding inside the textarea */
}

/* The overlay that covers the entire page */
#loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent grey */
    z-index: 9999; /* Ensure it appears on top */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The loading spinner */
.loading-spinner {

}

/* Animation for spinner */
@keyframes spin {

}