@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Monoton&family=Audiowide&family=Press+Start+2P&display=swap');


.home{
    background: url("../images/RRbackground.jpeg");
    background-size: cover;
    height: 100vh;
}
body.about{
    background: url("../images/RRbackground.jpeg");
    background-size: cover;
    height: 100vh;
    color: khaki;
   
}
body.about .text-container {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    font-family: 'Permanent Marker', cursive;
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 1px;
    /*text-shadow: 0 0 3px #ffd700, 0 0 6px #ffd700;*/
    line-height: 1.6;
    width: fit-content;
    margin-left: 40px;
    padding: 20px;
    
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: grey;
    padding: 10px 20px;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 70px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0 auto;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: khaki;
    text-decoration: none;
}

.nav-menu a:hover {
    color: gold;
}

.tools-menu {
    position: relative;
}

.menu-toggle {
    display: block;
    font-size: 2rem;
    color: khaki;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
}

.tools-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: grey;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 200px;
    border: 1px solid #555;
    z-index: 1000;
}

.tools-dropdown.show {
    display: block;
}

.tools-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tools-dropdown a {
    display: block;
    padding: 10px 15px;
    color: khaki;
    text-decoration: none;
    white-space: nowrap;
}

.tools-dropdown a:hover {
    color: gold;
    background: #555;
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-logo {
        height: 50px;
    }

    .nav-menu {
        gap: 12px;
        flex-wrap: wrap;
        margin: 0;
    }

    .menu-toggle {
        font-size: 1.8rem;
    }
}

body.pizza {
  background-color: black;
  background-image: url("/static/images/pizza.png");
  background-size: cover;
  color: white;
}

body.dough {
  background-color: black;
  background-image: url("/static/images/pizza-pattern.png");
  background-size: cover;
  color: white;
}

.dough_container {
  background-color: black;
  background-size: contain; /* or 'cover', 'auto', etc. - adjust as needed */
  background-repeat: no-repeat;
  background-position: center center; /* Center the background image */
  padding: 0px;
  margin-bottom: 20px; /* Add some space below the div */
}

.tracker-container {
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #39FF14;
  border-radius: 20px;
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 25px #39FF14;
  text-align: center;
  box-sizing: border-box;
}



#output {
  margin-top: 15px;
  font-size: 1.2em;
  color: white;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 10px 15px;
  border-radius: 10px;
  display: inline-block;
  text-shadow: 0 0 5px black;
  box-shadow: 0 0 10px #000;
}
#output.output-error {
  color: red;
  font-weight: bold;
}


body.playmat main.container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
body.playmat {
    background-image: url("/static/images/playmat.png");
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
    margin: 0;
    height: 100vh;
    background-color: black;
}
#dice-container {
    position: relative;
    width: 100%;
    
    overflow: hidden;
}
/* Roll output styling matching input panel */
#roll-output .roll-session {
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #39FF14;
  border-radius: 12px;
  padding: 12px 18px;
  margin: 14px auto;
  max-width: 600px;
  box-shadow:
    0 0 4px #39FF14,
    inset 0 0 6px #39FF14;
  font-family: 'Audiowide', cursive;
}

#roll-output .roll-label {
  display: block;
  font-weight: bold;
  font-size: 1.4rem;
  color: #FFA500;
  text-shadow:
    0 0 3px #FFA500,
    0 0 6px #FF8C00;
}

#roll-output .roll-results {
  display: block;
  font-size: 1.2rem;
  color: #FFA500;
  text-shadow:
    0 0 2px #FFA500,
    0 0 5px #FF8C00;
  margin-top: 4px;
  line-height: 1.4;
}

#roll-output .total {
  color: #39FF14;
  font-weight: bold;
  text-shadow:
    0 0 2px #39FF14,
    0 0 5px #39FF14;
}



/* General neon orange text and glow */
.neon-orange {
  color: #FFA500;
  text-shadow:
    0 0 2px #FFA500,
    0 0 6px #FF8C00,
    0 0 12px #FF8C00;
}

/* Neon green accents (like borders) */
.neon-green-border {
  border: 2px solid #39FF14;
  box-shadow:
    0 0 10px #39FF14,
    inset 0 0 20px #39FF14;
}

/* Input Panel consistent style */
#input-panel {
  background-color: rgba(0, 0, 0, 0.85);
  border: 3px solid #39FF14;
  border-radius: 999px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  box-shadow:
    0 0 10px #39FF14,
    inset 0 0 20px #39FF14;
  font-family: 'Monoton', cursive;
  color: #FFA500;
  text-shadow:
    0 0 3px #FFA500,
    0 0 6px #FF8C00;
  animation: flicker 3s infinite;
}

