html {
    min-height: 100%;
    height: 100%;
    overscroll-behavior: none;
}
body {
    background: linear-gradient(
    180deg,
    #7729aa -13.13%,
    #170a2d 0.17%,
    #0a061d 6.9%,
    rgba(10, 6, 30, 0.99) 36.38%,
    #010311 98.59%
  );
    color: grey;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
#title-description {
    text-align: center;
}
h1, p {
    color: white;
    margin: 0;
}
footer {
    margin-top: auto;
}
main h1 {
	font-size: 58px;
	margin: 0;
	padding: 40px 0 20px 0;
	display: inline-flex;
}
main p {
    font-size: 28px;
    line-height: 34px;
    margin: 28px 0;
    font-weight: bold;
}
.inner-content {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
	margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.window {
    min-height: 78vh;
    border-radius: 3px;
    padding: 1.5rem;
}
.title {
    font-size: 24px;
    margin: 0 auto;
    margin-bottom: 1rem;
}
.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 350px;
    animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.15s;
}
.game-window {
    flex: 3;
    /* display: flex; */
    padding: "0.5rem";
    flex-wrap: wrap;
    min-height: 82vh;
    animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.25s;
    max-width: 65vw;
    min-height: 100%;
    background-color: transparent;
}
input[type=text] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    background-color: #444444;
    border-style: none;
}
.form {
    margin: 2rem 0;
}
.start-button {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    color: rgb(78, 78, 78);
    background: #1c1c1c;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.tutorial-button {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    color: white;
    background: linear-gradient(94deg, #554c59, #353435);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.prompts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.prompt-item {
    max-width: 32.5%;
    width: 32.5%;
    height: 32.5%;
    background: #4a36b1;
    margin: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.prompt-item img {
    -webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
    opacity: 0.75;
    filter: brightness(70%);
}
.prompt-item img:hover {
	-webkit-transform: scale(1.3);
	transform: scale(1.3);
    filter: brightness(100%);
    opacity: 1;
}
.image {
    background-color: #4a36b1;
    max-height: 100%;
    min-width: 200px;
    flex: 1;
    width: 40%
}
#game-window {
    display: none;
}
.game-window {
    /* display: flex; */
    flex-wrap: wrap;
}
.description-container {
    flex: 8;
}
.image-container {
    flex: 2;
    max-height: 100%;
    /* max-width: 100%;
    height: 100%; */
    width: auto;
    background-color: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
}
.try-it-result-area {
    aspect-ratio: 1; 
    max-height: 100%;
    object-fit: cover;
}
.game-panel {
    display: flex;
    /* flex: 2; */
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* padding: 1rem 0.5rem; */
}
.user-container {
    display: flex;
    justify-content: right;
}
.user {
    border-radius: 100%;
    width: 35px;
    height: 35px;
    background-color: grey;
    margin: 2px;
}
.action-container {
    margin: 1rem 1rem;
}
.action {
    transition: height 0.25s ease-out;
    padding: 2rem 1.75rem;
    background-color: #1c1c1c;
    color: grey;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.gamelog {
    border-radius: 3px;
    padding: 0.25rem 0.25rem;
    margin: 0.5rem 0;
    color: grey;
    font-size: 11px;
    max-height: 16vh;
    overflow-y: auto;
}
.progressBar {
    height: 10px;
    background: #61b1ff;
    border-radius: 10px;
    margin: 5px 0;
    width: 0%; 
}
#progressContainer {
    width: 100%;
}
#back-arrow {
    color: grey;
    padding-left: 0.75rem;
    cursor: pointer;
    font-size: 13px;
    -webkit-transition: .2s ease-in-out;
	transition: .2s ease-in-out;
    width: fit-content;
}
#back-arrow:hover {
    color: rgb(255, 121, 121);
    text-decoration: underline;
}
.past-description, .description {
    color: #b4b4b4;
    font-size: 18px;
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    overflow-anchor: auto;
    overscroll-behavior-y: contain;
    background-color: transparent;
}
.game-objective {
    background-color: #1c1c1c;
    color: rgb(188, 188, 188);
    font-size: 14px;
    padding: 0.5rem 1.5rem;
    border-radius: 3px;
    width: 100%;
}
.game-log-title {
    color: grey;
    font-size: 12px;
    margin-bottom: 1rem;
}
.image-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 0.5rem;
    background: linear-gradient(transparent 150px, rgb(0, 0, 0));
    font-size: calc(12px + 0.25rem);
    text-align: center;
    text-shadow: 1px 1px 25px black, 0 0 25px rgb(0, 0, 0), 0 0 5px rgb(0, 0, 0);
}
.border {
    border: 3px solid #AAAAAA;
}
.opacity {
    opacity: 1;
}
.header {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}
.question {
    background-color: #343434;
    color: white;
    border: none;
    padding: 3px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out;
    margin-left: 1rem;
}
.question:hover {
    background-color: #4b4b4b;
}
.shuffle {
    background-color: #343434;
    /* color: white; */
    border: none;
    /* padding: 3px 8px; */
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out;
    margin-left: auto;
}
#theme-button {
    background-color: #343434;
    display: block;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    font-size: 22px;
    border: none;
}
#theme-button:hover {
    background-color: #4b4b4b;
}
#theme-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(0.85);
}
.healthBarContainer {
    max-width: 100%;
    display: flex;
}
.healthBar {
    width: 100%;
    background-color: #54a4c4;
    margin: 0.25rem 1rem;
    padding: 0 0.5rem;
}
.skeleton {
    width: 100%;
    height: 30px;
}
.background-panel {
    width: 100%;
    overflow-anchor: none;
}
.game-over {
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 1s;
}
.game-over b {
    color: #a3a8ac;
    font-size: calc(24px + 0.5vw);
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: display 0.5s ease-in-out;
}
.modal-content {
    background-color: rgb(43, 43, 43);
    border-radius: 10px;
    padding: 20px;
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.25s;
    animation-name: fadeIn;
    animation-duration: 0.25s
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}
.close:hover {
    color: #c9c9c9;
}
.sentence {
    margin: 1rem 0;
    color: grey;
}
hr.solid {
    border-top: 3px solid grey;
}
.card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0px;
    right: -40px;
    height: 125px;
    background-color: #323232;
    border: 1px solid #a1a1a1;
    border-radius: 5px;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transform: rotate(25deg);
}

