/*
Theme Name:   Squiffers
Theme URI:    https://squiffers.co.uk/squiffers/
Description:  Squiffers 2025 Child Theme
Author:       Gaffyn
Author URI:   https://squiffers.co.uk
Template:     twentytwentyfive
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  squiffers
*/

squiffbody {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-align: center;
    background-color: #222;
    color: white;
    margin: 0;
    padding: 50px;
}

.squiffcontainer {
    max-width: 600px;
    margin: auto;
}

.squiffcontent {
    /*width: auto;
    max-width: 60%;
    text-align: center;*/
}

.squifftitle {
    font-size: 2rem;
    animation: wobble 2s infinite;
}

button {
    background-color: #ffcc00;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
}

button:hover {
    background-color: #ff9900;
}

/* Highlighted word */
.highlight {
    color: #ff3300;
    font-size: 2.2rem;
    font-weight: bold;
}

#squiffDisplay {
    margin-top: 30px;
    font-size: 2rem;
    font-weight: bold;
    animation: drunkWobble 1s infinite alternate ease-in-out;
}

/* Drunk wobble effect */
@keyframes drunkWobble {
    from {
        transform: rotate(-5deg) translateX(-10px) scale(1);
    }
    to {
        transform: rotate(5deg) translateX(10px) scale(1.5);
    }
}

@keyframes squiffWobble {
    from {
        transform: rotate(-360deg) translateX(-10px) translateY(-10px) scale(1);
    }
    to {
        transform: rotate(360deg) translateX(10px) translateY(10px) scale(0.5);
    }
}

.wp-block-post-title {
     animation: sillyTitle 3s infinite alternate ease-in-out;   
}

@keyframes sillyTitle {
    10% {
        transform: translate(1px, 1px);
    }
    20% {
        transform: translate(1px, 1px);
    }
    25% {
        transform: translate(-1px, -1px);
    }
    30% {
        transform: translate(1px, 1px) rotate(1deg) scale(1);
    }
    40% {
        transform: rotate(-1deg) scale(0.95);
    }
    50% {
        transform: translate(-1px, -1px);
    }
    60% {
        transform: translate(1px, 1px);
    }
    70% {
        transform: translate(-1px, -1px);
    }
    80% {
        transform: translate(1px, 1px);
    }
    90% {
        transform: translate(-1px, -1px);
    }
}

.wp-block-navigation {
    animation: sillyMenu 20s infinite alternate ease-in-out;
}

@keyframes sillyMenu {
    25% {
        transform: rotate(-1deg) scale(1.02);
    }
    50% {
        transform: rotate(1deg) scale(0.98);
        filter: blur(30);
    }
    75% {
        transform: rotate(-1deg) scale(1.03);
    }
}

#p5-container canvas {
    width: 100% !important;
    max-height: 100% !important;
    display: block;
    margin-top: 20px;
    animation: canvasfx 6s ease-in-out infinite alternate;
    z-index: 9999;
    pointer-events: auto;
    position: relative;
}
       
#visualizer-mode, #playback-mode {
    margin: 10px 0;
    padding: 6px 12px;
    font-size: 14px;
}

@keyframes canvasfx {
    from {
        filter: drop-shadow(0 0 12px rgba(255,255,255,0.3));
    } to {
        filter: drop-shadow(0 0 14px rgba(255,255,255,0.4));
    }
}

.modecontrol {
    display: flex;
    flex-flow: wrap;
    align-items: space-evenly;
    justify-content: space-evenly;
    margin-top: 20px;
    padding: 10px;
    border: 2px solid silver;
}

.playback-title {
    text-align: center;
}

#main-audio {
    text-align: center;
    margin: 0 auto;
}

.audio-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.modepadding {
    margin-top: 5px;
    align-self: center;
    justify-content: center;
}

#p5-container:fullscreen canvas {
    width: 100vw !important;
    height: 100vh !important;
    display: block;
}

#fullscreen-btn {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

#fullscreen-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#fullscreen-btn:hover::after {
    opacity: 1;
}


#visualizer-container:fullscreen #fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}

#visualizer-container:fullscreen #fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#reset-btn {
    margin-left: 10px;
    padding: 8px 12px;
    background: #eee;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#reset-btn:hover {
    background: #ddd;
}


.logo-wrapper {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.squifflogo {
    display: block;
    width: auto;
    height: auto;
    z-index: 1;
    position: relative;
    animation: pulse 10s ease-in-out infinite;
}

.weirdlogo {
    display: inline-block;
    width: auto;
    height: auto;
    z-index: 1;
    position: relative;
    transition: transform 0.1s ease;
}

.rainbow-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        90deg,
        red, orange, yellow, green, cyan, blue, violet, red
    );
    background-size: 200% 100%; /* allow the gradient to move */
    mix-blend-mode: multiply;
    opacity: 0.8;
    animation: shiftHue 6s linear infinite alternate running;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit; /* match any logo rounding */
}

@keyframes shiftHue {
    0%   { background-position: 0% 0%; }
    100% { background-position: -100% 0%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.95; }
}

.weirdlogo:hover {
    animation: shake 0.2s infinite;
}

