html, body {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 350px;
 
}

* {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


body {
  background-image: url('../img/background.jpeg');
  background-attachment: fixed;
  background-size: cover;      /* Optional: cover whole screen */
  background-repeat: no-repeat; /* Optional: no repeating */
  background-position: center;  /* Optional: center image */

  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  letter-spacing: 2px;
  /*background: #1e1e2f;*/
  color: #f0f0f0;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  width: 100vw;      /* full viewport width */
  min-height: 100vh;
  margin: 0;
}



input, button {
  box-sizing: border-box; /* Include padding in width calculation */
  padding: 0.6rem;
  width: 100%;
  border: none;
  font-size: 1.2rem;
}

input {
  margin-top: 0.6rem;
  background: #222223 !important; 
  border: solid 2px #ddd;
  color: #f0f0f0 !important;
  border-radius: 7px;
}


button {
  margin-top: 5px;

  border-radius: 15px;
  padding: 0.6rem;
  background-color: transparent;
  border: solid 2px #ccc;
  color: white;
  cursor: pointer;
  
  transition: background-color 0.4s ease, color 0.4s ease;

}

button.primary{
  background-color: #777;
  border: solid 2px #777;

}


.hidden {
  display: none !important;
}
#team-modal.hidden{
  top: 150vh;
  display: flex;
}


#team-modal h3{
  text-align: center;
}

#team-modal input{
  margin-top: 5px;
  margin-bottom: 10px;
}

.hint {
  color: #aaa;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}
.modal-content {
  background-color: #2c2c3e;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  border-radius: 5px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 25px;
  font-weight: bold;
}
 

  /* Enable smooth scrolling for touch devices */
html, body {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
  overscroll-behavior: contain;      /* Prevent scroll chaining */
}

/* Prevent accidental overscroll on main container */
.main-content, .wrapper, .scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Optional: Make sure inputs don't jump when keyboard opens on mobile */
input, textarea {
  touch-action: manipulation;
}

/* Optional: Prevent default long-press behaviors */
* {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


:is(h1, h2, h3) {
  text-transform: uppercase;
  
}

h1{
  font-size: 1.8rem;
}
h2{
  font-size: 1.4rem;
}





button.submit-button:active {
  background-color: #4caf50;
}



.drawing-button-wrapper{
  margin: 7px;
  display: flex;
  border-radius: 5px;
}

.drawing-button-wrapper button{
  display: flex;
  background-color: transparent;
  padding: 10px;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: 0.7;
  background-color: #42424244;
  border: solid #141414bb 3px;

}

.drawing-button-wrapper button:active{
  border: solid #bbbbbbbb 3px;

}
.drawing-button-wrapper button img{
  width: 45px;
  height: 45px;
}



#team-modal{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.noselect {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;

  font-size: 20px;
  text-shadow: 1px 1px 3px #000;
  height: 600px;
  align-items: center;
  text-align: center;
  width: 100%;
}



.custom-tooltip-bold {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: bold;
  font-size: 20px; 
  letter-spacing: 2px;     
  padding: 4px;

}

body, footer {
  width: 100%;
  box-sizing: border-box;
}


@media (min-width: 800px) {
  body {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
  }
}