

body {
    background-image: url(b.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
   
    background-attachment: fixed;
    font-size: 24px;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
  }
  


/* Header and Navigation */


header h2 {
    margin-left: 30px;
    display: inline-block;
    cursor: pointer;
    font-weight: normal;
}

header nav {
    float: left;
    margin-top: 10px;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.menuIcon {
    display: block;
    margin-top: 5px;
    text-align: center;
}

.menuIcon div {
    background-color: #e8e9fd; /* Light blue */
    width: 30px;
    height: 3px;
    margin-top: 5px;
    display: block;
    -webkit-transition: 0.5s;
    -ms-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

.menuIcon:hover .menuIconDiv,
.menuIcon.active .menuIconDiv {
    background-color: #c2c5fd; /* Lighter blue */
}

#navigationButtons {
    background-color: #9fa6fd; /* Lighter blue */
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.26), inset 0px 5px 5px rgba(0, 0, 0, 0.26);
    height: 10000px;
    list-style: none;
    padding: 10px 30px 10px 10px;
    overflow: hidden;
    position: absolute;
    left: -80%;
    z-index: -1;
    -webkit-transition: left 1s;
    -ms-transition: left 1s;
    -moz-transition: left 1s;
    -o-transition: left 1s;
    transition: left 1s;
}

#navigationButtons li a {
    color: #FFFFFF; /* White */
    opacity: 1; /* Set the initial opacity to 1 for visibility */
    margin-left: 10px;
    display: block;
    text-align: left;
    padding: 10% 5%;
    font-size: 30px;
    cursor: pointer;
    -webkit-transition: background-color 0.5s, color 0.5s; /* Add background-color transition */
    -ms-transition: background-color 0.5s, color 0.5s;
    -moz-transition: background-color 0.5s, color 0.5s;
    -o-transition: background-color 0.5s, color 0.5s;
    transition: background-color 0.5s, color 0.5s;
}

#navigationButtons li a:hover:not(.active) {
    background-color: #7f8afd; /* Blue */
    color: #FFFFFF; /* White */
}

#navigationButtons li a.active {
    background-color: #7f8afd; /* Blue */
    color: #FFFFFF; /* White */
}

header nav:hover #navigationButtons {
    left: 0%;
}
#navigationButtons li a.active {
    opacity: 1;
}

/* Content */
#contentWrapper {
    width: 92%;
    margin: 0 auto;
    text-align: center;
}

.button {
    background-color: #3FBAD9; /* Blue */
    color: #e8e9fd; /* Light blue */
    font-size: 24px;
    text-align: center;
    padding: 5px;
    cursor: pointer;
    -webkit-transition: background-color 1s, color 1s;
    -ms-transition: background-color 1s, color 1s;
    -moz-transition: background-color 1s, color 1s;
    -o-transition: background-color 1s, color 1s;
    transition: background-color 1s, color 1s;
}

.button:hover,
.button.active {
    background-color: #4cbcd8; /* Darker blue */
    color: #FFFFFF; /* White */
}

.pageContentWrapper {
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 100px 10px 10px 10px;
}

.main {
    width: 90%;
    margin: auto;
    color: #3FBAD9; /* Blue */
}

article {
    text-align: center;
}

article div.content {
    text-align: left;
    padding: 20px;
}

article div.content span.heading {
    display: block;
    font-size: 24px;
}

.redirectButton {
    background-color: #3FBAD9; /* Darker blue */
    color: #e8e9fd; /* Light blue */
    border-radius: 5px;
    padding: 10px 20px;
    -webkit-transition: background-color 1s, color 1s;
    -ms-transition: background-color 1s, color 1s;
    -moz-transition: background-color 1s, color 1s;
    -o-transition: background-color 1s, color 1s;
    transition: background-color 1s, color 1s;
}

.redirectButton:hover {
    background-color: #3FBAD9; /* Even darker blue */
    color: #FFFFFF; /* White */
}

span.title {
    display: block;
    font-size: 24px;
}

span.subheading {
    display: block;
    font-size: 24px;
}

article div.content p {
    font-size: 24px;
}

hr {
    border-width: 0;
    width: 100%;
    height: 2px;
}

article div.content hr {
    background-color: #3FBAD9; /* Lighter blue */
}

