body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #272525;
    padding: 2px;
    color: #FFFFFF
}

#logo-header {
    text-align: center;  /* Center the logo */
    padding: 2px;       /* Add some space */
}

#logo {
    max-width: 200px;    /* Adjust the logo size */
    height: auto;        /* Maintain aspect ratio */
}

#waveform-container {
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
}

#waveform canvas {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
}

/* Watermark Styling */
#watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 48px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.1); /* Light and transparent */
    pointer-events: none; /* Allow interactions through watermark */
    z-index: 10; /* Ensure it's above the waveform */
    user-select: none; /* Prevent text selection */
}

#waveform {
    width: 90%;
    height: 90%;
    background-color: inherit; /* Ensure it matches the container background */
}

/* Adjustments for small screens (mobile) */
@media (max-width: 768px) {
    #waveform-container {
        max-height: 300px; /* Reduce height on small screens */
    }
}

#overlayText {
    position: absolute;
    width: 100%;          /* Ensures text stays within the canvas width */
    bottom: 4%;           /* Position it beneath the waveform */
    text-align: center;   /* Center the text */
    font-size: 16px;      /* Adjust font size for mobile */
    max-width: 90%;       /* Prevents it from going outside the canvas */
    word-wrap: break-word; /* Ensures long text wraps properly */
    white-space: normal;  /* Allows multiple lines */
    padding: 5px;
    color: black; /* Adjust color */
}

@media screen and (max-width: 768px) {
    #overlayText {
        font-size: 10px;  /* Make text slightly smaller on mobile */
        bottom: 2%;       /* Adjust spacing on smaller screens */
    }
}

/* Style the tab buttons */
.tab {
    overflow: hidden;
    border-bottom: 2px solid #ddd;
}

.tab button {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #343333;
    color: #fff;
}

.tab button.active {
    background-color: #343333;
    color: #fff;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 15px;
    border-top: none;
}

.screenshot-mode * {
  user-select: none !important;
  caret-color: transparent !important;
}

.screenshot-mode input[type="range"],
.screenshot-mode input[type="color"],
.screenshot-mode select,
.screenshot-mode textarea,
.screenshot-mode button,
.screenshot-mode .tab {
  visibility: hidden !important;
}

/* Center the entire appearance section */
.appearance-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything */
    gap: 20px; /* Space between color mode and controls */
}

/* Style for the color mode selection box */
.color-mode-box {
    text-align: center;
    border: 1px solid #ddd;
    padding: 3px 20px;
    border-radius: 5px;
    background: #4e4e4e;
    width: fit-content;
}

/* Align color and thickness options in a row */
.controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Adjust spacing between elements */
    align-items: center;
    justify-content: center; /* Center controls under color mode box */
}

/* Individual control items (waveform, background, thickness) */
.controls-container > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

#controls {
    margin-top: 10px;
}

/* ✅ Style the Download Button */
#downloadButton {
    background-color: #4CAF50; /* ✅ Green Background */
    color: white; /* ✅ White Text */
    font-size: 16px; /* ✅ Readable Font */
    font-weight: bold;
    padding: 12px 24px; /* ✅ Button Padding */
    border: none; /* ✅ Remove Border */
    border-radius: 8px; /* ✅ Rounded Corners */
    cursor: pointer; /* ✅ Cursor Pointer on Hover */
    transition: background-color 0.3s ease, transform 0.2s ease; /* ✅ Smooth Hover Effect */
}

/* ✅ Hover Effect */
#downloadButton:hover {
    background-color: #45a049; /* ✅ Darker Green */
    transform: scale(1.05); /* ✅ Slight Scale Up */
}

/* ✅ Active Effect (Click) */
#downloadButton:active {
    background-color: #3e8e41;
    transform: scale(0.98);
}

/* ✅ Style for Mobile */
@media screen and (max-width: 768px) {
    #downloadButton {
        width: 80%; /* ✅ Full Width on Mobile */
        padding: 14px 0; /* ✅ Taller Button */
        font-size: 18px; /* ✅ Larger Text */
    }
}

#image-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Lower than buttons */
    background: transparent;
    pointer-events: none; /* Ensure buttons still work */
}

#waveform-container {
    position: relative; /* Ensures #image-blocker stays inside */
}

/* Default size for desktop */
#overlayTextInput {
    width: 70%;  /* Adjust width */
    max-width: 380px;  /* Prevent it from being too large */
    height: 35px;  /* Adjust height */
    font-size: 14px;  /* Adjust font size */
    padding: 5px;  /* Add some spacing */
}

.canvases > div:nth-child(1) > canvas:nth-child(2) {
    display: none !important;
}

/* ✅ Mobile-specific adjustments */
@media screen and (max-width: 768px) {
    #overlayTextInput {
        width: 90%;  /* Make it wider on mobile */
        max-width: 300px; /* Keep a reasonable limit */
        height: 40px;  /* Increase height for better usability */
        font-size: 14px; /* Slightly smaller font */
    }
}
