/* reset */

*, *:before, *:after {-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;}
html, body, div, span, applet, object, iframe, input, select, textarea, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a,
abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small,
strike, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td {margin:0; padding:0; border:0; outline:0; font-weight:inherit; font-style:inherit;
font-size:100%; font-family:inherit; vertical-align:baseline; line-height: 1.25;}
:focus {outline:0;outline-color:transparent;}
ol, ul {list-style:none;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
.clear {clear:both;height:0;overflow:hidden;}


html, body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
    background-color: #FFFFFF;
}
a {
    color: #0071B3;
    text-decoration: none;
}
a:hover, a:focus {
    color: #018FE2;
    text-decoration: underline;
}
input:focus, select:focus, textarea:focus, button:focus {
    outline: none;
    box-shadow: none;
}
#top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 8px;
    background-color: #C6DF60; 
}
#wrapper {
    border-top: 8px solid #C6DF60;
}
.width {
    max-width: 960px;
    min-width: 320px;
    width: 100%;
    margin: 0 auto;
}
#header-wrapper {
    margin: 0 0 20px 0;
}
#header-left img {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0 15px 0;
}
#how-to {
    background: transparent url("/images/ringtonemaker/free-ringtone-maker.jpg") no-repeat scroll 0px 0px;
    padding-left: 200px;
    min-height: 227px;
    text-align: left;
}
#how-to h1 {
    color: #297B00;
    font-size: 16px;
    font-weight: bold;
    margin: 0px 0px 15px;
}
#how-to li {
    line-height: 160%;
    color: #666666;
    font-weight: bolder;
}
#how-to ul {
    padding-left: 25px;
    list-style-type: disc; 
    list-style-position: outside; 
}
#header-left {
    float: left;
    width: 600px;
    position: relative;
}
#header-right {
    float: right;
    height: 338px;
    width: 336px;
    overflow: hidden;
}
#top-right {
    height: 38px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 20px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    background-color: #d2e687;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0idnNnZyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIwJSIgeTE9IjAlIiB4Mj0iMCUiIHkyPSIxMDAlIj48c3RvcCBzdG9wLWNvbG9yPSIjYzZkZjYwIiBzdG9wLW9wYWNpdHk9IjEiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNkZWVjYWUiIHN0b3Atb3BhY2l0eT0iMSIgb2Zmc2V0PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI3ZzZ2cpIiAvPjwvc3ZnPg==);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%,color-stop(0, rgb(198, 223, 96)),color-stop(1, rgb(222, 236, 174)));
    background-image: -webkit-linear-gradient(top,rgb(198, 223, 96) 0%,rgb(222, 236, 174) 100%);
    background-image: linear-gradient(to bottom,rgb(198, 223, 96) 0%,rgb(222, 236, 174) 100%);
    background-image: -ms-linear-gradient(top,rgb(198, 223, 96) 0%,rgb(222, 236, 174) 100%);
}
#top-right h2 {
    font-weight: bold;
    font-size: 17px;
    font-style: italic;
    color: #444;
    line-height: 30px;
}
#main {
    margin-bottom: 30px;
}
.ha-wrapper {
    margin-bottom: 30px;
    padding: 10px 0;
}
.ha {
    width: 100%;
    max-width: 728px;
    max-height: 100px;
    margin: 0 auto;
    overflow: hidden;
}
.no-adb .ha-wrapper {
    background-color: #FAFAFA;
}
#footer {
    color: #888888;
    font-size: 0.9em;
    padding: 0 0 20px 0;
}
#bottom-wrapper {
    border-top: 3px solid #F5F5F5;
    padding-top: 10px;
    margin-top: 20px;
    font-size: 0.9em;
}
#footer-copy {
    float: left;
    width: 49%;
}
#footer-langs {
    float: right;
    text-align: right;
    width: 49%;
}
#footer-langs a {
    text-transform: uppercase;
}
.x-pretty-alert {
    text-align: center;
    margin-top: 20px;
}
#like-it {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 10px;
    color: #414141;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}
