/*
  Copyright 2024 Your Company. All rights reserved.
  Use of this source code is governed by a BSD-style license that can be
  found in the LICENSE file.
*/

/* General reset for HTML and body */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Reusable icon class */
.icon {
  display: inline-block;
  user-select: none;
}

/* Utility class to hide elements */
.hidden {
  display: none;
}

/* Styling for the offline page */
.offline .interstitial-wrapper {
  color: #6b3b3b;
  font-size: 1.2em;
  line-height: 1.5;
  margin: 0 auto;
  padding-top: 100px;
  width: 90%;
  max-width: 800px;
  text-align: center;
}

.offline .runner-container {
  position: relative;
  height: 120px;
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0;
  overflow: hidden;
}

.offline .runner-canvas {
  opacity: 0.9;
  height: 100%;
  width: 40px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* Centering the canvas */
  z-index: 2;
}

.offline .controller {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247, 247, 247, 0.2);
  z-index: 1;
}

/* Offline resources display */
#offline-resources {
  display: block;
}

/* Snackbar styling for mobile view */
.snackbar {
  position: fixed;
  left: 0;
  bottom: 10px;
  width: 100%;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: center;
}

/* Responsive styles for mobile screens */
@media (max-width: 480px) {
  .suggested-left > #control-buttons, 
  .suggested-right > #control-buttons {
    float: left;
  }
  
  .offline .interstitial-wrapper {
    padding-top: 50px;
    font-size: 1.1em;
  }

  /* Reducing height for mobile */
  .offline .runner-container {
    height: 100px;
  }
}

/* Responsive styles for larger screens */
@media (min-width: 768px) {
  body {
    background-color: #fff;
  }

  /* Make interstitial-wrapper text larger for larger screens */
  .offline .interstitial-wrapper {
    font-size: 1.4em;
  }
  
  /* Add more styles for larger screens as needed */
}

/* New hover effect for buttons */
button:hover {
  background-color: #555; /* Darker shade for hover effect */
  color: #fff; /* White text on hover */
  cursor: pointer; /* Pointer cursor on hover */
}