span.links {
    display: inline-block;
    position: relative;
    margin: 5px;
}

span.links a {
    color: #3FBAD9; /* Blue */
    -webkit-transition: color 0.5s;
    -ms-transition: color 0.5s;
    -moz-transition: color 0.5s;
    -o-transition: color 0.5s;
    transition: color 0.5s;
}

span.links a:hover {
    color: #3FBAD9; /* Darker blue */
}


span.links a.icon {
    margin: 5px;
}

/* Home Page */
#homeContentWrapper {
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent yellow */
    background-size: cover;
  
    height: 1000px;
}

#homeContentWrapper article {
    padding: 100px 20px;
}

#homeContentWrapper .heading {
    font-size: 24px;
}

#homeContentWrapper .subheading {
    font-size: 24px;
}

/* Constructor Page */
#canvasContainer {
    background-color: #ffffff; /* Light yellow */
    color: #3FBAD9; /* Orange */
    margin-top: -70px;
    width: 100%;
    height: 800px;
   border-radius: 20px;
  border: 2px dashed black;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    
}
/* CSS for the hash text game name */
#hashText {
    
    font-size: 40px;
    font-weight: bolder;
    color: #ffffff; /* Your chosen color */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
    padding: 10px;
    text-shadow: -1px -1px black,
    1px -1px black,
    -1px 1px black,
    -1px -1px black;
 
    text-align: center;
}

#canvasInterface {
    width: 100%;
    margin-top: -40px;
    text-align: center;
    font-size: 24px;
    cursor: default;
}

#canvasContainer .menuIcon {
    width: 120px;
    margin-bottom: 10px;
}

#canvasContainer ul span {
    background-color: #3FBAD9; /* Light yellow */
    margin-bottom: 5px;
    float: left;
    display: block;
    text-align: left;
    font-size: 24px;
}

#canvasContainer ul span:hover {
    background-color: #3FBAD9; /* Yellow */
}

#canvasButtonContainerTop {
    width: 10%;
    margin-left: 1%;
   font-size: 24px;
    
}

#canvasButtonContainerSide {
    background-color: #3FBAD9; /* Light yellow */
    height: 0px;
    margin: 0;
    padding: 0 10px;
    display: inline-block;
    position: absolute;
    text-align: left;
    overflow-y: scroll;
    -webkit-transition: height 1s;
    -ms-transition: height 1s;
    -moz-transition: height 1s;
    -o-transition: height 1s;
    transition: height 1s;
}

#canvasButtonContainerSide .button {
    width: 100%;
    font-size: 25px;
}

.canvasButton {
    background-color: #3FBAD9; /* Light yellow */
    margin: 0;
    padding: 0;
    display: block;
    list-style: none;
    text-align: left;
}

.canvasButtonListContainer {
    max-height: 1000px;
    opacity: 1;
    -webkit-transition: max-height 1s, opacity 1s;
    -ms-transition: max-height 1s, opacity 1s;
    -moz-transition: max-height 1s, opacity 1s;
    -o-transition: max-height 1s, opacity 1s;
    transition: max-height 1s, opacity 1s;
}

.canvasButtonListContainer.find,
.canvasButtonListContainer.measure {
    margin-top: 5px;
}

.canvasButton li a {
    background-color: #3FBAD9; /* Light yellow */
    display: block;
    padding-left: 30px;
    text-align: left;
}

#canvas {
    width: 98%;
    height: 88%;
    border: 2px solid #000000;
}

/* General styles */

/* Styles for larger screens */
@media only screen and (min-width: 768px) {
    /* Add styles for larger screens here */
    body {
        font-size: 16px; /* Adjust font size for larger screens */
    }
}

