@font-face { font-family: 'Seven Segment'; src: url('/assets/fonts/Seven_Segment.ttf'); }

.align_center {
    text-align: center;
    padding: 0px;
}

.hide {
    display: none !important;
}

#main-menu {
    width: 100%;
    height: 512px;
    background: url('../images/game-menu.png');
    background-repeat: no-repeat;
    background-color: #2b2a3f;
}

#main-menu h1 {
    text-align: center;
    color: #FFF;
    font-family: 'Bebas Neue';
}

#main-menu .menu-actions {
    width: 30%;
    float: right;
    padding-top: 100px;
}

#main-menu .menu-actions button {
    width: 80%;
    display: inline;
    color: #FFF;
    border: 1px solid;
    border-color: black;
    border-radius: 100px 0px 0px 30px;
    margin-bottom: 2px;
}

#main-menu .menu-actions button#iniciar-jogo {
    background-color: rgb(51, 163, 51);
}

#main-menu .menu-actions button#iniciar-speedrun {
    background-color: rgb(190, 183, 85);
}

#main-menu .menu-actions button#open-ranking {
    background-color: #b36565
}

#main-menu .menu-actions button#password {
    background-color: rgb(50, 83, 148);
    text-decoration: line-through;
}

#scenary.background {
    background: url('../images/character/background/paulin_bg.png');
    width: 100%;
    height: 256px;
}

#scenary #main-view {
    width: 256px;
    height: 256px;
    margin: auto;
}

#scenary #main-view div {
    display: flex;
    position: absolute;
}

#game-actions div.row {
    margin: 0px;
    width: 100%;
}

#game-actions .coluna-up-1,
#game-actions .coluna-up-2,
#game-actions .coluna-up-3,
#game-actions .coluna-up-4 {
    border: 3px solid;
    border-radius: 5px;
}

#game-actions .coluna-up-1 {
    border-color: rgba(0, 211, 0, 0.1);
}

#game-actions .coluna-up-2 {
    border-color: rgba(132, 0, 255, 0.1);
}

#game-actions .coluna-up-3 {
    border-color: rgba(255, 0, 242, 0.1);
}

#game-actions .coluna-up-4 {
    border-color: rgba(255, 174, 0, 0.1);
}

#game-actions .card {
    width: 100%;
    display: inline-table;
    background-color: unset;
    border: none;
}

#game-actions .card .col-md-6 {
    display: table-cell;
}

#game-actions button {
    display: block;
    color: #FFF;
    border: none;
    border-radius: 8px;
    background: transparent;
    position: relative;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
    touch-action: manipulation;

    width: fit-content;
    margin: 10px auto auto auto;
}

#game-actions button .shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: hsl(0deg 0% 0% / 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

#game-actions button.main-action:focus-visible {
    outline:none;
}

#game-actions button.main-action .edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(
        to left,
        hsl(340deg 100% 16%) 0%,
        hsl(340deg 100% 32%) 8%,
        hsl(340deg 100% 32%) 92%,
        hsl(340deg 100% 16%) 100%
    );
}

#game-actions button.main-action .front {
    display: block;
    position: relative;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    background: hsl(345deg 100% 47%);
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

#game-actions button.store-action:focus-visible {
    outline:none;
}

#game-actions button.store-action .edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(
        to left,
        hsl(135deg 100% 16%) 0%,
        hsl(135deg 100% 32%) 8%,
        hsl(135deg 100% 32%) 92%,
        hsl(135deg 100% 16%) 100%
    );
}

#game-actions button.store-action .front {
    display: block;
    position: relative;
    padding: 10px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    background: hsl(135deg 100% 47%);
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

#game-actions button.store-action .front img{
    height: 30.4px;
}

#game-actions button.secondary-action .edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(
        to left,
        hsl(231deg 100% 16%) 0%,
        hsl(231deg 100% 32%) 8%,
        hsl(231deg, 100%, 32%) 92%,
        hsl(231deg 100% 16%) 100%
    );
}

#game-actions button.secondary-action .front {
    display: block;
    position: relative;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    background: hsl(231, 100%, 47%);
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

#game-actions button.unique-action .edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(
        to left,
        hsl(44deg, 100%, 32%) 8%,
        hsl(44deg 100% 16%) 0%,
        hsl(44deg, 100%, 32%) 92%,
        hsl(44deg 100% 16%) 100%
    );
}

#game-actions button.unique-action .front {
    display: block;
    position: relative;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: white;
    background: hsl(44deg, 100%, 47%);
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

#game-actions .upgrade-progress .progress-info {
    position: relative;
    z-index: 2;
    margin-bottom: -20px;
}

#game-actions .upgrade-progress .progress-bar {
    background-color: #50a5ff;
}