.ui-dialog .ui-button {
    outline: 0;
}
#content-wrapper {
    display: none;
    height: 300px;
    position: relative;
}
#content-progress {
    width: 100%;
    height: 300px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
}
#content-progress-status {
    width: 100%;
    position: absolute;
    top: 57%;
    font-size: 16px;
    text-transform: uppercase;
    margin-top: -10px;
    font-weight: bold;
    color: #8D8D8D;
    text-align: center;
}
#content {
    width: 100%;
    height: 300px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 50;
}
.ui-slider .ui-slider-handle {
    width: 17px;
    height: 17px;
}
.plupload_file_wrapper .ui-icon {
    background-image: url(theme/images/ui-icons_888888_256x240.png);
}
.plupload_file_wrapper .ui-icon:hover {
    background-image: url(theme/images/ui-icons_454545_256x240.png);
}
.ui-widget-overlay {
    background: none !important;
}
.ui-slider-handle.ui-state-default {
    background-color: #414141;
}
#ads1 {
    margin: 0 auto 25px auto;
    max-width: 728px;
    overflow: hidden;
}
#ads2 {
    margin: 25px auto 0 auto;
    max-width: 728px;
    overflow: hidden;
}
#alter-right {
    display: none;
    height: 280px;
}
.adb #alter-right {
    display: block;
}
#donation {
    padding-top: 5px;
    text-align: center;
}
#donation > div {
    display: inline-block;
    padding-right: 10px;
    padding-left: 10px;
    vertical-align: top;
}
.bitcoinate {
    line-height: 22px !important;
}
#donation-text {
    padding-top: 5px;
    color: #FFFFFF;
}
.result-window {
    margin: 0 auto;
    max-width: 750px;
    width: 90% !important;
    left: 0 !important;
    right: 0 !important;
    position: fixed;
}
.result-window .ui-dialog-content {
    padding-right: 1%;
    padding-left: 1%;
    overflow: hidden;
}
.ui-widget-overlay {
    opacity: .50 !important;
    filter: Alpha(Opacity=50) !important;
    background-color: rgb(50, 50, 50) !important;
}
.pretty-policy {
    font-size: 13.5px;
}
.pretty-policy p {
    margin: 10px 0;
}


/* for carousel */

#carousel-wrapper {
    position: relative;
    height: 122px;
    margin: 0 0 30px 0;
    background-image: url(/images/ringtonemaker/subtle_dots.png);
    border-radius: 3px;
    overflow: hidden;
}
#carousel-wrapper .ui-button, #carousel-wrapper .ui-icon {
    padding: 0;
}
#container {
    height: 102px;
    margin-top: 11px;
    overflow: hidden;
    position: absolute;
}
#carousel {
    width: 100%;
    height: 110px;
    overflow: hidden;
}
#carousel-prev-wrapper, #carousel-next-wrapper {
    width: 27px;
    height: 112px;
    position: absolute;
    padding-top: 27px;
}
#carousel-prev-wrapper {
    left: 0;
    padding-left: 7px;
}
#carousel-next-wrapper {
    right: 0;
}
#carousel-next, #carousel-prev {
    width: 20px;
    height: 68px;
}
#carousel-next .ui-icon, #carousel-prev .ui-icon {
    position: absolute;
    top: 50%;
    margin-top: -8px;
}
#upload-buttons-wrapper {
    width: 400px;
    margin: 0 auto 30px auto;
    height: 33px;
    position: relative;
}
#upload-buttons-wrapper .ui-button-text {
    font-weight: bold;
    text-transform: uppercase;
    line-height: 19px;
    padding-top: 5px;
    padding-bottom: 5px;
}
#upload-buttons-wrapper .ui-icon {
    background-image: url(theme/images/ui-icons_ffffff_256x240.png);
}
#pick-files, #reset-all {
    width: 190px;
    font-size: 13px;
    position: absolute;
    top: 0;
}
#pick-files {
    left: 0;
}
#reset-all {
    right: 0;
}
#reset-all {
    border-color: #8D8D8D;
    background-image: url(theme/images/ui-bg_highlight-soft_25_367DC6_1x100_bw.png) !important;
    background-color: #8D8D8D;
}
#carousel-prev.ui-button {
    background: transparent url(/images/left-arrow.png) center center no-repeat;
    border: none;
}
#carousel-next.ui-button {
    background: transparent url(/images/right-arrow.png) center center no-repeat;
    border: none;
}
#carousel-prev .ui-icon, #carousel-next .ui-icon {
    display: none;
}
#carousel .ui-state-default {
    background: #F5F5F5;
    color: #444444;
    border-color: #8D8D8D;
}
#carousel .ui-button-inverse {
    background: #EEF6CF;
    color: #444444;
    border-color: #8D8D8D;
}


