@font-face {
    font-family: "classic-comic";
    src: url("/assets/fonts/Classic Comic.otf");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "classic-comic-bold";
    src: url("/assets/fonts/Classic Comic Bold.otf");
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: "patrick-hand";
    src: url("/assets/fonts/PatrickHandSC-Regular.ttf");
}
@font-face {
    font-family: "pangolin";
    src: url("/assets/fonts/Pangolin-Regular.ttf");
}

/* main page, default layout and style */
body {
    font-family: "pangolin";
    color: #8C2E00;
    font-size: 1.1rem;
    background-color: #0e72b8;
}
body.is-base {
    background-image: url('/assets/images/kudohweb-background.webp'), url('/assets/images/bubbles-background.webp');
    background-repeat: no-repeat, repeat;
    background-position-x: center, left;
    background-size: 100% initial;
    background-color: #0e72b8;
}
body.is-comic-page {
    background-color: white;
}
body.is-halloween-comic{
    background-color:#16293A !important;
}
hr{
    border:none;
    border-top: 2px solid #8C2E00;
    margin: 20px 0;
}
h1, h2, h3, h4{
    font-family: "classic-comic";
}
h1{font-size: 2.2rem;}h2{font-size: 1.8rem;}h3{font-size: 1.4rem;}
h4, h5{
    margin-top: 0;
    margin-bottom: 0;
}
.root-container{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    margin: auto;
}
.dyk-container-flex {
    margin-top: 150px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
}
.logo {
    position: relative;
    top: -8.7em;
    left: 5em;
    overflow: visible;
    height: 1px;
    width: 1px;
    z-index: 1;
    padding:0;
    margin:0;
}
.logo-img{
    height:9.5em;
}
.zip-element {
    height: 200px;
    width: 200px;
    position: relative;
    top: -240%;
    left: -7%;
}
.ring-img{
    width: 250px;
    height: 250px;
}
.orangeleaves{
    position:absolute;
    height: 150px;
    width:auto;
    left:0;
    bottom:0;
    transform:translate(-100px,-30px);
    z-index:-5;
}
.mainbox-style {
    background: linear-gradient(
    to bottom,
    #FF9600,
    #F6B41C 50%,
    #F6B41C 75%,
    #F6B41C 75%
    );
    border: 10px solid #F14F00;
    border-radius: 30px;
    box-shadow: inset -0.2em 0.5em 0.2em #F7B41B, inset 0.2em -1em 0.1em #FF9600;
    min-height:100%;
    max-height:100%;
    position:relative;
}
.main-content-style img{
    width: 100%;
    max-width: 300px;
    height:auto;
    display:block;
    margin:20px auto;
}
.tab-style {
    height: 40px;
    border-bottom: 5px solid #F14F00;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    background-color: #FF9600;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: inset -0.2em 0.5em 0.2em #F7B41B, inset 0 -1em 0.2em #FF9600;
}
.tab-buttons{
    margin-left: -7%;
}
.tab-button-style{
    text-decoration: none;
    color: inherit;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background-color: #DDCB73;
    font-family: "classic-comic-bold";
    font-size: 1.2em;
    text-align: center;
    color: #8C2E00;
    padding: 3px;
    height: 33px;
    min-width: 1em;
    width: clamp(1em, 120px, 7em);
    border: none;
    outline: 3px solid #F14F00;
    box-shadow: inset -0.2em 0 #F6B51C, inset 0.2em 0 #F6B51C, inset 0 -0.5em 0.2em #F6B51C, inset 0 -1em 0.2em #FF9600;
}
.tab-button-style:hover{
    background-color:#F6B51C;
    box-shadow: inset 0 0.7em 0.3em #DDCB73, inset -0.2em 0 #F6B51C, inset 0.2em 0 #F6B51C, inset 0 -0.5em 0.2em #F6B51C, inset 4em 4em 0.2em #FF9600;
}
.tab-button-style:active{
    background-color: #FF9600;
    box-shadow: inset -0.2em 0 #F6B51C, inset 0.2em 0 #F6B51C, inset 0 -0.5em 0.2em #F6B51C, inset 0 -1em 0.2em #DDCB73;
}
.main-content-style{
    padding: 4em 6%;
    overflow:visible;
    border-radius: 0px 0px 15px 15px;
    position:relative;
}
body.is-home-page .main-content-style{
    padding-top: 40px;
    padding-left:35px;
    padding-right:35px;
    padding-bottom:20px;
}
.main-content-style img.bleep-nailed-home{
    position:absolute;
    margin:0;
    bottom:0;
    right:0;
    transform: translate(140px, 180px);
    z-index:5;
}
.underZip-shield{
    float: left;
    width: 140px;
    height: 105px;
    background:transparent;
    margin-right: -9%;
    margin-bottom: -4em;
}
iframe{
    border: none;
}
.float-element{
    float: right;
    margin-top: 0.7em;
    margin-right: 2em;
    align-content:center;
    text-align:center;
    position: relative;
    z-index:2;
}
.counter-style img{
    max-height:40px;
    width: auto;
    margin:0;
    margin-top:10px;
    text-align:center;
    display:inline-block;
}
.note-box{
    background-color:#DDCB73;
    border:5px solid #F14F00;
    border-radius: 10px;
    display: inline-block;
    padding:0.6em;
}
.main-content-style .whoami-img{
    max-height: 100px;
    margin:0.5em 0 0.5em 0;
    width:auto;
    display: inline;
}
.sideboxes{
    margin: 15px;
    max-width: 13%;
}
.didyouknow-style{
    font-family: "classic-comic-bold";
    font-size: 1.3rem;
    color: #F6B41C;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 3px 3px #F14F00;
    transform:translateY(-10px);
}
.sidebox-style{
    background-color: #D0CF00;
    margin: 15px 0px 50px 0px;
    padding: 0.6em;
    color: #577032;
    border: 0.6em solid #577032;
    border-image-slice: 27 27 27 27;
    border-image-width: 40px 40px 40px 40px;
    border-image-outset: 2.2em;
    border-image-repeat: round round;
    border-image-source: url("assets/images/leafborders.webp");
    border-style: solid;
    overflow:hidden;
}
.sidebox-style video {
    width:100%;
    height:100%;
    object-fit:cover;
}
.bottom-container-grid{
    margin-top: 1em;
    display: grid;
    grid-template-rows: 400px 400px;
    grid-template-columns: minmax(0, 1fr) 1fr 1fr;
    gap: 1em;
    grid-template-areas:
    "gridbox-1 gridbox-2 gridbox-3"
    "gridbox-4 gridbox-2 .";
    max-width: 100%;
}
.bottom-flex-container{
    margin-top: 1em;
    display:flex;
    gap: 1em;
    max-width:100%;
}
.flex-column{
    display:flex;
    flex-direction:column;
    gap: 1em;
}
.content-style {
    background: linear-gradient(
        to bottom,
        #FF9600,
        #F6B41C 50%,
        #F6B41C 75%,
        #F6B41C 75%
    );
    border: 10px solid #F14F00;
    border-radius: 30px;
    box-shadow: inset -0.2em 0.5em 0.2em #F7B41B, inset 0.2em -1em 0.1em #FF9600;
    padding: 0.6em;
    align-content: center;
    text-align: center;
    min-width: 0 !important;
    
    /* Layout containment fixes */
    box-sizing: border-box; 
    overflow: auto;
    width: 100%;
}
.image-of-the-day{
    border: 1em ridge brown;
    max-height: 80%;
    height: auto;
    max-width: 80%;
    width: 350px;
    object-fit: contain;
}
.gridbox-2{
    grid-area: gridbox-2;
    height:100%;
    width:100%;
    display:flex;
    flex-direction:column;
    flex: 1;
}
.friend-link{
    text-decoration: none;
}