/* Input labels */
#input-panel label {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #FFA500;
  text-shadow:
    0 0 3px #FFA500,
    0 0 6px #FF8C00;
}

/* Inputs themselves */
#input-panel input {
  background-color: #111;
  color: #FFA500;
  border: 1px solid #FF8C00;
  padding: 4px 8px;
  margin-left: 8px;
  border-radius: 6px;
  width: 60px;
  text-align: center;
  font-family: 'Monoton', cursive;
  font-size: 1rem;
  text-shadow:
    0 0 2px #FFA500;
}

/* Buttons in the input panel */
#input-panel button {
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #39FF14;
  color: #FFA500;
  font-family: 'Monoton', cursive;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 0 10px #39FF14,
    inset 0 0 20px #39FF14;
  transition: background-color 0.3s, box-shadow 0.3s;
  text-shadow:
    0 0 3px #FFA500,
    0 0 6px #FF8C00;
  animation: flicker 3s infinite;
}

#input-panel button:hover {
  background-color: rgba(0, 0, 0, 0.95);
  box-shadow:
    0 0 15px #39FF14,
    inset 0 0 30px #39FF14;
}

#input-panel button:active {
  transform: scale(0.97);
  box-shadow:
    0 0 8px #39FF14,
    inset 0 0 16px #39FF14;
}

#roll-button {
  position: static;
  width: auto;
  max-width: 90%;
  padding: 12px 24px;
  font-size: 1.5rem;
  text-align: center;
  margin: 0 auto;
}
  font-family: 'Monoton', cursive;
  color: #FF4500;
  background-color: rgba(0, 0, 0, 0.85);
  border: 3px solid #39FF14;
  border-radius: 999px;
  letter-spacing: 2px;
  text-shadow:
    0 0 5px #FF4500,
    0 0 10px #FF4500,
    0 0 20px #FF4500,
    0 0 40px #FF4500;
  box-shadow:
    0 0 10px #39FF14,
    0 0 20px #39FF14 inset;
  cursor: pointer;
  z-index: 5;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  animation: flicker 3s infinite;
}


#roll-button:hover {
  background-color: rgba(0, 0, 0, 0.95);
  transform: scale(1.05);
  box-shadow:
    0 0 15px #39FF14,
    0 0 30px #39FF14 inset;
}

#roll-button:active {
  transform: scale(0.98);
  box-shadow:
    0 0 8px #39FF14,
    0 0 16px #39FF14 inset;
}


@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow:
      0 0 5px #39FF14,
      0 0 10px #FF4500,
      0 0 20px #FF4500,
      0 0 40px #FF4500;
    box-shadow:
      0 0 10px #39FF14,
      0 0 20px #39FF14 inset;
  }
  20%, 22%, 24%, 55% {
    opacity: 0.7;
    text-shadow:
      0 0 2px #FF4500,
      0 0 4px #FF4500;
    box-shadow:
      0 0 5px #39FF14,
      0 0 10px #39FF14 inset;
  }
}

#bottom-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}

@media (max-width: 600px){   
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 10px;
   }
    .nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
        max-width: 95%;
        margin: 0 auto;
        list-style: none;
   }
    .nav ul li {
        display: inline-block;
        margin: 0;
   }
    .nav ul li a {
        font-size: 0.9rem;
        padding: 4px 6px;
   }
    .nav-logo img {
        height: 60px;
   }
     .nav a {
        font-size: 0.85rem;
    }
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
@media (max-width: 500px) {
  #roll-button {
    width: 200px;
    padding: 12px 24px;
    font-size: 1.6rem;
    bottom: 140px;
  }
}

@media (max-width: 500px) {
  #input-panel {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #input-panel label {
    font-size: 1rem;
  }

  #input-panel input {
    width: 50px;
    font-size: 0.9rem;
  }

  #input-panel button {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}
@media (max-width: 600px) {
  #roll-output .roll-session {
    max-width: 90%;
    padding: 8px 12px;
    margin: 10px auto;
  }

  #roll-output .roll-label {
    font-size: 1.2rem;
  }

  #roll-output .roll-results {
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  #bottom-bar {
    bottom: 150px;
  }
}


@media (max-width:768px){

    .navbar{
        display:flex;
        align-items:center;
        justify-content:space-between;
        flex-wrap:nowrap;
    }

    .nav-left{
        flex:0 0 auto;
    }

    .nav-menu{
        display:flex;
        flex:1;
        justify-content:center;
        flex-wrap:wrap;
        gap:10px;
        margin:0 10px;
        padding:0;
    }

    .nav-logo{
        height:50px;
    }

    .tools-menu{
        flex:0 0 auto;
    }

    .menu-toggle{
        font-size:1.8rem;
    }

    .tools-dropdown{
        right:0;
        left:auto;
    }
}
