/* Set a background gradient for the entire body */
body {
	margin: 0px 9%;
  	background-image: url("../images/landscape.png");
  	background-attachment: fixed;
  	background-size: cover;
  	font-family: Arial, sans-serif;
  	color: white;
  	text-align: center;
  	box-sizing: border-box;
  	min-height: 100vh;
  	display: flex;
  	flex-direction: column;
  	justify-content: space-around;
  }
  

    /* Style the buttons */
  button {
    background: #0099cc;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
  }
  
  /* Center the container on the screen */
  .container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    margin-left: 170px;
    width: 60%;
  }
  

  
  button:disabled {
    background: gray;
    cursor: not-allowed;
  }
  
  /* Style the monster container */
  .monster-container {
    max-width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
  }
    /* Style the monster container */
    .player-container {
      max-width: 30%;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 10px;
    }
  
  /* Style the monster image */
  .monster-container img {
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Add a subtle shadow */
  }
  
 /* Style the health bar container */
.healthBar {
  width: 100%; /* Make the health bar full-width */
  height: 30px; /* Maintain the height of the health bar */
  background: linear-gradient(to right, #4CAF50 0%, #4CAF50 0%, #fff 0%, #fff 100%); /* Double-color background */
  border: 1px solid #111;
  border-radius: 5px;
  margin: 10px 0;
}

/* Style the health level within the health bar */
.health {
  height: 100%;
  width: 100%; /* Initially 100% for full health */
  text-align: center;
  font-weight: bold;
  color: black;
  line-height: 30px; /* Center the text vertically */
  border-radius: 5px;
  transition: width 0.5s; /* Add a smooth transition effect for changes */
}

/* Style the green portion of the health */
.health .green {
  background-color: #4CAF50;
  border-radius: 5px 0 0 5px;
  display: inline-block;
}

/* Style the white portion of the health */
.health .white {
  background-color: #ccc;
  border-radius: 0 5px 5px 0;
  display: none; /* Hide the white portion */
}

  /* Media query for screens smaller than 600px (typical smartphones) */
  @media (max-width: 600px) {
    .monster-container {
      align-items: flex-start; /* Left-align the monster image and health bar */
    }
  
    .container {
      margin: 0;
    }
  }

/* Style the timer */
.timer {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 24px;
  color: #0099cc;
  text-align: center;
  margin: 10px 0;
}
.overlay {
	visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh; /* 100% of the viewport height */
    z-index: 1;
}

.modal {
    border-radius: 5px;
    padding: 0px;
    width: 30%;



}

button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
}



input {
    margin: 5px;
    padding: 5px;
}


  
  /* Styles for the loading spinner container */
#loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background overlay */
}

/* Styles for the spinner animation */
.spinner {
  border: 5px solid rgba(255, 255, 255, 0.3); /* Spinner border color */
  border-top: 5px solid #3498db; /* Spinner color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Class to hide the loading spinner */
.hidden {
  display: none;
}

/* Style for the top navigation bar */
.top-bar {
    position: fixed;
    top: 5px; /* Adjust the top positioning as needed */
    left: 5px; /* Adjust the left positioning as needed */
    background-color: #000022;
    padding: 0px;
    border: 0px solid #3498db; /* Adding a border with a different blue color */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar button {
    background-color: #000022; /* Matching the background color */
    color: white;
    border: 2px solid #3498db; /* Matching the border color */
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
     /* Adjust spacing between buttons */
    margin: 0px;
    margin-right : 10px;
}
        #user-info {
            position: fixed;
            top: 10px;
            right: 10px;
            background: linear-gradient(45deg, black, #FF7F50);
  			    background-size: 200% 200%;
            color: white;
            padding: 15px;
            border: 2px solid #3498db;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            width: 300px;
            text-align: left;
        }

        /* Style for the display name */
        #user-info strong {
            font-size: 18px;
            display: block;
            text-align: center;
        }

        /* Style for the other user information */
        #user-info p {
            margin: 10px 0;
        }

        /* Style for the experience text */
        #user-info #experience {
            font-weight: bold;
        }

        /* Style for the body - Lighter gradient 
        body {
            margin: 0 9%;
            background: linear-gradient(to bottom, #0a1541, #000033);  Lighter gradient 
            font-family: Arial, sans-serif;
            color: white;
            text-align: center;
            box-sizing: border-box;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
        }
        */
/* Style the select element */
select {
  padding: 10px; /* Add padding to the select box for better appearance */
  border: 1px solid #0099cc; /* Add a border */
  border-radius: 5px; /* Round the corners */
  background: #000033; /* Background color */
  color: white; /* Text color */
  font-size: 16px; /* Text size */
  width: 200px; /* Set a wider width for the select box */
}

/* Style the select options */
select option {
  background: #000033; /* Background color of options */
  color: white; /* Text color of options */
  font-size: 16px; /* Text size of options */
  padding: 10px; /* Add padding to the options for height */
  height: 70px; /* Increase the height of the options */
}


/* Style for the plus button */
#plus-button {
  width: 50px; /* Adjust the size as needed */
  height: 50px;
  background-color: #3498db; /* Button background color */
  color: #fff; /* Text color */
  font-size: 24px; /* Text size */
  border: none; /* Remove button border */
  border-radius: 50%; /* Make it a circle */
  cursor: pointer;
  transition: background-color 0.3s; /* Smooth color change on hover */

  /* Center the plus sign in the button */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Style for the button on hover */
#plus-button:hover {
  background-color: #2980b9; /* Button background color on hover */
}


#skills {
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(255, 127, 80, 0.8));
  background-size: 200% 200%;
  font-size: large;
}

.skill {
  display:flex;
  flex-direction: row;

}

.skill_attribute {
  padding-right: 10px;
  padding-top: 10px;
  
}

#skill_name {
  width: 200px;
  text-align: left;
}

#labels {
  display: flex;
  flex-direction: row;
  text-align:center;
}

#skill_row {
  width: 200px;
  text-align: center;
}

#skill_level, #skill_exp {
  display: inline-block;
  padding: inherit 20px;
}

#dialog-container {
  position: fixed; /* Position the container relative to the viewport */
  bottom: 0; /* Align it to the bottom of the screen */
  left: 0; /* You can adjust the left position if needed */
  width: 100%; /* Make it span the entire width of the viewport */
  background-color: #FFF;
  z-index: 999; /* Set a high z-index value to ensure it's displayed above other elements */
  border-top: 2px solid #000; /* Add a border at the top to separate it from the content */
  text-align: center; /* Center-align text within the container */
  color: black;
}

#dialog-text {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: black;
  padding: 10px;
}