* {
    margin: 0;
    padding: 0;
}

body {
    box-sizing: border-box;
    min-height: 100vh;
    background-image: url("../images/marvelbg5.png");
    background-position: center;
    background-size: cover;
}

.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
}

.input-label {
    width: 240px;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    color: #fff;
    font-family: 'Orbitron', 'Muli', Arial, sans-serif;
    font-weight: 900;
    padding: 5px;
}

#input-name {
    background-color: transparent;
    color: #fff;
    font-weight: bold;
    width: 240px;
    height: 30px;
    border: 0;
    outline: 0;
    font-family: 'Orbitron', 'Muli', Arial, sans-serif;
    font-weight: 900;
    box-shadow: 0 0 12px 2px #ff4655, 0 2px 16px 0 #000;
    border-radius: 12px;
    padding-left: 12px;
    margin: 10px;
}

.p-name {
    text-align: left;
    width: 240px;
    color: #ff0000;
    padding: 1px;
    font-family: 'Orbitron', 'Muli', Arial, sans-serif;
    font-weight: 600;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s linear;
}

/* Main-Menu Btn */
.main-menu-btn {
    width: 240px;
    margin: 10px;
    padding: 0.8em 2em;
    border: none;
    outline: none;
    color: #fff;
    background: #0f1923;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Orbitron', 'Muli', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    overflow: hidden;
    transition: color 0.2s;
    box-shadow: 0 0 12px 2px #ff4655, 0 2px 16px 0 #000;
}

.main-menu-btn:before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(120deg, #ff4655, #0ff, #ff4655, #fff 80%);
    background-size: 200% 200%;
    z-index: -2;
    filter: blur(6px);
    opacity: 0.7;
    border-radius: 14px;
    animation: valorant-glow 2.5s linear infinite;
}

@keyframes valorant-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-menu-btn:after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0f1923;
    z-index: -1;
    border-radius: 12px;
    transition: background 0.3s;
}

.main-menu-btn:hover, .main-menu-btn:focus {
    color: #ff4655;
    box-shadow: 0 0 24px 4px #ff4655, 0 2px 24px 0 #000;
}

.main-menu-btn:hover:after, .main-menu-btn:focus:after {
    background: linear-gradient(90deg, #ff4655 0%, #0f1923 100%);
}
/* End */
/* Game Page */
.nav-bar {
    display: flex;
}

.back-to-menu, .back-to-level, .moves-display, .timer-display {
    width: auto;
}

.game-completion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    z-index: 2000;
    min-width: 300px;
}

table {
    color: #fff;
}

tr {
    padding: 10px 0;
    display: flex;
    border-top: 1px solid #fff;
}

tr:first-child {
    border-top: 0
}

th, td {
    width: 100px;
    text-align: center;
    font-size: 20px;
}

/* End */
/* Modal */
.about-content {
    background: #0f1923;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Orbitron', 'Muli', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 0 12px 2px #ff4655, 0 2px 16px 0 #000;
    position: relative;
    overflow: hidden;
    white-space: pre-line;
}

.about-content h3 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: #ff4655;
}

.about-content p {
    margin-bottom: 20px;
}
/* End */

/* H1,H2 */

h1{
    font-size: 4rem;
    margin-bottom: 100px;

}

h1, h2, h5 {
    color: #da1425;
    text-shadow: 0 2px 12px #000, 0 0 2px #fff;
    font-family: 'Orbitron', 'Muli', Arial, sans-serif;
    letter-spacing: 4px;
    margin-bottom: 0.2em;
    text-align: center;
}
h2, h5 {
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 50px;
    font-size: 2rem;
}

h5 {
    font-size: 1rem;
}
.main-menu-btn.first-bg  > img ,.main-menu-btn.second-bg  > img,.main-menu-btn.third-bg  > img{
    /* object-fit: contain; */
    width: 100%;
    height: 100%;
    border-radius: 20px;

}
.main-menu-btn.first-bg ,.main-menu-btn.second-bg ,.main-menu-btn.third-bg{
    height: 60px;
    padding: 0;
    background-color: transparent !important;
    position: relative;
    z-index: 999;
    color: white;
}

.main-menu-btn.first-bg::before ,.main-menu-btn.second-bg::before ,.main-menu-btn.third-bg::before { 
    background: transparent !important;
}
.main-menu-btn.first-bg::after , .main-menu-btn.second-bg::after , .main-menu-btn.third-bg::after  { 
    background-color: transparent !important;}