/* Styles for smaller screens (mobile devices) */
@media only screen and (max-width: 767px) {
    /* Add styles for smaller screens here */
        /* Add styles for smaller screens here */
        html, body {
            font-size: 14px; /* Adjust font size for smaller screens */
            overflow-y: auto; /* Enable vertical scrolling */
        }
        /* Adjust the layout for smaller screens */
        #wrapper {
            padding: 10px; /* Add padding to the wrapper */
        }
    nav {
        text-align: center; /* Center align navigation items */
    }
    .button {
        margin-bottom: 10px; /* Add margin between buttons */
    }
    #canvasContainer {
        width: 100%; /* Make the canvas container full width */
        overflow-x: auto; /* Add horizontal scroll for smaller screens if needed */
    }
    #canvasButtonContainerSide {
        display: block; /* Display buttons vertically on smaller screens */
    }
    /* Hide menu icon on smaller screens */
    .menuIcon {
        display: none;
    }
    /* Show menu options by default on smaller screens */
    .canvasButton {
        display: block !important;
    }
    /* Hide other button lists by default on smaller screens */
    .canvasButtonListContainer {
        display: none;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: -2%;
    width: 100%;
    height: 102%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s;
    overflow: hidden;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: none;
    width: 30%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
  }

  .modal-content p {
    font-size: 24px;
    color: #000000;
    margin-bottom: 20px;
  }
  .modal-content .popButton {
    padding: 10px 20px;
    font-size: 24px;
    background-color: #3FBAD9;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .modal-content .popButton:hover {
    background-color: #000000;
  }
  /* Position the button at the top-left corner */
  .howToPlayBtn {
    position: absolute;
    top: 25px;
    left: 10px;
    z-index: 1;
  }
  
  /* Style the button to match the game theme */
  .howToPlayBtn {
    font-family: "Poppins", sans-serif; /* Use the same font as the game */
    font-size: 16px; /* Adjust the font size as needed */
    background-color: transparent;  
    /* color: #8460de;  */
    border: none;
    font-weight: bolder;
    background-color: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
   }
  /* Add a hover effect */
  .howToPlayBtn:hover {
    background-color: #c2b7b7; /* Slightly darker purple on hover */
  }

  .close {
    color: #3FBAD9;
    float: right;
    font-size: 24px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }
  .modal-header {
    text-align: center;
    margin-bottom: 10px;
}

.modal-header img {
    max-width: 50%; /* Set the maximum width to 50% of the parent container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Make the image a block-level element */
    margin: 0 auto; /* Center the image horizontally */
}
.modal-content iframe {
    margin-top: 20px; /* Added margin-top for the iframe */
}
.homeBtn {
    position: absolute;
    top: 145px; /* Adjust the top position as needed */
    left: 10px;
    z-index: 1;
  
  }
  
  /* Style the home button */
  .homeBtn button {
    font-family: "Poppins", sans-serif;
    background-color: transparent;  
    font-size: 16px; 
    border: none;
    font-weight: bolder;
    border-radius: 5px;
    padding: 15px 20px;
    cursor: pointer;
    /* box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.2); */
    transition: background-color 0.3s ease;
  }
  @media (max-width: 480px) {
  
    .howToPlayBtn img,
    .homeBtn img {
      width: 50px;
      height: 50px;
      margin-left: -21px;
        margin-top: -21px;
    }
    
    .button-container {
      display: flex;
      flex-direction: column; /* Change the flex direction to column */
      align-items: center; /* Center the buttons horizontally */
      padding: 10px; /* Add some padding for spacing */
    }
    .homeBtn {
      position: absolute;
      top: 90px; /* Adjust the top position as needed */
      left: 10px;
      z-index: 1;
    
    
    }
    .btn {
      outline: none;
      width: 168px;
      padding: 8px;
      margin: 10px 0; 
      border-radius: 5px;
      background-color: #d1ae45;
      height: 40px;
      border: none;
      
    }
    }
    @media (max-width: 480px) {
        #hashText {
            font-size: 26px;
            width: 252px;
            margin-left: 84px;
            font-weight: bolder;
            color: #ffffff;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: 20px;
            padding: 10px;
            text-shadow: -1px -1px black, 1px -1px black, -1px 1px black, -1px -1px black;
            text-align: center;
        }
    /* Styles for screens with a maximum width of 480px (smartphones) */
    .container {
      max-width: 95%;
      padding: 0.5rem;
    }
    
    .modal-content {
      width: 90%;
      margin: 40% auto;
    }
    
    .modal-content p {
      font-size: 16px;
    }
    
    .modal-header img {
      max-width: 50%;
    }
    
    .modal-content iframe {
      height: 150px;
      width: 350px;
    }
    }
    