

#virtual-keyboard {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}
.keyboard-row {
   display: flex; 
  justify-content: center;
  margin: 0;

}

.keyboard-key {
  padding: 7px 7px;
  margin: 2px;
  border: 1px solid #ccc;
  /*  background-color: #f5f5f5; */
  background-color: red;
  font-size: 24px;
  cursor: pointer;
  border-radius: 5px;
  /*  transition: background-color 0.3s; */
/*   opacity: 1;  */
}

.keyboard-key.used {
  background-color: #cccccc;
  cursor: default;
}

#wordle-container {
  margin: 20px auto;
  width: 300px;
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#attempts {
  font-weight: bold;
  margin: 10px;
  /* margin-left: 35%; */
  /* width: 120%; */
}

#word-container {
  font-size: 24px;
  margin: 0 0 10px;
}

#guess-input {
  width: 100%;
  padding: 5px;
  margin: 10px;
  font-size: 2em;
  background: rgba(255,255,255,.1);
  color: black;
  display: block;       /* Use block-level display */
  /* margin-left: 40%; */
  flex-direction: row; /* Align children in a row */
  /* margin-right: auto;  */
  /*   width: 50%;      */
  border: 2px solid #fff;
  border-radius: 100vmax;
  text-align: center;
  color: #fff;
}
#guess-input:focus {
  outline: 0;
  background-color: transparent;
}
#guess-input::placeholder{
  color: #fff;
}
 canvas {
            border: 1px solid black;
            /* margin-left: 35%; */
            width: 100%;
            max-width: 200px;
        }

     
#timer {
  height: 10vh;
  font-size: 5vmin;
   display: inline;
     flex-direction: row; /* Align children in a row */
}

#guess-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  /* Increased padding */
  cursor: pointer;
  font-size: 1.2em;
  /* Increased font-size */
}


#guess-button:hover {
  background-color: #555;
  ;

}

h1 {
  color: white;
  
  
    position: fixed; /* Fixed relative to the viewport */
    top: 100px;    /* 20px from the bottom */
    left: 300px;     /* 20px from the right */
    z-index: 1000;   /* Ensures it stays on top of other elements */
}
.dificulty-level {
  display: flex;
  align-items: center;
}
 label[for="difficulty"] {
            font-size: 1.5em; /* Change this value as needed */
            color: white;

        }

#difficulty {
  padding: 10px;
  margin: 10px;
  font: inherit;
  border-radius: 4px;
}

#wordDisplay,
#guessesDisplay {
  margin-top: 10px;
  font-size: 1.5em;
  color: white;
  /* height:100px; */
  /* width:10em; */
  /* margin-left: 2em; */
  border-color:blue;
  input{
       border:2px solid #FF0000;
    }
;
  text-align: center;
}

/* Basic styling for guess grid */
.guess {
  display: inline-block;
  margin: 40%;
    margin-left: 2em;
  padding: 10px;
  border: 2px solid #333;
  width: 3em;
  height: 2em;
  text-align: center;
  vertical-align: middle;
  font-size: 1.5em;
  color: #333;
  background-color: white;
}

.correct-place {
  background-color: #32CD32;
  /* LimeGreen */
  color: white;
}

.wrong-place {
  background-color: #FFD700;
  /* Gold */
  color: white;
}

.not-in-word {
  background-color: #4682B4;
  color: white;
}

button {
  padding: 15px 30px;
  /* Increase padding to make buttons larger */
  margin: 15px;
  /* Increase margin to add more space around buttons */
  border: none;
  background-color: #37474F;
  color: white;
  font-size: 2em;
  /* Increase font-size for larger text */
  cursor: pointer;
}

button:hover {
  background-color: #546E7A;
  /* Darker Blue Grey */
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}

.shake {
  animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}



.guess {
  /* Add perspective for flip effect */
  perspective: 1000px;
}

.guess-letter {
  display: inline-block;
  /* ... existing styles ... */
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip {
  transform: rotateX(180deg);
}

/* Front and back of the letter during flip */
.guess-letter-front,
.guess-letter-back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.guess-letter-back {
  transform: rotateX(180deg);
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 3s ease-out;
}

#wordle-container {
  /* ... existing styles ... */
  border: 1px solid #B0BEC5;
  /* Light Blue Grey */
  opacity: 0;
  /* Start invisible */
  animation: fadeIn 3s;
  opacity: 1;
}