#game-actions .upgrade-progress .progress {
    margin: 0px 0px;
}

#game-actions .upgrade-description p {
    font-size: small;
    color: #282828;
    text-decoration: underline;
}

#game-actions button:hover {
    filter: brightness(110%);
}

#game-actions button:hover .front {
    transform: translateY(-6px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

#game-actions button:active .front {
    transform: translateY(-2px);
    transition: transform 34ms;
}

#game-actions button:hover .shadow {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

#game-actions button:active .shadow {
    transform: translateY(1px);
    transition: transform 34ms;
}

#game-actions button:focus:not(:focus-visible) {
    outline: none;
}

.overlay {
    position: absolute;
    margin:0 !important;
    padding: 0px 10px;
    width: 100%;
    z-index: 1;
    left: 0;
    top: 60px;
    margin: 5px;
}

.overlay .status {
    display: inline;
}

.overlay .status img {
    display: inline-block;
    width: 30px;
}

.overlay .status p {
    display: inline-block;
    color: #FFF;
    font-size: 28px;
    vertical-align: middle;
    margin: auto 5px;
}

#timer {
    color: #FFF;
    display: inline-flex;
    font-size: 30px;
    float: right;
    font-family: 'Seven Segment';
}

#timer p {
    width: 30px;
    text-align: center;
    text-shadow: #000 1px 0 10px;
}

#timer b {
    margin-top: -20px;
    font-weight: normal;
    font-size: 45px;
    text-shadow: #000 1px 0 10px;
}

#end-run {
    border: 2px solid #FFF;
    border-radius: 20px;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 1);
    margin: 10% 37%;
    padding: 10px;
    width: 500px;
    height: 200px;
    overflow: auto;
    overflow-y: hidden;
    z-index: 3;
}

#end-run .close-end-popup {
    position: absolute;
    right: 0px;
    top: 0px;
    color: #5c5c5c;
    margin: 10px 10px 0px 0px;
    font-family: cursive;
    cursor: pointer;
}

#end-run h5 {
    text-align: center;
}

#end-run p.resultado_run {
    text-align: center;
}

#ranking-modal {
    border: 2px solid #FFF;
    border-radius: 15px;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 1);
    margin: 10% 35%;
    padding: 10px;
    width: 500px;
    height: 400px;
    overflow: auto;
    z-index: 3;
    box-shadow: 0px 0px 15px 3px rgba(0,0,0,0.75);
}

#ranking-modal .close-ranking-popup {
    position: absolute;
    right: 0px;
    top: 0px;
    color: #5c5c5c;
    margin: 10px 10px 0px 0px;
    font-family: cursive;
    cursor: pointer;
}

#ranking-modal h5 {
    text-align: center;
}

#ranking-modal .ranking-subtitle {
    text-align: center;
    color: #5c5c5c;
}

#ranking-modal ol {
    padding-left: 30px;
}

#ranking-modal ol li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 3px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
}

#ranking-modal ol li .ranking-pos {
    color: #888;
    width: 40px;
}

#ranking-modal ol li .ranking-name {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ranking-modal ol li .ranking-time {
    font-family: 'Seven Segment';
    font-size: 24px;
    color: #2b2a3f;
}

#ranking-modal ol li.highlight {
    background-color: rgb(190, 183, 85);
    border-radius: 5px;
    font-weight: bold;
}

#ranking-modal ol li.sem-runs {
    display: block;
    border: none;
    color: #5c5c5c;
    text-align: center;
    font-size: 16px;
    padding: 20px 0px;
}

#loja {
    border: 2px solid #FFF;
    border-radius: 15px;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    background: rgba(255, 255, 255, 1);
    margin: 10% 32%;
    padding: 10px;
    width: 700px;
    height: 400px;
    overflow: auto;
    overflow-y: hidden;
    z-index: 3;
    box-shadow: 0px 0px 15px 3px rgba(0,0,0,0.75);
}

#loja .row {
    width: 100%;
    margin: 0px;
}

#loja .close-loja-popup {
    position: absolute;
    right: 0px;
    top: 0px;
    color: #5c5c5c;
    margin: 10px 10px 0px 0px;
    font-family: cursive;
    cursor: pointer;
}

#loja h5 {
    text-align: center;
}

#loja h5.categoria-loja {
    color: #3076cd;
    text-decoration: underline;
}

#loja img {
    height: 40px;
    margin: auto;
}

#loja button {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    width: 150px;
    padding: 2px 10px;
    background-color: rgb(179, 0, 39);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffff;
    gap: 10px;
    font-weight: bold;
    border: 3px solid #ffffff4d;
    outline: none;
    overflow: hidden;
    font-size: 15px;
    cursor: pointer;
    margin: auto;
}

#loja button:hover::before {
    animation: shine 1.5s ease-out infinite;
}

