.rainbow{ 
    height: 50px; 
    width: 100%; 
    background: linear-gradient(to bottom, #007bbf 0% 20%, #da2430 20% 40%, #111012 40% 60%, #ffed00 60% 80%, #36a73e 80% 100%);
}

body {
    background: linear-gradient(to right, lightgray 0%, white 40% 60%, lightgray 100%);
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    margin: 0px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0px;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

html, body {
    scrollbar-width: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}

.menu-button {
    font-family: Nunito, 'Times New Roman', serif;
    border-radius: 20px;
    height: 30px;
    width: 100px;
    font-size: 15px;
    font-weight: 600;
    padding-left: 15px;
    padding-right: 15px;
    cursor: pointer;
    color: white;
}

.legend-box {
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    width: 100px; 
    padding: 10px; 
    margin: 5px; 
    text-align: center; 
    color: white; 
    border-radius: 10px;
}

.difficultyTitle{
    margin: 5px; 
    font-size: 20px;
}

#sidebar.no-transition {
    transition: none;
}

#sidebar::-webkit-scrollbar {
    display: none;
}

#sidebar {
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
    overflow-y: overlay;
    scrollbar-width: none;
    height: 640px; 
    width: 500px; 
    z-index: 100; 
    padding: 10px 30px; 
    flex-direction: column;
    gap: 5px;
    background-color: white; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    border-radius: 30px; 
    border: 4px solid black;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}


#sidebar.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0px);
}

#howtoplaybutton.active-page-btn, #attributesbutton.active-page-btn {
    background-color: black;
    color: white;
}
#howtoplaybutton, #attributesbutton {
    background-color: white;
}

#directionsPage::-webkit-scrollbar {
    display: none;
}

#directionsPage {
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5); 
    overflow-y: overlay;
    scrollbar-width: none;
    height: 640px;
    width: 500px; 
    z-index: 100; 
    padding: 10px 30px; 
    flex-direction: column; 
    gap: 10px; 
    background-color: white; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    border-radius: 30px; 
    border: 4px solid black;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(30px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

#directionsPage.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0px);
}

#statistics.no-transition {
    transition: none;
}

#statistics::-webkit-scrollbar {
    display: none;
}

#statistics {
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
    overflow-y: overlay;
    scrollbar-width: none;
    height: 640px; 
    width: 500px; 
    z-index: 100; 
    padding: 10px 30px; 
    flex-direction: column;
    gap: 5px;
    background-color: white; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    border-radius: 30px; 
    border: 4px solid black;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#statistics.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0px);
}

.closebutton {
    background: none; 
    border: none; 
    cursor: pointer; 
    font-size: 30px;
    font-weight: 600; 
    position: fixed; 
    top: 5px; 
    Right: 10px;}

.bigButton {
    border-radius: 20px; 
    height: 40px; 
    width: 180px; 
    font-size: 20px; 
    font-weight: 600; 
    background-color: black; 
    color: white; 
    padding-left: 15px; 
    padding-right: 15px; 
    cursor: pointer; 
    font-family: Nunito, 'Times New Roman', serif;
}

.revealed-tile {
    background-color: green;
    width: 150px; 
    height: 120px; 
    padding: 10px; 
    margin: 5px; 
    text-align: center; 
    color: white; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-direction: column;
}

.label{
    font-weight: 600;
    margin: 10px; 
    font-size: 20px;
}

.value{
    font-size: 25px;
    margin: 10px;
}

.grayline{
    width: 500px; 
    border: 1px solid lightgray; 
    margin: auto;
}

.directSentence{
    font-size: 20px; 
    display: inline;
    font-weight: 500;
}

.settingTitle{
    font-size: 20px; 
    margin: 0px; 
    padding-bottom: 5px; 
    padding-top: 5px;
    font-family: Nunito, 'Times New Roman', serif;
}

.directionsTitle{
    font-weight: 600px; 
    margin: 0px; 
    padding-top: 10px; 
    font-size: 50px; 
    font-family: Nunito, 'Times New Roman', serif;
}

.menuText{
    Text-align: center; 
    font-family: Nunito, 'Times New Roman', serif;
}

.directionNums{
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 2px solid black; 
    background-color: black; 
    color: white; 
    font-size: 25px;
    flex-shrink: 0;
}

.diffBox{
    display: inline; 
    border-radius: 20px; 
    width: 120px; 
    height: 150px; 
    padding: 10px; 
    margin: 5px; 
    text-align: center;
    color: white; 
    align-items: center; 
    flex-direction: column;
}

.diffExpl{ 
    margin-top: 0px; 
    font-size: 16px; 
    font-weight: 600; 
}

.attTitle{
    padding-top: 15px; 
    margin: 0px; 
    padding-bottom: 10px;
}

.grayText{
    color: gray; 
    font-weight: 500;
    margin-top: 0px;
}

.listBullet{
    font-weight: 500; 
    padding-left: 30px; 
    color: gray;
}

.welcome{
    vertical-align: middle;
    padding-bottom: 10px;
    padding-top: 14px;
    width: 450px; 
    padding-left: 47px;
    margin: 0px; 
    text-align: center; 
    font-weight: 650; 
    font-Size: 20px; 
    font-family: Nunito, 'Times New Roman', serif;
}

#suggestions {
    position: absolute;
    background-color: white;
    border: none;      
    border-radius: 20px;        
    overflow: hidden;            
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

#suggestions.visible {
    border: 1px solid #ccc;
    display: block;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.endMessage{
    font-size: 25px;
    text-align: center; 
    margin-bottom: 5px; 
    margin-top: 0px; 
    font-weight: 800; 
}

.mainLegend{
    width: 75px; 
    padding: 10px; 
    margin: 5px; 
    text-align: center; 
    color: white; 
    border-radius: 10px;
}

.tile {
    transition: transform 0.3s ease-in;
}

.tile.flip-out {
    transform: rotateX(90deg);
}

.tile.flip-in {
    transform: rotateX(0deg);
    transition: transform 0.3s ease-out;
}

#copyMessage {
    display: none;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: green;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#copyMessage.fade-out {
    opacity: 0;
}

.stat {
    font-size: 40px; 
    margin: 0px;
}

.statbox {
    display: inline; 
    text-align: center; 
    width: 100px;
}

.statlabel {
    margin-top: 10px;
    font-size: 15px;
}