#score {
  font-size: 3em;
  color: white;
  /* Blue Grey */
  margin: 10px;
    margin-left: 30%;
}






@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  position: relative;
  display: inline;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to bottom, #5d326c, #350048);
  /*fiolet*/
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/*
.container {
  width: 1000px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  
    flex-direction: row; 
}
*/


.container {
  width: 100%; /* Adjusted for full width */
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap to the next line if space runs out */
  justify-content: space-around; /* Evenly space out the buttons with space around them */
  flex-direction: row; /* Align children in a row */
  align-items: center; /* Center items vertically */
}


.container .btn {
  position: relative;
  top: 0;
  left: 0;
  width: 250px;
  height: 50px;
  margin: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .btn a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 10px;
  letter-spacing: 1px;
  text-decoration: none;
  overflow: hidden;
  color: #fff;
  font-weight: 400px;
  z-index: 1;
  transition: 0.5s;
  backdrop-filter: blur(15px);
}

.container .btn:hover a {
  letter-spacing: 3px;
}

.container .btn a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(45deg) translate(0);
  transition: 0.5s;
  filter: blur(0px);
}

.container .btn:hover a::before {
  transform: skewX(45deg) translate(200px);
}

.container .btn::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translatex(-50%);
  bottom: -5px;
  width: 30px;
  height: 10px;
  background: #f00;
  border-radius: 10px;
  transition: 0.5s;
  transition-delay: 0.5;
}

.container .btn:hover::before

/*lightup button*/
  {
  bottom: 0;
  height: 50%;
  width: 80%;
  border-radius: 30px;
}

.container .btn::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translatex(-50%);
  top: -5px;
  width: 30px;
  height: 10px;
  background: #f00;
  border-radius: 10px;
  transition: 0.5s;
  transition-delay: 0.5;
}

.container .btn:hover::after

/*lightup button*/
  {
  top: 0;
  height: 50%;
  width: 80%;
  border-radius: 30px;
}

.container .btn:nth-child(1)::before,
/*chnage 1*/
.container .btn:nth-child(1)::after {
  background: #ff1f71;
  box-shadow: 0 0 5px #ff1f71, 0 0 15px #ff1f71, 0 0 30px #ff1f71,
    0 0 60px #ff1f71;
}

.container .btn:nth-child(2)::before,
/* 2*/
.container .btn:nth-child(2)::after {
  background: #2db2ff;
  box-shadow: 0 0 5px #2db2ff, 0 0 15px #2db2ff, 0 0 30px #2db2ff,
    0 0 60px #2db2ff;
}

.container .btn:nth-child(3)::before,
/* 3*/
.container .btn:nth-child(3)::after {
  background: #1eff45;
  box-shadow: 0 0 5px #1eff45, 0 0 15px #1eff45, 0 0 30px #1eff45,
    0 0 60px #1eff45;
}


@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP:400,500&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* display the wrapping container in the top right corner of the viewport */
.notification {
  position: fixed;
  top: 0.5rem;
  right: 1rem;
  /* align the content to the rigth */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: hsl(0, 0%, 20%);
  /* hide the overflow to conceal the message when translated to the right of the container */

  /* padding to avoid cropping the box-shadow on the message */
  padding: 0.25rem;
}

/* reduce the size of the icon and give a white fill to the elements of the graphic */
.notification__bell {
  display: block;
  width: 48px;
  height: auto;
  fill: hsl(0, 0%, 100%);
}