/* sounds styles */
.sound-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.sound-controls {
    background: #0f1923;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Orbitron', 'Muli', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 0 12px 2px #ff4655, 0 2px 16px 0 #000;
    position: relative;
    overflow: hidden;
}

.sound-controls:before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(120deg, #ff4655, #0ff, #ff4655, #fff 80%);
    background-size: 200% 200%;
    z-index: -2;
    filter: blur(6px);
    opacity: 0.7;
    border-radius: 14px;
    animation: valorant-glow 2.5s linear infinite;
}

.sound-controls:after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0f1923;
    z-index: -1;
    border-radius: 12px;
    transition: background 0.3s;
}

/* Optional: Make headings and labels inside .sound-controls match the style */
.sound-controls h3,
.sound-controls label,
.sound-controls span {
    color: #fff;
    font-family: inherit;
    font-weight: 900;
    letter-spacing: 2px;
}

.sound-controls h3 {
    margin-bottom: 20px;
}

.sound-controls label {
    display: block;
    margin-bottom: 10px;
    
}
.sound-controls label>span{
    display: inline-block;
    transform: translateY(-3px);
}

/* Style the volume slider */
#volume-control {
    width: 70%;
    accent-color: rgb(0, 0, 255);
}

/* Custom range slider for sound controls */
.sound-controls #volume-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 200px;
    background: transparent;
    margin: 20px 0;
}
.sound-controls #volume-control:focus {
    outline-color: #f8b195;
}

/* Webkit track */
.sound-controls #volume-control::-webkit-slider-runnable-track {
    height: 3px;
    background: linear-gradient(
        to right,
        rgba(246, 114, 128, 1) 0%,
        rgba(192, 108, 132, 1) 50%,
        rgba(53, 92, 125, 1) 100%
    );
    border-radius: 2px;
}
.sound-controls #volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid #f8b195;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    background: #222 url("http://codemenatalie.com/wp-content/uploads/2019/09/slider-thumb.png") center no-repeat;
    background-size: 50%;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
    cursor: grab;
    margin-top: -8.5px; /* Center thumb on track */
    transition: border 0.2s;
}
.sound-controls #volume-control:active::-webkit-slider-thumb {
    cursor: grabbing;
}

/* Firefox track */
.sound-controls #volume-control::-moz-range-track {
    height: 3px;
    background: linear-gradient(
        to right,
        rgba(246, 114, 128, 1) 0%,
        rgba(192, 108, 132, 1) 50%,
        rgba(53, 92, 125, 1) 100%
    );
    border-radius: 2px;
}
.sound-controls #volume-control::-moz-range-thumb {
    border: 2px solid #f8b195;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    background: #222 url("http://codemenatalie.com/wp-content/uploads/2019/09/slider-thumb.png") center no-repeat;
    background-size: 50%;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
    cursor: grab;
    transition: border 0.2s;
}
.sound-controls #volume-control:active::-moz-range-thumb {
    cursor: grabbing;
}

/* IE/Edge track */
.sound-controls #volume-control::-ms-fill-lower,
.sound-controls #volume-control::-ms-fill-upper {
    background: linear-gradient(
        to right,
        rgba(246, 114, 128, 1) 0%,
        rgba(192, 108, 132, 1) 50%,
        rgba(53, 92, 125, 1) 100%
    );
    border-radius: 2px;
}
.sound-controls #volume-control::-ms-thumb {
    border: 2px solid #f8b195;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    background: #222 url("http://codemenatalie.com/wp-content/uploads/2019/09/slider-thumb.png") center no-repeat;
    background-size: 50%;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.4);
    cursor: grab;
    transition: border 0.2s;
}
.sound-controls #volume-control:active::-ms-thumb {
    cursor: grabbing;
}

/* Remove default styles for IE */
.sound-controls #volume-control::-ms-tooltip {
    display: none;
}

/* General track style for all browsers */
.sound-controls #volume-control {
    outline: none;
    height: 20px;
    /* Remove accent-color if present */
    accent-color: unset;
}

.sound-controls button{
    width: 200px;
    margin: 10px;
    padding: 0.6em 2em;
    border: none;
    outline: none;
    color: rgb(255, 255, 255);
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    font-size: 18px;
    font-weight: bold;
}