/* for plupload */

.plupload_file_wrapper {
    height: 100px;
    width: 190px;
    margin: 0 auto;
    padding: 14px 8px 8px 8px;
    font-size: 12px;
    font-weight: normal;
    border-radius: 3px;
    position: relative;
}
.plupload_filelist li {
    float: left;
    display: block;
}
.plupload_file_name {
    overflow: hidden;
    width: 100%;
    height: 17px;
    font-size: 12px;
    color: #444444;
}
.plupload_file_action {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 5px;
    right: 5px;
}
.plupload_file_action .plupload_file_icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.plupload_clearer {
    clear: both;
}
.plupload_file_status {
    text-align: center;
    width: 100%;
    position: absolute;
    top: 50%;
    margin-top: -7px;
}
.plupload_thumb_wrapper {
    background: #FFFFFF;
    border: inherit;
    overflow: hidden;
    position: relative;
    margin-top: 9px;
}
.plupload_thumb {
    width: 170px;
    height: 45px;
    background-color: #FFFFFF;
}
.plupload_file_progress_bar {
    width: 100%;
    height: 45px;
    background-color: #FFB10D;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
}
#plupload_drop {
    color: #8D8D8D;
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    margin-top: -14px;
    z-index: 10;
}
.plupload_file_wrapper .ui-icon {
    background-image: url(theme/images/ui-icons_888888_256x240.png);
}


/* share */

#share {
    width: 300px;
    margin: 10px auto 0 auto;
    text-align: center;
}
#share .pop {
    margin: 0 5px;
}
.share-bw {
    background: url(/images/social-icons.png) no-repeat scroll left top transparent;
    display: inline-block;
    width: 49px;
    height: 49px;
    line-height: 0;
    margin: 0;
}
.share-bw-facebook {
    background-position: -1px -1px;
}
.share-bw-facebook:hover {
    background-position: -1px -51px;
}
.share-bw-twitter {
    background-position: -50px -1px;
}
.share-bw-twitter:hover {
    background-position: -50px -51px;
}
.share-bw-googleplus {
    background-position: -99px -1px;
}
.share-bw-googleplus:hover {
    background-position: -99px -51px;
}
.share-bw-stumbleupon {
    background-position: -148px -1px;
}
.share-bw-stumbleupon:hover {
    background-position: -148px -51px;
}
.share-bw-reddit {
    background-position: -197px -1px;
}
.share-bw-reddit:hover {
    background-position: -197px -51px;
}
.share-bw-vkontakte {
    background-position: -246px -1px;
}
.share-bw-vkontakte:hover {
    background-position: -246px -51px;
}


/* player */

#player-container {
    min-width: 320px;
    min-height: 231px;
    border: 1px solid #8D8D8D;
    border-radius: 3px;
    background-color: #F5F5F5;
}
#player-container .ui-corner-tr {
    border-top-right-radius: 0;
}
#player-container .ui-corner-br {
    border-bottom-right-radius: 0;
}
#player-controls {
    margin: 20px auto 0 auto;
    height: 56px;
    max-width: 800px;
    display: flex;
    justify-content: center;
}
#player-controls li {
    text-align: center;
    float: left;
    font-size: 13px;
}
#player-controls .text {
    font-weight: bold;
    color: #444444;
}
#player-controls li.btn {
    min-width: 40px;
    width: 13%;
}
#player-controls li.inp .ui-spinner {
    margin-bottom: 5px;
}
#player-controls li.inp {
    min-width: 78px;
    width: 18%;
}
#player-controls li.sld {
    min-width: 100px;
    width: 25%;
}
#player-controls li.sld .item {
    padding-top: 11px;
}
#player-controls li.btn .ui-button {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
}
#player-controls .item {
    height: 40px;
}
#player-gui {
    position: relative;
    padding: 15px 2.5%;
    width: 100%;
    margin: 0 auto;
}
.no-volume #player-controls li.sld {
    display: none;
}
#player-range {
    margin-top: 5px;
    width: 100%;
    height: 101px;
}
#player-range img {
    width: 100%;
    height: 99px;
    overflow: hidden;
    border-radius: 3px;
}