/* Style for the card text */
.card-text {
    font-size: 16px;
    color: #9d9d9d;
}

/* Hover effect */
.card-container:hover {
    background-color: #393939;
    transform: rotate(10deg);
}

#inputForm {
    display: flex;
    padding: 0.5rem 1.5rem;
    background-color: #232323;
    border-radius: 4px;
    align-items: center;
    position: relative;
}

input[type=text] {
    background-color: #232323;
}

input[type=text], select {
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    font-size: calc(14px + 0.3vw);
}

button[type=submit] {
    display: block;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    font-size:22px;
    background-color: #414141;
    border: none;
}

#send-icon, #icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(0.85);
}

.loader {
    display: none;
    border: 3px solid #848484;
    border-radius: 50%;
    border-top: 3px solid #3498db;
    min-width: 30px;
    height: 30px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    margin-right: 1rem;
    margin-left: auto;
  }
  
  /* Safari */
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

#share-button {
    display: flex;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    margin-left: auto;
}

#hint-button {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: #6f6a99;
    display: block;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    font-size: 22px;
    border: none;
}

button[type=submit]:hover {
    background-color: #4a4a4a;
}
.desc-item {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
}
.desc-item-two {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
    padding-top: 1.5rem;
}
.player-move {
    border-left-style: solid;
    border-width: 0.5;
    padding: 1.5rem;
    margin: 1rem;
    color: grey;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    opacity: 1;
  }

.tooltiptext {
    padding: 5px;
}
  
.tooltip .tooltiptext {
    visibility: hidden;
    width: 80px;
    background-color: rgb(50, 45, 50);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -40px;
}
  
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgb(50, 45, 50) transparent transparent transparent;
}
  
.tooltip:hover .tooltiptext {
    visibility: visible;
}

@-webkit-keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}

}
@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@keyframes shiftBackground {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@media only screen and (min-width: 600px) {
    .game-window {
        flex-direction: column;
        flex-wrap: wrap;
        min-height: 70%;
        max-height: 100%;
        min-width: 600px;
        width: 70%;
    }
    .game-panel {
        min-width: 400px;
    }
    .image-container {
        width: 100%; 
        height: auto;
        background-color: #1c1c1c;
    }
    .end-image-container {
        position: relative;
        width: calc(400px + 2vw); 
        height: auto;
        margin: 1rem 0;
        background-color: #1c1c1c;
    }
    .try-it-result-area {
        height: 100%;
        width: auto;
        max-width: 100%;
        margin: 0;
    }
    .end-img {
        width: 100%;
        height: auto;
        margin: 0;
    }
    .end-description {
        text-align: center;
        width: 50vw;
        min-width: 500px;
        margin-bottom: 1rem;
        padding: 0.5rem;
    }
    .background-panel {
        min-width: 400px;
        height: 55vh;
        max-height: 55vh;
        overflow-y: scroll;
        overflow-anchor: none;
    }
    .action {
        width: 100%;
        font-size: calc(12px + 0.3vw);
    }
    .past-description, .description {
        font-size: calc(18px + 0.2vw);
    }
    .game-log-title {
        font-size: calc(12px + 0.3vw);
    }
    .gamelog {
        font-size: calc(12px + 0.2vw);
    }
    #back-arrow {
        font-size: calc(13px + 0.2vw);
    }
    .sidebar {
        max-width: calc(80rem - 5vw - 10vh);
        max-height: 100%;
    }
    .prompt-item {
        max-width: 30%;
        width: 30%;
        height: auto;
        background: #4a36b1;
        margin: 1px;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }
}

@media only screen and (max-width: 600px) {
    #game-window {
        max-width: 100vw;
    }
    .inner-content {
        max-height: 100%;
    }
    .window {
        margin: 1rem 1rem;
    }
    .image {
        height: 150px;
    }
    .end-image-container {
        width: 100%; 
        height: auto;
        background-color: #1c1c1c;
        position: relative;
        overflow-x: hidden;
        overflow-y: hidden;
    }
    .card-container {
        bottom: 0px;
        right: 0px;
    }
    .end-img {
        width: 100%;
    }
    .end-description {
        font-size: 12px;
        text-align: center;
        margin: 0 1rem;
    }
    .modal-content {
        width: 90%;
        max-height: 80vh;
        overflow: scroll;
    }
    #inputForm {
        width: 100%;
    }
    .background-panel {
        min-width: 100%;
        height: 55vh;
        max-height: 55vh;
        overflow-y: scroll;
        overflow-anchor: none;
    }
    .header {
        width: 100%;
    }
    .try-it-result-area {
        max-height: 100%;
        max-width: 100%;
        background-color: #1c1c1c;
    }
    .desc-item, .desc-item-two {
        flex-wrap: wrap;
        flex-direction: column;
    }
    #share-button {
        margin-right: 2.5rem;
        margin-bottom: 0.25rem;
    }    
}

@media (min-aspect-ratio: 11/5) {
    .prompts {
        flex-wrap: nowrap;
    }
    .sidebar {
        max-width: 85%;
    }
}