h1 {
  display: block;
  text-align: center;
  margin: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 40px;
}

h2 {
  text-align: center;
}

body {
  overflow: hidden;
}

canvas {
  background: #fff;
  display: block;
  margin: 0 auto;
  border: 1px solid black
}

.footer-links {
  width: 100%;
  display: block;
  text-align: center;
  margin: 0;
  /* padding-top: 20px; */
  padding-bottom: 20px;
  font-size: 40px;
}

#icon {
  font-size: 50px;
  color: black;
}

#audio{
  display: block;
  margin: 0 auto;
  border: 1px solid black;
  margin-top: 20px;
}

button{
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  padding: 10px;
  display: flex;
  justify-content: center;
  margin-left: 35%;
}

#button{
  margin-left: 35%;
}

#restart-button{
  margin-left: 20%;
}

#replay-button{
  margin-left: 25%;
}

button:hover {
  cursor: pointer;
}

main {
  background-image: url(http://res.cloudinary.com/dzmnmgun1/image/upload/v1523934989/Screen_Shot_2018-04-16_at_8.16.06_PM.png);
  min-height: 1000px;
  font-family: 'Raleway', sans-serif;
}

.header-nav{
  background-color: blue;
  height: 20px;
  width: 800px;
  display: block;
  text-align: center;
  color: white;
  display: block;
  margin: 0 auto;
  border: 1px solid black
}

.score-display {
  background-color: #333;
  color: white;
  height: 30px;
  width: 800px;
  display: block;
  text-align: center;
  margin: 0 auto;
  border: 1px solid black;
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 30px;
}

#modal {
    position: fixed;
    font-family: 'Raleway', sans-serif;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    height: 100%;
    width: 100%;
    /* text-align: center; */
}

#game-over-modal {
  position: fixed;
  font-family: 'Raleway', sans-serif;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  height: 100%;
  width: 100%;
  display: none;
}

#game-won-modal{
  position: fixed;
  font-family: 'Raleway', sans-serif;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  height: 100%;
  width: 100%;
  display: none;
}

.modal-content {
  position: absolute;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 30px;
  border: 3px solid #2c3e50;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  float: left;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
  min-width: 350px;
  max-width: 500px;
}

.modal-content ul {
  text-align: left;
}

#game-over-modal .modal-content {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  top: 50%;
}

#game-over-modal h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

#game-over-modal h2 {
  color: #ffe5e5;
  margin-bottom: 20px;
  font-weight: 300;
}

#final-score {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#tweet-score-button {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px auto;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
  transition: all 0.3s ease;
  font-family: 'Raleway', sans-serif;
  display: block;
}

#tweet-score-button:hover {
  background: linear-gradient(135deg, #0d8bd9 0%, #0c7cd5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

#restart-button {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
  transition: all 0.3s ease;
  font-family: 'Raleway', sans-serif;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#restart-button:hover {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

#pause-modal {
  position: fixed;
  font-family: 'Raleway', sans-serif;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  height: 100%;
  width: 100%;
  display: none;
}

#pause-modal .modal-content {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

#pause-modal h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

#pause-modal h2 {
  color: #e8f4f8;
  margin-bottom: 20px;
  font-weight: 300;
}

#pause-score {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#resume-button {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
  transition: all 0.3s ease;
  font-family: 'Raleway', sans-serif;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#resume-button:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Mobile styles */
@media (max-width: 768px) {
  canvas {
    max-width: 100vw;
    max-height: 60vh;
    width: auto;
    height: auto;
  }
  
  .header-nav {
    width: 100%;
    max-width: 100vw;
  }
  
  .score-display {
    width: 100%;
    max-width: 100vw;
    font-size: 16px;
  }
  
  .modal-content {
    max-width: 90vw;
    padding: 20px;
  }
  
  .modal-content h1 {
    font-size: 24px;
  }
  
  .modal-content h2 {
    font-size: 18px;
  }
  
  .modal-content ul {
    font-size: 14px;
    padding-left: 20px;
  }
  
  button {
    font-size: 14px;
    padding: 12px 20px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  
  #mobile-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #ff6b6b;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  #mobile-pause-button {
    position: fixed;
    top: 50px;
    right: 10px;
    z-index: 1000;
    font-size: 24px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #333;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    touch-action: manipulation;
  }
  
  /* Adjust main content for mobile message */
  main {
    padding-top: 40px;
  }
}