/* WaveSurfer integration - Dark wave with green background */
#player-range {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: crosshair;
    background: #F0FFF0; /* Light green background */
    user-select: none; /* Prevent text selection during drag */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#player-range:hover {
    border-color: #4F4A85;
}

#player-range wave {
    border-radius: 3px;
}

/* Hide original progress slider when WaveSurfer is active */
#player-range:has(wave) .native-progress {
    display: none !important;
}

/* Alternative method for browsers that don't support :has() */
.wavesurfer-active .native-progress {
    display: none !important;
}

/* Hide the progress canvas to prevent duplicate waveforms */
#player-range .progress {
    pointer-events: none;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
}

/* Region styling for WaveSurfer - Custom green theme */
.wavesurfer-region,
[data-region-id],
[part*="region"],
[part="region"] {
    border: 2px solid #228B22 !important;
    border-left: 2px solid #228B22 !important;
    border-right: 2px solid #228B22 !important;
    border-radius: 3px !important;
    background: rgba(167, 216, 154, 0.45) !important;
    background-color: rgba(167, 216, 154, 0.45) !important;
    position: absolute !important;
    top: 0 !important;
    height: 100% !important;
    z-index: 100 !important;
    pointer-events: all !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Target the specific region part */
[part="region"] {
    background-color: rgba(167, 216, 154, 0.45) !important;
    border: 2px solid #228B22 !important;
    border-left: 2px solid #228B22 !important;
    border-right: 2px solid #228B22 !important;
}

.wavesurfer-region-handle,
[data-region-id] .region-handle,
[part*="region"] .region-handle,
[part="region-handle"] {
    background: #228B22 !important;
    border: 1px solid #fff !important;
    border-left: 2px solid #228B22 !important;
    border-right: 2px solid #228B22 !important;
    border-radius: 2px !important;
    width: 8px !important;
    height: 100% !important;
    cursor: col-resize !important;
    position: absolute !important;
    top: 0 !important;
    z-index: 101 !important;
}

/* Target the specific handle parts */
[part="region-handle-left"],
[part="region-handle-right"] {
    background: #228B22 !important;
}

/* Ensure regions are visible and on top */
#player-range [part*="region"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

/* Make sure the waveform container allows regions to be visible */
#player-range {
    position: relative !important;
    overflow: visible !important;
}