/* Comic page CSS */
.comic-flex{
    display:flex;
    flex-direction:column;
    text-align:center;
    align-content:center;
    justify-content:center;
}
.comic-page{
    height:1620px;
    text-align:center;
    align-content:center;
    justify-content:center;
}
.comic-header{
    font-family:"classic-comic-bold";
    color:black;
}
.comic-text{
    color:black;
}
.comic-link{
    text-align:left;
}

/*hammer time css*/
#game-toggle-btn{
    padding:0;
    border: 5px solid #F14F00;
    border-radius: 10px;
}
#game-toggle-btn:hover{
    cursor: pointer;
}
#game-toggle-btn img{
    display:block;
}
#hammer-time-ui{
    position:fixed;
    left:50%;
    bottom:0;
    width:auto;
    text-align:center;
    align-items:center;
    display:flex;
    flex-direction:column;
    visibility: hidden;
    pointer-events:none;
    transform: translateX(-50%);
}
#health-bar-container{
    width: 150px;
    height: 15px;
    background: #8C2E00;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #FF9600;
}
#health-bar-fill{
    width:100%;
    height:100%;
    background: limegreen;
    transition: width 0.1s linear;
}
.sett-object{
    position: fixed;
    width:90px;
    height:90px;
    background-size:contain;
    z-index: 100;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top var(--move-speed) linear, left var(--move-speed) linear, opacity 0.3s ease;
    cursor:inherit;
}
.sett-object.alive{
    background-image: url(assets/images/smash-sett.gif);
    image-rendering: pixelated; 
    image-rendering: crisp-edges;
}
.sett-object.dead{
    background-image: url(assets/images/smashed-sett.webp);
    image-rendering: pixelated; 
    image-rendering: crisp-edges;
}
.sett-object.fade-out{
    opacity: 0;
}

