 * { box-sizing: border-box; }
 
 .overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1000;
  }
  
 .modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%; 
    z-index: 1001;
    justify-content: center; 
    align-items: center;     
  }

  .modal-content {
    position: relative; 
    padding-top: 30px;  
    background: #237A2F;
    background-image: url(kep/zold2.png);
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;         
    width: auto;
    max-width: calc(45ch);     
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden; 
  }
  
 .close-x {
   position: absolute;
   top: 5px;
   right: 12px;
  
   /* background-color: #7d9922; */
   background-color: white;
   border: 3px solid #333;
   color: black;
  
   /* border: 6px solid #333;  */
   font-size: 28px;
   font-weight: bold;
   cursor: pointer;
   line-height: 1;
   z-index: 1002;
 }

 .close-x:hover {
  color: #0d0; 
 }

 #check a {
    color: #ffff00; 
    text-decoration: underline; 
    font-weight: bold;
    word-break: break-all; 
 }

 #check a:hover {
    color: #ffffff; /* Fehérre vált */
 }
 
 @media (max-width: 600px) {    
  .modal {
	justify-content: flex-start;  
    align-items: flex-end;       
    padding: 0 0 10%;            
  }

  .modal > * {                   /* direct child */
    margin-top: auto;
    margin-bottom: 30%;         
    width: 100%;    
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal-content {
    width: 100%; 
    max-width: 100vw;
    border-radius: 0;
    padding: 0px;
    font-size: 14px;       
    letter-spacing: -0.5px;   
  }
    
  .close-x {
    top: 2px;
    right: 8px;
    font-size: 32px; 
  }
 }