#loja button::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -100px;
    opacity: 0.6;
}

#loja .col-md-6.left,
#loja .col-md-6.right {
    padding: 0px
}

#loja .card-loja {
    height: 100%;
    border: 1px solid rgb(233, 233, 233);
    padding: 10px;
}

#loja .card-loja .col-md-6 {
    display: grid;
}

#loja .card-loja .card-title {
    font-weight: bold;
}

#loja .card-loja .card-description {
    font-size: small;
    color: #282828;
    text-decoration: underline;
    margin: 0px;
}

/* Animações */
#character.still {
    width: 256px;
    height: 256px;
    background: url('../images/character/static/paulin_still.png') 0px 0px;
    image-rendering: pixelated;
}

#character.work {
    width: 256px;
    height: 256px;
    background: url('../images/character/animations/paulin_work.png') 0px 0px;
    image-rendering: pixelated;
    animation: working 0.3s steps(2) infinite;
}

#character.still_spotify {
    width: 256px;
    height: 256px;
    background: url('../images/character/static/paulin_still_spotify.png') 0px 0px;
    image-rendering: pixelated;
}

#character.work_spotify {
    width: 256px;
    height: 256px;
    background: url('../images/character/animations/paulin_work_spotify.png') 0px 0px;
    image-rendering: pixelated;
    animation: working_spotify 2.0s steps(6) infinite;
}

/* .look {
    width: 256px;
    height: 256px;
    background: url('../images/character/animations/paulin_look.png') 0px 0px;
    image-rendering: pixelated;
    animation: looking 0.3s steps(2) infinite;
} */
/* fim animações */

/* mesas */
.mesa_branca {
    width: 256px;
    height: 256px;
    background: url('../images/character/table/mesa_branca.png') 0px 0px;
    image-rendering: pixelated;
}

.mesa_madeira {
    width: 256px;
    height: 256px;
    background: url('../images/character/table/mesa_madeira.png') 0px 0px;
    image-rendering: pixelated;
}

/* cadeiras */
.cadeira_azul {
    width: 256px;
    height: 256px;
    background: url('../images/character/chair/cadeira_azul.png') 0px 0px;
    image-rendering: pixelated;
}

.cadeira_verde {
    width: 256px;
    height: 256px;
    background: url('../images/character/chair/cadeira_verde.png') 0px 0px;
    image-rendering: pixelated;
}

/*compras da loja*/

.background_summer {
    width: 100%;
    height: 256px;
    background: url('../images/loja/summer_event/backgroundv2.png') 0px 0px;
    image-rendering: pixelated;
    animation: summer_bg 1.8s steps(4) infinite;
}

@keyframes summer_bg {
    from { background-position: 0px; }
    to { background-position: -4096px; }
}

.cursor_summer {
    cursor: url('../images/loja/summer_event/cursor/cursor.png'), auto;
}

.cursor_summer #game-actions button,
.cursor_summer #end-run .close-end-popup,
.cursor_summer #loja .close-loja-popup,
.cursor_summer #ranking-modal .close-ranking-popup,
.cursor_summer #loja button
 {
    cursor: url('../images/loja/summer_event/cursor/cursor-open.png'), auto;
}

#character.summer.still {
    width: 256px;
    height: 256px;
    background: url('../images/loja/summer_event/skin/paulin_still.png') 0px 0px;
    image-rendering: pixelated;
}

#character.summer.work {
    width: 256px;
    height: 256px;
    background: url('../images/loja/summer_event/skin/paulin_work.png') 0px 0px;
    image-rendering: pixelated;
    animation: summer_working 0.3s steps(2) infinite;
}

@keyframes summer_working {
    from { background-position: 0px; }
    to { background-position: -512px; }
}

#character.summer.still_spotify {
    width: 256px;
    height: 256px;
    background: url('../images/loja/summer_event/skin/paulin_still_spotify.png') 0px 0px;
    image-rendering: pixelated;
}

#character.summer.work_spotify {
    width: 256px;
    height: 256px;
    background: url('../images/loja/summer_event/skin/paulin_work_spotify.png') 0px 0px;
    image-rendering: pixelated;
    animation: summer_working_spotify 2.0s steps(6) infinite;
}

@keyframes summer_working_spotify {
    from { background-position: 0px; }
    to { background-position: -1536px; }
}

/*----*/

@keyframes working {
    from { background-position: 0px; }
    to { background-position: -512px; }
}

@keyframes working_spotify {
    from { background-position: 0px; }
    to { background-position: -1536px; }
}

@keyframes looking {
    from { background-position: 0px; }
    to { background-position: -512px; }
}

/*botao loja*/
@keyframes shine {
    0% {
      left: -100px;
    }
  
    60% {
      left: 100%;
    }
  
    to {
      left: 100%;
    }
}