/* custom cursors for hammer time*/
body.game-active-cursor,
body.game-active-cursor * {
  cursor: none !important;
}
#custom-fake-cursor {
  position: fixed;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 99999999;
  display: none;
  background-size: cover;
  transform: translate(0%, -50%);
}
#custom-fake-cursor.idle {
  background-image: url('assets/images/hammer-pointer.webp');
}
#custom-fake-cursor.clicking {
  background-image: url('assets/images/hammer-pointer-click.webp');
}
.iframe-shield {
  position: absolute;
  z-index: 99;
  background: transparent;
}
#score-popup{
    position:fixed;
    top:150%;
    left:50%;
    width:35%;
    text-align:center;
    transition: top 0.8s ease-out;
    transform: translate(-50%,-50%);
    -webkit-user-select: none;
    user-select: none;
    z-index:99;
}
#score-popup.show{
    top:50%;
}
#scorePopup-content{
    /*makes /n tags readable by css */
    white-space:pre-line;

    padding:15px;
}
.scorePopup-flex{
    display: flex;
    gap: 0.5em;
    margin-top: 15px;
}
.scorePopup-leaderboard{
    background:#DDCB73;
    border: 10px solid #F14F00;
    border-radius: 30px;
    padding: 0.6em;
    align-content:center;
    text-align:center;
}


.micro-blurb{
    font-family:classic-comic; 
    font-size:0.4em;
}
.small-blurb{
    font-size: 0.6em;
}
.highlight{
    color:#F14F00;
}
.blog-list-item:not(:last-child) {
    border-bottom: 2px solid #8C2E00;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* gallery */
.gallery-section{
    margin-bottom: 40px;
}
.gallery-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.gallery-item{
    display:block;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border: 3px solid #8C2E00;
    border-radius: 4px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.gallery-item:hover{
    transform: scale(1.05);
    cursor: pointer;
    box-shadow: 4px 4px 3px #F58307;
}
.gallery-thumb{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0px !important;
    object-fit: cover;
    object-position: center;
}
.heading-bar{
    width:100%;
    background:#DDCB73;
    padding: 0.4rem;
    border:#F14F00 solid 5px;
    border-radius:20px;
    box-shadow: -15px 15px 24px -14px #EA7500, inset -0.2em 0 #F6B51C, inset 0.2em 0 #F6B51C, inset 0 -0.5em 0.2em #F6B51C, inset 0 -1em 0.2em #FF9600;
}

/* lightbox */
.lightbox-overlay{
    display: none;
    position:fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}
.lightbox-content{
    display:flex;
    flex-direction: column;
    align-items:center;
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    max-width:85%;
    max-height:85%;
    text-align: center;
    color: #F6B41C;
}
.lightbox-content img{
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    align-self:center;
    border: 3px solid #8C2E00;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.7);
    background-color: #111;
}
.lightbox-close{
    position:absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}
.lightbox-close:hover{
    color: #F14F00;
}
#lightbox-caption {
    white-space: pre-line;
    max-width:800px;
    font-size:1.3rem;
}

/*stamps marquee*/
.stamps-marquee{
    display: flex;
    width: max-content;
    animation: marquee-scroll 15s linear infinite;
}
.stamp-loop {
    display: flex;
    gap: 5px;
    padding-right: 5px;
    align-items: center;
}
.stamp-loop img {
    height: 50px !important;
    max-height: 50px;
    width: auto !important;
    max-width: fit-content;
    flex-shrink: 0;
}
@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}
.content-style:hover .stamps-marquee {
    animation-play-state: paused;
}
main, .your-main-content-class {
    min-width: 0;
}

