@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


body {
    margin: 0;
    min-height: 100vh;

    background-image: url('../assets/fundojogosimon3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

img{

    
    width:350px ;
    height: 250px;
    position: relative;
    left: 500px;
  

}

h1 {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    color: white;
}


.top-bar {
    padding: 20px 30px 0;
}

.top-bar__group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.header-button,
.music-toggle {
    font-family: 'Press Start 2P', cursive;
    border-radius: 5px;
    padding: 10px 14px;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    min-width: 52px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

.info-button {
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    color: white;
}

.music-toggle {
    background: linear-gradient(135deg, #ffca28, #ff9800);
    color: #1a1a1a;
}

.record-button {
    background: linear-gradient(135deg, #ffd54f, #fbc02d);
    color: #1a1a1a;
}

.header-button:hover,
.music-toggle:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.music-toggle.is-playing {
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: white;
}

.start-button {
    font-family: 'Press Start 2P', cursive;
    border-radius: 5px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    position: relative;
    top: 50px;
    left: 223px;
    cursor: pointer;
}

.game-footer {
    width: min(900px, calc(100% - 32px));
    margin: 150px auto 18px;
    padding: 16px 20px 14px;
    background: rgba(10, 17, 29, 0.18);
    border: 1px solid rgba(160, 180, 210, 0.18);
    border-radius: 12px;
    color: #dfeafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    box-shadow: none;
}

.game-footer__top,
.game-footer__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.game-footer__top {
    margin-bottom: 8px;
}

.game-footer__developer,
.game-footer__copyright,
.game-footer__rights {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(223, 234, 252, 0.88);
}

.game-footer__meta {
    margin: 8px 0 10px;
}

.game-footer__meta a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.7rem;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.game-footer__meta a:hover {
    opacity: 1;
    color: #8edbff;
}

.game-footer__rights {
    font-size: 0.66rem;
    color: rgba(223, 234, 252, 0.72);
}

body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 9, 17, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 999;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.info-modal {
    position: relative;
    width: min(720px, 100%);
    max-height: 82vh;
    overflow-y: auto;
    background: rgba(10, 17, 29, 0.94);
    border: 1px solid rgba(132, 187, 255, 0.35);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    padding: 28px 26px 24px;
    color: #edf5ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.25s ease;
}

.modal-overlay.is-open .info-modal {
    transform: translateY(0) scale(1);
}

.info-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.info-modal__close:hover {
    background: rgba(138, 211, 255, 0.12);
    transform: scale(1.05);
}

.info-modal h2 {
    margin: 0 0 18px;
    padding-right: 30px;
    font-family: 'Press Start 2P', cursive;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.record-modal {
    position: relative;
    width: min(420px, 100%);
    background: rgba(10, 17, 29, 0.94);
    border: 1px solid rgba(255, 211, 92, 0.4);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    padding: 28px 26px 24px;
    color: #edf5ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.25s ease;
}

.modal-overlay.is-open .record-modal {
    transform: translateY(0) scale(1);
}

.record-modal h2 {
    margin: 0 0 18px;
    padding-right: 30px;
    font-family: 'Press Start 2P', cursive;
    color: #ffd54f;
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: center;
}

.record-modal__content {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(237, 245, 255, 0.95);
}

.record-score {
    margin: 0 0 10px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffd54f;
    text-shadow: 0 0 12px rgba(255, 213, 79, 0.4);
}

.record-message {
    margin: 0;
    color: rgba(237, 245, 255, 0.9);
}

.info-modal__content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(237, 245, 255, 0.95);
}

.info-modal__content p,
.info-modal__content li {
    margin: 0 0 12px;
}

.info-modal__lead,
.info-modal__challenge {
    font-weight: 700;
    color: #8edbff;
}

.info-modal h3 {
    margin: 18px 0 8px;
    color: #dfeeff;
    font-size: 1.05rem;
}

.info-modal ol {
    margin: 0 0 12px 20px;
    padding: 0;
}

@media (max-width: 768px) {
    .info-modal {
        padding: 24px 18px 20px;
    }

    .info-modal h2 {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .info-modal__content {
        font-size: 0.9rem;
    }
}

/* =========================
   TABLET
   Até 1024px
   ========================= */

@media (max-width: 1024px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 260px;
  

}

    #iniciarjogo{
        position: relative;
        left: 40px;
    }

}




/* =========================
   CELULAR
   Até 768px
   ========================= */

@media (max-width: 653px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 198px;
  

}

    #iniciarjogo{
        left: -37px;
    }
}


/* =========================
   CELULAR PEQUENO
   Até 480px
   ========================= */

    @media (max-width: 540px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 118px;
  

}

    #iniciarjogo{
        left: -110px;
    }
}



   @media (max-width: 480px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 98px;
  

}

    #iniciarjogo{
        left: -120px;
    }
}





@media (max-width: 463px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 98px;
  

}

    #iniciarjogo{
        position: relative;
        left: -128px;
    }
}

@media (max-width: 453px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 98px;
  

}

    #iniciarjogo{
        position: relative;
        left: 118px;
    }
}


@media (max-width: 451px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 98px;
  

}

    #iniciarjogo{
        position: relative;
        left: 118px;
    }
}



/* =========================
   CELULAR MUITO PEQUENO
   Até 360px
   ========================= */

@media (max-width: 400px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 80px;
  

}

    #iniciarjogo{
        left: 104px;
    }

}


@media (max-width: 365px) {

    img{

    
    width:250px ;
    height: 150px;
    position: relative;
    left: 55px;
  

}

    #iniciarjogo{
        left: 77px;
    }

}