@keyframes shake {
    0%   { transform: translate(1px, 1px) rotate(0deg); }
    10%  { transform: translate(-1px, -2px) rotate(-1deg); }
    20%  { transform: translate(-3px, 0px) rotate(1deg); }
    30%  { transform: translate(3px, 2px) rotate(0deg); }
    40%  { transform: translate(1px, -1px) rotate(1deg); }
    50%  { transform: translate(-1px, 2px) rotate(-1deg); }
    60%  { transform: translate(-3px, 1px) rotate(0deg); }
    70%  { transform: translate(3px, 1px) rotate(-1deg); }
    80%  { transform: translate(-1px, -1px) rotate(1deg); }
    90%  { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.psychedelic-shadow {
    display: block;
    padding: 5px;
    transition: box-shadow 3s ease-in-out;
}

.psychedelic-shadow:hover {
    animation: trippyGlow 6s ease-in-out infinite alternate running;
}

@keyframes trippyGlow {
  0% {
    box-shadow:
      0 0 10px red,
      0 0 20px orange,
      0 0 30px yellow;
  }
  50% {
    box-shadow:
      0 0 40px green,
      0 0 50px blue,
      0 0 60px indigo;
  }
  100% {
    box-shadow:
      0 0 70px violet,
      0 0 60px blue,
      0 0 50px green;
  }
}

.audio-player-container {
    text-align: center;
    margin: 20px auto;
}

.now-playing {
    margin-bottom: 10px;
    font-weight: bold;
}

.player-controls {
    border: 2px solid silver;
    padding: 10px;
}

.playback-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

select, button {
    padding: 5px 10px;
    font-size: 16px;
}

.control-buttons button {
    min-width: 80px;
}

.player-message {
    font-weight: bold;
    margin-top: 5px;
    height: 20px;
    transition: opacity 0.5s, color 0.5s;
    opacity: 0;
    animation: squlse 1s infinite;
}

@keyframes squlse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    position: relative;
}

/*.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #4caf50; 
    border-radius: 5px;
    transition: width 0.1s ease-in-out;
}*/


#tooltip-time {
  position: absolute;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  color: #0ff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8em;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}


#tooltip-caret {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid black;
}

@keyframes flashDropdown {
    0% { background-color: #ffffcc; }
    100% { background-color: inherit; }
}

.flash-dropdown {
    animation: flashDropdown 0.6s ease;
}

@keyframes highlightNowPlaying {
    0% { color: #0f0; }
    100% { color: inherit; }
}

.highlight-now-playing {
    animation: highlightNowPlaying 1s ease;
}

#mute-button {
    border: none;
    background: none;
    font-size: 1.2em;
    cursor: pointer;
    vertical-align: middle;
    padding: 0 4px;
}


.volume-buttons {
    display: flex;
    align-self: center;
}

.volume-slider-container {
  position: relative;
  width: 140px;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #00f0ff 100%, #000 0%);
  outline: none;
  margin: 0;
  padding: 0;
}

/* WebKit thumb (Chrome, Safari) */
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00f0ff;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 5px #00f0ff;
  margin-top: -4px; /* Center vertically */
}

/* Firefox thumb */
#volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00f0ff;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 5px #00f0ff;
}

/* Firefox track */
#volume-slider::-moz-range-track {
  height: 6px;
  background: #000;
  border-radius: 3px;
}


#volume-tooltip {
  position: absolute;
  top: -30px;
  left: 0;
  transform: translateX(-50%);
  padding: 2px 6px;
  background: #333;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.control-buttons {
    background: #AAA;
}

/*.play-buttons {
    background-color: black;
    color: white;
    border: none;
    font-size: 1.5em;
    padding: 0.5em 0.7em;
    margin: 0.2em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}*/

.play-buttons:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.play-buttons:hover:not(:disabled) {
    background-color: #222;
}

/* NEW DESIGN */

.audio-player-container {
  background: linear-gradient(145deg, #2b2e33, #1c1e22);
  border: 2px solid #4f5b62;
  border-radius: 20px;
  padding: 20px;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.05), inset 0 0 10px rgba(255, 255, 255, 0.1);
  font-family: 'Segoe UI', sans-serif;
  color: #eee;
}

#now-playing {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.player-controls, .modecontrol {
  margin-top: 20px;
}

select, button, input[type="range"] {
  background: #111;
  border: 1px solid #444;
  color: #0ff;
  padding: 6px 10px;
  margin: 5px;
  border-radius: 8px;
  font-size: 0.95em;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 10px rgba(0,255,255,0.1);
}

select:focus, button:focus, input[type="range"]:focus {
  outline: none;
  box-shadow: 0 0 12px rgba(0,255,255,0.6);
}

.play-buttons, #mute-button, #fullscreen-btn, #reset-btn {
  background: #0ff;
  color: #111;
  border: none;
  border-radius: 50%;
  padding: 10px;
  margin: 0 5px;
  font-size: 1.1em;
  box-shadow: 0 0 15px #0ff;
  transition: 0.3s ease;
}

.play-buttons:hover, #mute-button:hover, #fullscreen-btn:hover, #reset-btn:hover {
  box-shadow: 0 0 25px #0ff, 0 0 40px #0ff;
  transform: scale(1.1);
}

.volume-buttons input[type="range"] {
  width: 100px;
  accent-color: #0ff;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, #0ff, #09f);
  width: 0%;
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px #0ff;
  margin-top: 20px;
}


#audio-wrapper {
  margin-top: 15px;
}