/* index page */
.index-page-container{
    width:fit-content;
    max-width:700px;
    height:fit-content;
    position:fixed;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    display:flex;
    flex-direction: column;
    text-align: center;
}
.index-buttons{
    display:flex;
    flex-direction:row;
    justify-content: space-around;
}
.index-button{
    width: 220px;
    height: 220px;
    position: relative;
}
.index-button img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}
.index-button:hover .index-button-img img{
    transform: scale(1.2);
    cursor: pointer;
}
.index-button:hover .index-button-text{
    transform: scale(1.2);
    transform:translateY(15px);
}
.index-bottom-buttons{
    max-width:700px;
    margin-top:10px;
    display:flex;
    gap:5px;
    flex-wrap: wrap;
    justify-content:center;
}
.index-bottom-buttons img{
    height: 31px;
    max-height: 31px;
    width:auto;
}

/* music player */
.music-player{
    position:fixed;
    bottom:0;
    right:0;
    z-index:20;
    display:flex;
    flex-direction:row;
}
.hidden {
    display: none !important;
}
.track-info {
    overflow:hidden;
    position: relative;
    width: 280px;
    height:20px;
    cursor:pointer;
    background: #F7B41B;
    padding:5px;
    border: #F14F00 solid 3px;
    border-radius:5px;
    background: linear-gradient(
        to bottom,
        #FF9600,
        #F6B41C 50%,
        #F6B41C 75%,
        #F6B41C 75%
    );
    margin-bottom:2px;
}
.marquee span {
    display: inline-block;
    padding-left:100%;
    animation:marquee 10s linear infinite;
    white-space: nowrap;
}
@keyframes marquee {
    0% {transform:translateX(0);}
    100% {transform:translateX(-100%);}
}
.playlist-modal {
    position: absolute;
    bottom:100%;
    right:0;
    background:#ddcb73;
    border: 3px solid #F14F00;
    border-radius:6px 6px 0 0;
    padding:0;
    z-index:10;
    max-height:300px;
    max-width:270px;
    overflow-y:auto;
    margin:0;
    padding:10px;
    padding-bottom:2px;
    transform:translateY(3px);
}
.playlist-modal ul {list-style:none; padding:0; margin:0;}
.playlist-modal li {cursor:pointer; padding:5px 0;}
.playlist-modal li:hover {color:darkblue}
.playlist-modal li:not(:last-child){border-bottom:#8C2E00 2px dotted;}
.music-player .controls button{
    padding:0;
    background:none;
    border:#F14F00 solid 3px;
    border-radius:9px;
    cursor: pointer;
    height:28px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.music-player .controls button:hover{
    transform: scale(1.1);
    cursor: pointer;
}
#volume-slider{
    appearance:none;
    background:none;
}
#volume-slider::-webkit-slider-runnable-track{
    width:100%;
    height:8px;
    background:#F6B51C;
    margin-top:-4px;
    border: 3px solid #F14F00;
    border-radius:5px;
}
#volume-slider::-moz-range-track{
    width:100%;
    height:8px;
    background:#F6B51C;
    margin-top:-4px;
    border: 3px solid #F14F00;
    border-radius:5px;
}
#volume-slider::-webkit-slider-thumb{
    appearance:none;
    height:16px;
    width:16px;
    border:3px solid white;
    border-radius:50%;
    background:#F14F00;
    cursor:pointer;
    margin-top:-4px;
}
#volume-slider::-moz-range-thumb{
    appearance:none;
    height:16px;
    width:16px;
    border:3px solid #ddcb73;
    border-radius:50%;
    background:#F14F00;
    cursor:pointer;
    margin-top:-4px;
}
#volume-slider::-moz-range-progress{
    height:8px;
    background:#F14F00;
}

/* update log */
.update-log{
    max-height:200px;
    max-width:280px;
    margin-top:10px;
    display:flex;
    flex-direction: column;
}
.update-log .note-box{
    text-align:left;
}
.note-box .update-content{
    margin-top:5px;
    margin-bottom:5px;
}
.note-box .update-date{
    display:inline-block;
    width:100%;
    border-bottom:#8C2E00 2px dotted;
}
.jerma-fishy{
    max-width:189px;
    align-self:center;
}

.pampampam-element{
    display:block;
    width:20px;
    height:20px;
    position: absolute;
    left: -70px;
    top:500px;
    z-index:5;
}