@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700;800&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  display: grid;
  place-content: center;
  color: hsl(270, 10%, 80%);
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to top right, hsl(270, 50%, 50%), hsl(290, 60%, 70%));
  max-height: 100vh;
  max-width: 100vw;
  padding: 2.1rem;
  overflow-x: hidden;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

button {
  font-size: inherit;
  font-family: inherit;
}

button:hover,
button:focus {
  outline: none;
}

a,
a:hover,
a:focus {
  outline: none;
  text-decoration: none;
}

.dash {
  background: #1a0d26;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 4px 4px 30px hsla(270, 30%, 10%, .4);
  max-width: 1266px;
}

.dash * {
  transition: all .1s;
}

.header {
  height: 1rem;
  display: flex;
  align-items: center;
  z-index: 2;
  box-shadow: 0 4px 12px hsla(270, 30%, 3%, .2);
}

.header__heading {
  width: 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__heading>a {
  font-weight: bold;
  letter-spacing: 2px;
  color: hsl(270, 50%, 10%);
  background: hsl(220, 60%, 60%);
  padding: .2rem .7rem;
  font-size: 1.5rem;
  border-radius: 4px;
}

.header__heading>a:hover {
  background: hsl(220, 80%, 64%);
}

.header__search {
  flex-grow: 1;
  padding: 0 8.6rem;
}

.header__search-icon {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 3.8rem;
  background: hsl(270, 32%, 17%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.header__search-icon:hover {
  background: hsl(270, 32%, 20%);
}

.header__search-icon>svg {
  height: 1.6rem;
  opacity: .4;
}

.header__search-icon:hover>svg {
  opacity: .7;
}

.header__options {
  padding-right: 2.8rem;
}

.header__pro {
  color: #eef0ff;
  background: linear-gradient(to top right, #546FFF, #8A9CFF);
  border: 0;
  margin-right: 5rem;
  font-size: 1.2rem;
  padding: .7rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.header__link {
  font-size: 1.4rem;
  opacity: .8;
  color: inherit;
}

.header__link:first-of-type:hover {
  opacity: 1;
}

.header__link:not(:first-of-type) {
  margin-left: 2rem;
  opacity: 1;
}

.body {
  flex-grow: 2;
  display: flex;
}

.sidebar {
  width: 8rem;
  box-shadow: 2px 0 12px hsla(270, 30%, 10%, .2);
}

.sidebar__icon {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 4rem;
  cursor: pointer;
}

.sidebar__icon:first-of-type {
  margin-top: 5rem;
}

.sidebar__icon:not(:first-of-type) {
  opacity: .3;
}

.sidebar__icon:not(:first-of-type):hover {
  opacity: 1;
}

.sidebar__icon:last-child {
  margin-top: 10rem;
}

.sidebar__icon>svg {
  height: 2.2rem;
}

.ss-heading {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: hsl(235, 5%, 70%);
}

.ss-show {
  color: hsl(210, 60%, 60%);
  font-size: 1.2rem;
}

.ss-show:hover {
  color: hsl(210, 70%, 70%);
}

.ss-dots {
  display: flex;
}

.ss-dots>span {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 6px;
  margin-right: 2px;
  opacity: .6;
  cursor: pointer;
}

.ss-dots>span:hover {
  opacity: 1;
}

.main {
  flex-grow: 2;
  background: linear-gradient(to right top, hsla(270, 50%, 8%, .5), hsla(270, 50%, 8%, .6) 20%, hsla(270, 50%, 8%, .1)), linear-gradient(to right bottom, hsl(270, 50%, 8%), transparent 66%), linear-gradient(to bottom, transparent, hsl(270, 50%, 8%) 56%), url("https://images.unsplash.com/photo-1581866327034-c4579d75eb63?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=500&ixid=eyJhcHBfaWQiOjF9&ixlib=rb-1.2.1&q=80&w=1215") no-repeat;
  background-size: auto 510px;
  padding: 3rem 0 0 6rem;
  display: flex;
  border-radius: 8px;
}

.main__col-1 {
  width: 30%;
}

.main__heading {
  font-size: 3rem;
  font-weight: 300;
  display: flex;
  align-items: center;
}

.main__heading>span {
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  margin-right: 1.6rem;
  margin-bottom: -2px;
}

.main__heading svg {
  height: .7em;
}

.main__desc {
  margin: 0rem 0 0rem;
  font-size: 1.4rem;
  opacity: .6;
  width: 35rem; /* Fixed width */
  white-space: nowrap; /* Prevents wrapping to next line */
  overflow: hidden; /* Hides overflow content */
  text-overflow: ellipsis;
}

.main__sub {
  font-size: 1.2rem;
}

.main__sub span:first-of-type {
  opacity: .4;
}

.main__list-heading-wrap {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: bold;
  margin: 0rem 0 3rem;
}

.main__list-heading {
  flex-grow: 2;
}

.main__list {
  list-style: none;
  position: relative;
}

.main__list::before {
  content: "Fun";
  position: absolute;
  bottom: 6%;
  left: 2%;
  opacity: .04;
  font-size: 18rem;
  font-weight: bold;
}

.main__list-item {
  padding: 0 0 5.7rem 2rem;
  border-left: 2px solid hsla(0, 0%, 50%, .2);
  position: relative;
  display: flex;
  color: #9D9DAC;
}

/* .main__list-item:first-of-type .main__list-content {
  color: hsl(240, 8%, 90%);
} */

.main__list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: hsl(210, 70%, 70%);
  transform: translateX(-3px);
}

.main__list-item:first-of-type::before {
  top: 0;
}

.main__list-item:first-of-type .main__list-content {
  line-height: .3;
}

.main__list-item:last-of-type {
  padding-bottom: 2.6rem;
}

.main__list-item-image {
  width: 4rem;
  height: 4rem;
  border-radius: 1px;
  margin-right: 1rem;
  box-shadow: 0 2px 10px hsla(270, 30%, 2%, .6);
}

.main__list-item-image img {
  border-radius: inherit;
}

.main__list-content {
  font-size: 1.4rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.main__list-content:hover {
  color: hsl(240, 8%, 90%);
  text-decoration: underline;
}

.main__list-sub {
  margin-top: .4rem;
  font-size: 1.1rem;
  opacity: .6;
}

.main__col-2 {
  width: 70%;
  padding-left: 6rem;
}

.main__cards-container {
  width: 70%;
  border-radius: 8px;
  padding: 3rem;
  background: hsl(270, 50%, 11%);
  box-shadow: 0 6px 16px 0 hsla(270, 30%, 3%, .4);
  margin-left: auto;
  transform: translate(-25rem,15rem)
}

.main__cards-container-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.main__cards-container-heading {
  flex-grow: 2;
  align-items: center;
}

.main__cards {
  list-style: none;
  padding: 2.6rem 0 2rem;
  display: flex;
}

.main__card {
  color: hsla(0, 0%, 100%, .8);
  transform: translateX(-12.5rem);
  flex-shrink: 0;
  margin-left: 2.5rem;
  width: 21rem;
  border-radius: 8px;
  text-align: right;
  padding: 2.2rem;
  box-shadow: 0 2px 12px hsla(var(--hue), 50%, 60%, .2), 0 4px 32px hsla(var(--hue), 50%, 60%, .2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.main__card:hover {
  transform: translateX(-12.5rem) translateY(-5px);
  box-shadow: 0 4px 20px hsla(var(--hue), 50%, 60%, .3), 0 6px 40px hsla(var(--hue), 50%, 60%, .3);
}

.main__card-image-container {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.main__card-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, hsla(var(--hue), 60%, 60%, .3), 40%, hsl(var(--hue), 70%, 60%));
}

.main__card-heading {
  font-size: 2rem;
  font-weight: normal;
}

.main__card-heading-sub {
  margin-top: .4rem;
  font-size: 1.2rem;
}

.main__card-heading-type {
  margin-top: 2.8rem;
}

.main__cards-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main__cards-buttons>button {
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.main__cards-buttons>button:hover {
  opacity: 1 !important;
}

.main__cards-buttons svg {
  height: 1.6rem;
}

.main__crossing-container {
  width: 88%;
  background-color: hsl(270, 50%, 11%);
  background-image: linear-gradient(120deg, hsla(26, 80%, 50%, .5), 10%, hsl(270, 50%, 11%) 60%), url("https://images.unsplash.com/photo-1506197603052-3cc9c3a201bd?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=100&ixid=eyJhcHBfaWQiOjF9&ixlib=rb-1.2.1&q=80&w=600");
  box-shadow: 0 6px 16px 0 hsla(270, 30%, 3%, .4);
  border-radius: 8px;
  padding: 2rem 3.6rem;
  display: flex;
  align-items: center;
  transform: translate(-2rem, 2.4rem);
  position: relative;
  z-index: 2;
}

.main__crossing-image {
  border: 3px solid hsl(215, 60%, 40%);
  border-right-color: transparent;
  box-shadow: 0 0 12px hsla(270, 30%, 10%, .4);
  transform: rotate(-45deg);
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 5.4rem;
  overflow: hidden;
}

.main__crossing-image>img {
  width: 5.4rem;
  transform: translate(-3px, -3px) rotate(45deg);
  border-radius: 5.4rem;
  border: 6px solid transparent;
}

.main__crossing-current {
  flex-grow: 2;
  margin-left: 3rem;
}

.main__crossing-upper {
  text-transform: uppercase;
  margin-bottom: .6rem;
  letter-spacing: 2px;
}

.main__crossing-heading {
  font-weight: normal;
  font-size: 1.6rem;
}

.main__discover {
  width: 88%;
  background-color: hsl(270, 50%, 11%);
  box-shadow: 0 8px 12px 0 hsla(270, 30%, 5%, .2);
  border-radius: 8px;
  padding: 8rem 3.6rem 2rem;
  margin-left: auto;
  transform: translate(1.4rem, -2.1rem);
}

.main__discover-heading-container {
  display: flex;
  align-items: center;
}

.main__discover-heading {
  flex-grow: 2;
}

.main__discover-places {
  padding: 4rem 0 1rem;
  list-style: none;
  display: flex;
  align-items: center;
}

.main__discover-place {
  flex-shrink: 0;
  margin-right: 1.4rem;
  background: hsl(270, 50%, 15%);
  transform: translateX(-8rem);
  padding: 1.6rem;
  width: 24%;
  border-radius: 8px;
  box-shadow: 0 4px 10px 0 hsla(270, 30%, 7%, .2);
  cursor: pointer;
}

.main__discover-place:hover {
  background: hsl(270, 50%, 17%);
}

.main__discover-place-heading {
  font-size: 1.4rem;
  font-weight: normal;
  margin-bottom: 6px;
}

.main__discover-place-sub {
  font-size: 1rem;
  opacity: .4;
}

.main__discover__more {
  margin-top: 3.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main__discover__more-svg {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
}

.main__discover__more svg {
  height: 2.6rem;
  transform: translate(2.4px, 1.6px);
}

.main__discover-right {
  opacity: .6;
  margin-left: -45px;
  cursor: pointer;
}

.main__discover-right:hover {
  opacity: 1;
}

.main__discover-right>svg {
  height: 1.6rem;
}

.main__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .2rem 0 2.3rem 10rem;
}

.main__footer-more svg {
  height: 1em;
  vertical-align: middle;
}

.main__info {
  display: flex;
  align-items: center;
}

.main__info-link {
  color: inherit;
  font-size: 1.4rem;
}

.main__info-link:hover {
  color: #fff;
}

.main__info-link:hover svg {
  opacity: .7;
}

.main__info-link svg {
  height: 1.4em;
  transform: translateY(1px);
  opacity: .4;
}

.main__info-link+.main__info-link {
  margin-left: .6rem;
}

.main__cp {
  margin: 0 1rem 0 2.6rem;
}

.main__cr {
  opacity: .4;
  margin-right: 5rem;
}

.main__cr:hover {
  opacity: .7;
}

h1 {
   text-align: center;
   color: #fff;
   padding-bottom: 2.75rem;
  }
  
  #game-board {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
  
  .letter-box {
    border: 3px solid rgb(97, 4, 82);
    border-radius: 10px;
    margin: 2px;
    font-size: 2.5rem;
    font-weight: 700;
    height: 4.7rem;
    width: 4.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
  }
  
  .filled-box {
    border: 2px solid black;
  }
  
  .letter-row {
    display: flex;
    padding-top: 0.3rem;
  }
  
  #keyboard-cont {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #keyboard-cont div {
    display: flex;
  }
  
  .second-row {
    margin: 0.3rem 0;
  }
  
  .keyboard-button {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.2rem;
    margin: 0 2px;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 6px;
    border: none;
    background-color: #d3d6da;
    color: #1a1a1b;
    transition: background-color 0.3s ease;
  }

  .keyboard-button:hover {
    background-color: #bbb;
  }

  .keyboard-button[data-key="Enter"],
  .keyboard-button[data-key="Backspace"] {
    font-size: 1.2rem;
    padding: 1.2rem 0.8rem;
  }

  #new-game-btn {
   position: fixed;
   top: 20px;
   left: 30%;
   padding: 8px 12px;
   font-size: 14px;
   font-weight: bold;
   color: #ffffff;
   background-color: rgb(97, 4, 82);
   border: none;
   border-radius: 6px;
   cursor: pointer;
   transition: background-color 0.4s ease;
   z-index: 1000;
}

#new-game-btn:hover {
   background-color: #691d5d;
}

#new-game-btn:active {
   transform: scale(1.0);
}
#root {
  margin:auto;
}

#view1, #view2 {
  text-align: center;
}

button {
  background-color: white !important;
  color:black !important;
  margin-top: 1em;
}

#gameView p, #resultView p  {
  margin: 1em 2em;
}

.cell {
  display: inline-block;
  border: 1px solid black;
  width: 150px;
  height: 150px;
  background-color: white;
  overflow: hidden;
  color: black;
  font-size: 100px;
  text-align: center;
}

#row0 .col0 {
  border-top-left-radius: 10px;
}
#row0 .col2 {
  border-top-right-radius: 10px;
}
#row2 .col0 {
  border-bottom-left-radius: 10px;
}
#row2 .col2 {
  border-bottom-right-radius: 10px;
}

.cell.winningLine {
  color:green;
}
.game-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
}

.player-input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #000000;
  border-radius: 4px;
  width: 200px;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.symbol-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.game-info {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
}

.score-info {
  font-size: 16px;
  color: #ffffff;
  margin-top: 15px;
}

.player-name {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
}

.result-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: #691d5d;
  text-align: center;
  margin-bottom: 20px;
}

.restart-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  color: #ffffff;
  font-weight: normal;
}

/* .winningLine {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #28a745;
  color: white;
} */

@media print {
  body {
    display: none; /* Hides content when trying to print */
  }
}