body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000;
    margin: 0;
    padding: 0;
}

h1 {
    color: #008000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    text-align: center;
    margin-bottom: 10px;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.tv {
    position: relative;
    width: 900px;
    height: 675px;
}

.tv-image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.screen {
    position: absolute;
    top: 10%;
    left: 17%;
    right: 17%;
    bottom: 33%;
    width: 65%;
    background-color: #000;
}

.static-overlay,
.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.static-overlay {
    background: url('/sfx/staticimg.gif') center center no-repeat;
    background-size: cover;
    display: none;
}

.screen-overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

.controls {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

button, select {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #008000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
}

button:hover {
    background-color: #006400;
}

.controls-label {
    color: #fff;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
}

.controls-row {
    display: flex;
    justify-content: space-between;
}

.control-item {
    margin-right: 10px;
}

.popup {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 60px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .popup-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 90%;
    height: 60%;
    position: relative;
    left: 5%;
    top: 20%;
  }
  
.hider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
  
   z-index: 10000000 !important;
      
      
      
      
  }

  .close {
    position: absolute;
    top: 3px;
    right: 10px;
    cursor: pointer;
  }

  #continuex {
    position: relative;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
   
  }
  
  #adBlock {
       position: absolute;
    top: 20%;
    left: 18%;
    width: 50%;
    height: 50%;
    z-index: 100000000 !important;
  }

  /* Media query for larger screens */
  @media screen and (min-width: 768px) {
    .popup-content {
      padding: 100px;
      width: 60%;
      height: 60%;
      left: 20%;
      top: 25%;
    }
  }

  #disable-adblock-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
}

#disable-adblock-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  background-color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 1.2em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    .tv {
        width: 108vw;
        height: 81vw;
    }

    .controls {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-top: 20px;
        width: 90vw;
        
    }
    
      #adBlock {
       position: absolute;
    top: 25%;
    left: 20%;
    width: 60%;
    height: 60%;
    z-index: 100000000 !important;
  }
  
   #continuex {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
   
  }

}
