@font-face {
    font-family: myFont;
    src: url('Super_Dessert.ttf');
}

* {
    max-width: 100vw !important;
    font-family: myFont !important;
}

body {
    margin: 0;
    background-color: #ffc401;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #333;
    box-sizing: border-box;
    overflow-x: hidden;
}

nav {
    width: 100%;
    background: transparent !important;
    position: absolute;
    top: 14px;
    left: 0;
    z-index: 1;
    padding-right: 20px;
}

.nav-link {
    color: #360a0a !important;
    font-size: 1.3em;
}

main {
    background-color: #fffc7a;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 30px;
}

.photo-section {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-section img {
    position: absolute;
}

.background-center {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fffc7a;
    z-index: -2;
}

.middle-center {
    bottom: 0;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translateX(-50%);
}

.center {
    top: 0%;
    left: 50%;
    width: 1100px;
    transform: translateX(-50%);
}

.left {
    left: 0;
    bottom: 0%;
    width: 500px;
    height: auto;
}

.right {
    right: 0;
    bottom: 0%;
    width: 450px;
    height: auto;
}

.bottom-center {
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 470px;
    height: auto;
}

.separator {
    position: absolute;
    top: auto;
    bottom: 0%;
    left: 0%;
    right: 0%;
    height: 70px;
    background-image: url('./separator_top.svg');
    background-position: 50% 100%;
    background-repeat: repeat-x;
    background-size: auto 100%;
    z-index: 50;
}

/* Responsive adjustments for smartphones */
@media (max-width: 480px) {
    main {
        height: 65vh;
    }

    .photo-section img.center {
        width: 90%;
        height: auto;
        top: 20%;
        left: 50%;
    }

    .photo-section img.left,
    .photo-section img.right {
        width: 60%;
        /* Adjust size of side images */
        height: auto;
        /* Maintain aspect ratio */
    }

    .photo-section img.bottom-center {
        width: 60%;
        /* Adjust size of bottom-center image */
        height: auto;
        /* Maintain aspect ratio */
    }

    h2 {
        font-size: 30px;
        /* Adjust font size for h2 in the preloader */
    }

    #enterSite {
        font-size: 1.2em;
        /* Adjust font size for the enter button */
    }
}

/* ................................................................ */
.separator_main {
    position: relative;
    width: 100%;
}

.line {
    background-color: #ffd900;
    height: 30px;
    width: 100%;
}

.separator_images {
    position: relative;
    width: 100%;
    height: 100px;
    /* Increased height to make it more prominent */
    background-image: url('./separator_bottom.svg'), url('./separator_dark.svg');
    background-repeat: repeat-x, repeat-x;
    background-position: 0 0, 0 0;
    /* Adjust positions to layer them correctly */
    background-size: auto 60px, auto 100%;
    /* Adjust the size of the images */
}

/* ...................................................... */
.About {
    background-color: #cdff8d;
    height: 115vh;
    position: relative;
}

h1 {
    padding-top: 30px;
    transform: rotate(6deg);
    font-size: 80px !important;
    color: #333;
    text-align: center;
    text-shadow: 3px 3px #b09746;
}

.center_item {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brush_line {
    position: absolute;
    top: 21%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    /* Make sure it's behind all other elements */
    width: 98vw;
}

.char_center {
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(6deg);
    z-index: 2;
    width: 400px;
}

.bank {
    position: absolute;
}

.bank_behind_1 {
    top: 28%;
    left: 49%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 400px;
}

.bank_behind_2 {
    top: 24%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 400px;
}

.bank_front {
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 400px;
}

.block_grass {
    position: absolute;
    top: 62%;
    left: 47%;
    transform: translate(-50%, -50%) rotate(6deg);
    z-index: 3;
    width: 500px;
}

/* Adjustments for tablet screens */
@media (max-width: 768px) {
    .char_center {
        left: 54%;
    }

    .About {
        height: 90vh;
    }

    .block_grass {
        top: 35%;
        /* Move block_grass up */
        height: 100vh;
        /* Reduce height to 100vh */
    }

    .brush_line {
        top: 18%;
        /* Adjust position for brush_line if needed */
    }
}

/* Adjustments for mobile screens */
@media (max-width: 480px) {
    .About {
        height: 100vh;
    }

    .block_grass {
        width: 360px;
        height: 300px;
        top: 62%;
    }

    .brush_line {
        display: none;
        /* Hide both block_grass and brush_line */
    }
}

/* ..................................................... */
.separator_images_top {
    position: relative;
    width: 100%;
    height: 50px;
    background-image: url('./separator_top.svg');
    background-repeat: repeat-x;
    background-position: 0 0;
    background-size: auto 100%;
}

/* New Separator Section */
.separator_separator_blue {
    position: relative;
    width: 100%;
}

.separator_images_top {
    position: relative;
    width: 100%;
    height: 50px;
    background-image: url('./separator_top.svg');
    background-repeat: repeat-x;
    background-position: 0 0;
    background-size: auto 100%;
}

.separator_separator_blue .separator_images {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #fc8a09;
}

.separator_separator_blue .separator_images::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./separator_bottom.svg'), url('./separator_dark.svg');
    background-repeat: repeat-x, repeat-x;
    background-position: 0 0, 0 0;
    background-size: auto 60px, auto 100%;
    z-index: 1;
}

