/*
Theme Name:   Gaffyn Style
Theme URI:    https://gaffyninternetservices.co.uk/gaffynstyle/
Description:  Gaffyn Internet Services 2025 Child Theme
Author:       Gaffyn
Author URI:   https://gaffyninternetservices.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:  gaffyninternetservices
*/

.wp-block-post-title {
     animation: sillyTitle 3s infinite alternate ease-in-out;   
}


.gaffyn-site-title a{
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding: 0.1em 0.2em;
    background-image: linear-gradient(#ffe34c, #ffe34c);
    background-repeat: no-repeat;
    background-size: 100% 0%;
    background-position: bottom left;
    transition: background-size 1.0s ease-out;
    text-decoration: none;
}

.gaffyn-site-title a:hover {
    background-size: 100% 100%;
}

.gaffyn-site-tile a:hover,
.gaffyn-site-title a:active,
.gaffyn-site-title a:focus {
    text-decoration: none;
}

.gaffyn-site-tile a:hover {
    text-decoration: none;
}


@keyframes titleanim {
    25% {
        font-size: 2.2rem;
    }
    50% {
        font-size: 2.4rem;
    }
    75% {
        font-size: 2.5rem;
    }
    100% {
        font-size: 2rem;
    }
}

@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);
    }
}

.terminal-container {
    width: 100%;
    max-width: 600px; /* or full width */
    height: 300px;
    background: black;
    border: 2px solid #0f0;
    overflow: hidden;
    position: relative;
}

#binaryCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

#emoji-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

#emoji-button {
    padding: 10px 20px; 
    font-size: 20px; 
    cursor: pointer;
}
#prev-emoji,
#next-emoji {
    font-size: 24px;
}
        
.emoji-box {
    cursor: pointer;
    user-select: none;  /* prevent accidental selection */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    font-size: 70px;
    background: white;
    border: 2px solid #ccc;
}


#emoji-code {
    font-family: monospace;
    font-size: 18px;
}

#emoji-history {
    display: flex;
    gap: 5px;
    margin-top:10px;
}

.history-box {
    display: inline-flex;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin: 2px;
    border: 1px solid #ccc;
    font-size: 32px;
    position: relative;
    cursor: pointer;
    user-select: none;
    background-color: white;
    overflow: visible;
    line-height: 1;
}

.history-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: red;
    opacity: 0;
    transition: opacity 0.2s;
}

.history-box:hover::after {
    opacity: 0.1; 
}

#emoji-history .history-box::after {
    pointer-events: none;
}

#clear-history {
    font-size: 22px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px 10px;
    opacity: 0.7;
    transition: all .2s;
}

#clear-history:hover {
    opacity: 1.0;
    font-size: 30px;
}

/* Flash red animation */
.flash-red::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: red;
    opacity: 0.25; /* Slightly stronger than hover */
    animation: flash 0.25s ease-out;
    pointer-events: none;
}

@keyframes flash {
    0% { opacity: 0.25; }
    100% { opacity: 0; }
}

/* emoji-display needs position relative for ::after */
#emoji-display.flash-red,
.history-box.flash-red {
    position: relative;
}

#emoji-cube-btn {
    font-size: 34px;
    cursor: pointer;
    padding: 6px 10px;
    border: none;
    background: transparent;
    opacity: 0.3;
    filter: grayscale(1);
    transition: all 0.25s ease;
}

#emoji-cube-btn.ready {
    opacity: 1;
    filter: none;
    transform: scale(1.1);
}

#emoji-cube-btn.ready:hover {
    transform: scale(1.2);
}

/* cube flash (no overlay) */
#emoji-cube-btn.flash-red1 {
    background-color: rgba(255,0,0,0.5) !important;
    border-radius: 6px;
}

#emoji-cube-btn.flash-red1::after {
    content: none !important;
}

/* history box flash (overlay restricted to boxes only) */
.history-box.flash-red1 {
    position: relative;
    animation: flashRed 0.25s;
}

.history-box.flash-red1::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: red;
    opacity: 0.25;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes flashRed {
    0%   { background-color: rgba(255,0,0,0.6); }
    100% { background-color: white; }
}



#emoji-cube-container {
    width: 200px;
    height: 200px;
    margin-top: 20px;
    perspective: 600px;
    cursor: grab;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    font-size: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #ccc;
}

.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