#player-range wave {
    border-radius: 3px;
    position: relative !important;
    z-index: 1 !important;
}
#player-range .ui-widget-header {
    background: #C6DF60;
    opacity: 0.3;
    z-index: 10;
}
#player-progress {
    margin-top: 2px;
    width: 100%;
    height: 10px;
    border: none;
}
#player-progress .ui-widget-header, #player-progress.ui-widget-content {
    background: none;
}
#player-progress .ui-slider-handle {
    background: url(/images/ringtonemaker/slider_17x23_pink.png) no-repeat;
    border: 0 none;
    height: 23px;
    top: -15px;
    cursor: col-resize;
    z-index: 20;
    margin-left: -8px;
}
#player-range .ui-slider-handle {
    background: url(/images/ringtonemaker/slider_17x23_blue.png) no-repeat;
    border: 0 none;
    width: 17px;
    height: 23px;
    top: -11px;
    cursor: col-resize;
    z-index: 20;
    margin-left: -8px;
}
#player-volume {
    width: 100px;
    height: 10px;
    margin: 0 auto;
}
#player-volume .ui-slider-handle {
    cursor: col-resize;
    width: 16px;
    height: 16px;
}
.jp-no-solution {
    display: none;
}
#player-spinner-min, #player-spinner-max {
    width: 40px;
    height: 25px;
    font-size: 15px;
}
.ruler {
    width: 100%;
    height: 11px;
    overflow: hidden;
    position: absolute;
    width: 100%;
    top: 50%;
    margin-top: -6px;
    z-index: 5;
    opacity: 0.3;
}
.ruler li {
    border-right: 1px solid #FFFFFF;
    float: left;
    height: 11px;
}
.ruler-line {
    width: 100%;
    height: 0;
    position: absolute;
    top: 50%;
    border-top: 1px solid #FFFFFF;
    margin-top: -1px;
    z-index: 5;
    opacity: 0.3;
}
#player-action {
    border-top: 1px solid #8d8d8d;
    padding: 15px 0;
    text-align: center;
}
#player-action .ui-button-text {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 19px;
    padding-top: 5px;
    padding-bottom: 5px;
}
#player-format, #player-cut {
    display: inline-block;
}
#player-cut {
    width: 200px;
    margin-left: 15px;
}
#player-format .ui-button {
    border-color: #8D8D8D;
    background-image: url(theme/images/ui-bg_highlight-soft_25_367DC6_1x100_bw.png) !important;
    background-color: #8D8D8D;
}
#player-format .ui-button.ui-state-active {
    border-color: #67A333;
    background-image: url(theme/images/ui-bg_highlight-soft_25_D23686_1x100.png) !important;
    background-color: #67A333;
}


/* responsive */

@media only screen and (max-width: 960px) {
    .width {
        padding: 0 1%;
    }
    #header-right {
        display: none;
	width: 0;
	height: 0;
    }
    #header-left {
        float: none;
        max-width: 700px;
        width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    #header-left img {
        margin-left: auto;
        margin-right: auto;
    }
    #header-wrapper {
        margin-bottom: 30px;
    }
}
@media only screen and (max-width: 720px) {
    #player-controls li.sld {
        display: none;
    }
    #player-controls li.btn {
        width: 16%;
    }
    #player-controls li.inp {
        width: 26%;
    }
    #carousel-wrapper, #content-wrapper {
        margin-right: 0;
        margin-left: 0;
        border-radius: 0;
    }
    #player-container {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
    #player-gui {
        padding-right: 3%;
        padding-left: 3%;
    }
    .about-extra {
        display: none;
    }
    .width {
        padding: 0;
    }
    #header-left {
        width: 96%;
        margin-left: auto;
        margin-right: auto;
    }
    #how-to {
        padding: 0;
        background-image: none;
        min-height: 0;
    }
    #how-to ul {
        padding-left: 15px;
    }
    #footer-copy, #footer-langs {
        float: none;
        width: 100%;
        text-align: center;
    }
    #footer-copy {
        margin-bottom: 5px;
    }
}
@media only screen and (max-width: 480px) {
    #about-wrapper, #ads1, #ads2, #desc2 {
        display: none;
    }
    #upload-buttons-wrapper {
        width: 300px;
    }
    #header h1 {
        font-size: 16px;
    }
    #how-to {
        text-align: center;
    }
    #how-to h1 {
        display: none;
    }
    #how-to ul {
        list-style-type: none; 
    }
    #how-to li {
        display: inline;
        line-height: inherit;
        font-weight: normal;
    }
    #how-to li b {
        font-weight: normal;
    }
    #how-to ul {
        padding-left: 0;
    }
    .ha-wrapper {
        display: none;
        margin-top: -10px;
        margin-bottom: 20px;
    }
}

/* Back button styling */
#back-button-wrapper a {
    color: white !important;
    text-decoration: none;
}

#back-button-wrapper a:hover {
    color: white !important;
}

#back-button-wrapper a:visited {
    color: white !important;
}

#back-button-wrapper a:active {
    color: white !important;
}

#back-button-wrapper .ui-button-text {
    color: white !important;
}