.separator_separator_blue .line {
    background-color: #ede700;
    height: 90px;
    width: 100%;
    
    
}

.separator_separator_blue .line h1 {
    transform: rotate(0deg);
    padding: 0;
    color: #cb4229;
    text-shadow: none;
}

/* Editor....................................................................... */
.photoedit {
    background-color: #fbff88;
    /* Light grey background for a clean look */
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.char{
    position: absolute;
    width: 350px;
    left: 5%;
    transform: rotate(-34deg);
}
/* Container styling */
.container {
    background: rgba(233, 35, 0, 0.55);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
    width: 1000px;
    margin-top: 50px;
}

/* File upload input styling */
#upload {
    color: #fff;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Main content layout */
.content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

/* Editor styling */
.editor {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Canvas styling */
#canvas {
    margin-top: 30px;
    margin-bottom: 30px;
    /* background-color: #f8f8f8; */
    border: 1px solid #cccccca6;
    border-radius: 5px;
    width: 500px;
    display: block;
}

/* Controls styling */
.controls {
    width: 250px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Layer and adjustments controls */
.layer-controls,
.adjustments {
    /* background-color: #ffffff; */
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    border: 1px solid #ccc;
    /* box-shadow: 0 2px 4px rgba(255, 255, 255, 0.778); */
}

.layer-controls h2,
.adjustments label {
    margin: 10px 0;
    font-size: 16px;
    color: #ffffff;
}

.layer-controls ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layer-controls li {
    margin: 5px 0;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.layer-controls li.selected {
    background-color: #e0e0e0;
}

.layer-controls li:hover {
    background-color: #f0f0f0;
}

/* Range input styling */
input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

/* Actions styling */
.actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

/* Button styling */
button {
    background-color: #d4c116e5;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6);

    /* Primary button color */
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #227093;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 172, 224, 0.5);
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .container {
        width: 90vw;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .editor {
        order: 1;
    }

    #canvas {
        width: 100%;
        height: auto;
        margin: 20px 0;
    }

    .controls {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .actions {
        order: 2;
        width: 100%;
        margin-top: 20px;
    }

    .actions button {
        margin: 10px 0;
    }

    .photoedit {
        padding: 30px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    #canvas {
        width: 100%;
        height: auto;
    }

    .controls {
        width: 100%;
        margin-top: 20px;
    }

    .actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
    }

    .actions button {
        margin: 10px 0;
    }

    .photoedit {
        padding: 30px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #ede700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.preloader-content {
    text-align: center;
}

#enterSite {
    background-color: #cb4229;
    color: #edeee8;
    border: none;
    margin-top: 10px;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 50px;
    font-size: 1.5em;
    transition: background-color 0.3s ease;
}

#enterSite:hover {
    background-color: #f12400;
}

h2 {
    font-size: 35px;
}

/* Style for the sticker dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 200px;
    z-index: 1000;
    top: 60px;
    /* Adjust this to position it correctly */
    right: 20px;
    /* Adjust this to position it correctly */
}

.dropdown-menu img {
    background-color: #fff;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.dropdown-menu img:hover {
    border-color: hsl(59, 83%, 48%);
}

/* To make sure the dropdown appears above other content */
.photoedit {
    position: relative;
}

/* Make sure these styles are included in your CSS file */
.sticker-popup {
    position: absolute;
    display: none;
    /* Initially hidden */
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

/* Adjust positioning for responsiveness */
@media (max-width: 768px) {
    .sticker-popup {
        width: 100%;
        left: 0;
        top: auto;
        bottom: 0;
        box-shadow: none;
    }
}

.sticker-popup button {
    display: block;
    margin: 10px 0;
}



.sticker-dropdown {
    text-align: center;
    margin-top: 15px;
}

.sticker-dropdown img{
    padding-left: 20px;
    width: 80px !important;
}




#moveControlsWrapper {
    border: solid #ffffff3f 1px;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto; /* Center the controls horizontally */
}

#moveLabel {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 4px;
    color: #fff;
    font-weight: bold;
}

#moveControls {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the controls */
}

#moveControls #moveUp {
    margin-bottom: 5px; /* Space between Up and Down buttons */
    padding-bottom: 15px;
}

#moveMiddle {
    display: flex;
    flex-direction: row; /* Arrange buttons horizontally */
    align-items: center;
}

#moveMiddle button {
    background-color: #f0f0f0; /* Light gray background */
    color: #333; /* Dark text */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 4px; /* Rounded corners */
    padding: 10px; /* Padding inside the buttons */
    font-size: 18px; /* Font size for button text */
    cursor: pointer; /* Pointer cursor on hover */
    margin: 2px; /* Space between buttons */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Shadow for 3D effect */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    text-align: center; /* Center text */
    width: 50px; /* Fixed width to align with keyboard style */
    height: 50px; /* Fixed height for square buttons */
}

#moveMiddle button:hover {
    background-color: #e0e0e0; /* Slightly darker gray on hover */
}

#moveMiddle button:active {
    background-color: #d0d0d0; /* Even darker gray when button is pressed */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Reduced shadow on click */
}

#moveMiddle button:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 2px #007bff; /* Blue outline for focus */
}

/* Ensure button alignment is correct */
#moveLeft {
    margin-right: 5px; /* Space between Left and Down buttons */
}

#moveRight {
    margin-left: 5px; /* Space between Down and Right buttons */
}