.sound-controls button:before {
    content: "";
    background: linear-gradient(
        45deg,
        #ff0000,
        #ff7300,
        #fffb00,
        #48ff00,
        #00ffd5,
        #002bff,
        #7a00ff,
        #ff00c8,
        #ff0000
    );
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing-button-85 20s linear infinite;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

.sound-controls button:after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #222;
    left: 0;
    top: 0;
    border-radius: 10px;
}

/* about button styling  */
.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.about-content {
    background: #0f1923;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-family: 'Orbitron', 'Muli', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 0 12px 2px #ff4655, 0 2px 16px 0 #000;
    position: relative;
    overflow: hidden;
    white-space: pre-line;
}

.about-content h3 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: #ff4655;
}

.about-content p {
    margin-bottom: 20px;
}

.close-about {
    padding: 8px 16px;
    background: crimson;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.h2-not{
    margin-bottom: 10px;
}


/* side bar */
.burger-container {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.burger-icon {
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: center;
}

.burger-icon div {
  width: 25px;
  height: 3px;
  background-color: rgb(60, 23, 23);
  margin: 4px 0;
  transition: 0.4s;
}

.burger-menu {
  display: flex;
  flex-direction: column;
  background-color: #444;
  width: 100%;
}

.burger-menu .sidebar-btn {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: white;
  border-top: 1px solid #555;
  cursor: pointer;
  transition: background 0.3s;
}

.burger-menu .sidebar-btn:hover {
  background-color: #555;
}

.main-menu-btn-sidebar {
  width: 14px;
  margin: 0px;
  padding: 10px 20px;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: absolute;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-size: 12px;
  font-weight: bold;
}

.sidebar-btn:hover {
  width: fit-content;
}
.sidebar-btn span {
  margin-left: 10px;
  display: none;
  white-space: nowrap;
}
.sidebar-btn:hover span {
  display: inline-block;
}
.sidebar-btn:hover {
  width: fit-content;
}
.sidebar-btn span {
  margin-left: 10px;
  display: none;
  white-space: nowrap;
}
.sidebar-btn:hover span {
  display: inline-block;
}



/* Burger Menu Media Query */


@media (max-width: 1920px) {
  .restart-btn1 {
    top: 35%;
    left: 0;
  }
  .back-level {
    top: 40%;
       left: 0;
  }
  .back-menu {
    top: 45%;
       left: 0;
  }
  .sound-in-game {
    top: 50%;
       left: 0;
  }
  .burger-menu{
    display: flex ;
  }
}
@media (max-width: 780px) {
  .nav-bar {
    width: 100%;
    align-items: center;
  }
  .sidebar-btn:hover span {
  display: none;
}
  .nav-bar .moves-display {
    margin-left: 0;
    /* padding-left: ; */
  }
  .nav-bar .timer-display {
    margin-right: 13px;
    width: 141px;
  }
  .burger-icon {
    background-color: rgba(112, 6, 6, 0.91) !important;
    width: 50px;
    border-radius: 10px;
    height: 50px;
    /* text-align: center; */
    display: flex;
    align-items: center;
  }
  .burger-icon div {
    background-color: rgba(184, 161, 31, 0.862);
  }
  .burger-menu {
    position: relative;
    
  }
  .restart-btn1 {
    top: -103px;
    left: 0;
  }
  .back-level {
    top: -103px;

    left:65px;
  }
  .back-menu {
    top: -103px;

    left: 130px;
  }
  .sound-in-game {
    top: -103px;

    left: 195px;
  }
}
@media (max-width: 550px) {
  .nav-bar {
    width: 78%;
    align-items: center;
  }
  .nav-bar .moves-display {
    margin-left: 0;
    margin-right: 5px;
    text-align: center;
    width: 140px;
    font-size: 11px;
    /* padding-left: ; */
  }
  .nav-bar .timer-display {
    margin-inline: 5px;
    width: 160px;
    font-size: 11px;
    text-align: center;
  }
  .burger-icon {

    width: 70px;
    height: 40px;

  }
  .burger-icon div {
    background-color: rgba(184, 161, 31, 0.862);
  }
  .burger-menu {
    position: relative;
    width: 78%;
    top: 16px;
  }
  .restart-btn1 {
    top: -103px;
    left: 0;
  }
  .back-level {
    top: -103px;

    left:65px;
  }
  .back-menu {
    top: -103px;

    left: 130px;
  }
  .sound-in-game {
    top: -103px;

    left: 195px;
  }
}




/* End */