/* when the .notification container is given a class of .received animate the body and clapper of the bell to swing
! animate the clapper with a slight delay as to follow through the animation of the main body
*/
.notification.received .bell__body {
  animation: swingBody 0.7s 0.02s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.notification.received .bell__clapper {
  animation: swingClapper 0.7s 0.04s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
/* ! for both elements the rotation occurs using the parent group element as a hinge, allowing for the pendulum-like swing */
@keyframes swingBody {
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}
/* animation for the clapper, following the main body and with a larger rotation */
@keyframes swingClapper {
  5% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  80% {
    transform: rotate(8deg);
  }
}

/* style the content of the message to show a grid with the dismiss button in the top right corner
|h1  |  button |
|p   |p        |
*/
.notification__message {
  display: grid;
  grid-gap: 0.2rem;
  grid-template-columns: 1fr auto;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  /* style the div as a rounded rectangle with a border on the left segment */
  background: hsl(0, 0%, 100%);
  border-radius: 10px;
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.1), 0 2px 3px hsla(0, 0%, 0%, 0.1);
  border-left: 0.5rem solid hsl(0, 0%, 100%);
  /* by default hide the element from sight and include a transition for the chosen properties */
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition-property: transform, opacity, visibility;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  position: absolute;
  width: 300px;
  right: 0;
  top: 100%;
  pointer-events: none;

}
.notification__message h1 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: capitalize;
  position: static;
  color: inherit;
}
.notification__message p {
  max-width: 320px;
  font-size: 0.8rem;
  grid-column: 1/-1;
}
.notification__message button {
  background: none;
  border: none;
  color: inherit;
  width: 20px;
  height: 20px;
  grid-column: 2/3;
  grid-row: 1/2;
  align-self: center;
  margin: 0;
  padding: 0;
}
.notification__message button svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* when the .notification container has a class of .received transition the message into view */
.notification.received .notification__message {
  transform: translateX(0%);
  opacity: 1;
  visibility: visible;
}
/* change the border color according to the different modifiers
! for each modifier specify also an svg icon in the background, to highlight the message
*/
.message--info {
  border-left-color: #90dee9;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle stroke="none" fill="%2390dee9" cx="50" cy="22" r="8"></circle><path fill="none" stroke="%2390dee9" stroke-width="12" stroke-linejoin="round" stroke-linecap="round" d="M 45 40 h 5 v 40 h -5 h 10"></path></svg>'),
    hsl(0, 0%, 100%);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 100% 100%;
}
.message--success {
  border-left-color: hsl(120, 67%, 74%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="none" stroke="%2390e990" stroke-width="12" stroke-linejoin="round" stroke-linecap="round" d="M 20 52 l 25 25 l 30 -50"></path></svg>'),
    hsl(0, 0%, 100%);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 100% 100%;
}
.message--bonus {
  border-left-color: hsl(54, 67%, 74%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="none" stroke="%23e9e090" stroke-width="12" stroke-linejoin="round" stroke-linecap="round" d="M 50 18 v 40"></path><circle stroke="none" fill="%23e9e090" cx="50" cy="78" r="8"></circle></svg>'),
    hsl(0, 0%, 100%);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 100% 100%;
}
.message--record {
  border-left-color: hsl(120, 67%, 74%);
 /*  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="none" stroke="%2390e990" stroke-width="12" stroke-linejoin="round" stroke-linecap="round" d="M 20 52 l 25 25 l 30 -50"></path></svg>'),  hsl(0, 0%, 100%); */
  
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="none" stroke="%2390e990" stroke-width="12" stroke-linejoin="round" stroke-linecap="round" ></path></svg>'),  hsl(0, 0%, 100%);
  
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 100% 100%;
}

.message--strong {
  border-left-color: hsl(120, 67%, 74%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="none" stroke="%2390e990" stroke-width="12" stroke-linejoin="round" stroke-linecap="round" d="M 20 52 l 25 25 l 30 -50"></path></svg>'),
    hsl(0, 0%, 100%);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 100% 100%;
}

.message--low {
  border-left-color: #90dee9;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle stroke="none" fill="%2390dee9" cx="50" cy="22" r="8"></circle><path fill="none" stroke="%2390dee9" stroke-width="12" stroke-linejoin="round" stroke-linecap="round" d="M 45 40 h 5 v 40 h -5 h 10"></path></svg>'),
    hsl(0, 0%, 100%);
  background-repeat: no-repeat;
  background-size: 35px;
  background-position: 100% 100%;
}


@media(max-width:767.98px){
  .notification {

    right: 0.5rem;

}
.notification__bell {

  width: 30px;

}
#virtual-keyboard {

  margin-top: 45px;
}
#difficulty {
  padding: 5px;
  margin: 5px;

}
label[for="difficulty"] {
  font-size: 16px;


}
#guess-input {

  font-size: 1em;

}
canvas {

  max-width: 135px;
}
.container .btn {

  height: 40px;
  margin: 1em;

}
}