body {
    margin: 0;
    padding: 0;
    font-family: 'Manjari', sans-serif;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 10px;
    padding: 10px;
    height: 80vh;
}

.ads {
    background-color: #f0f0f0;
    padding: 10px;
    text-align: center;
}

.ads-bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000; /* Ensure it stays above other elements */
    height: 54px;
}

@media screen and (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .ads {
        display: none;
    }
}

.dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    background-color: #fefefe;
    margin: 4% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    margin-top: 12vh;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

.letter.expanded {
    transform: scale(1.2);
}

.arrow {
    position: relative;
    /* display: inline-block; */
    width: 200px; /* Length of the arrow */
    height: 3px;  /* Thickness of the arrow */
    background-color: #9f9f9f; /* Color of the arrow */
}

.arrow:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px; /* Width of the arrowhead */
    margin-top: -10px; /* Half the height of the arrowhead */
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #9f9f9f; /* Color of the arrowhead */
}

.arrow-dn {
    position: relative;
    display: inline-block;
    width: 3px;  /* Thickness of the arrow */
    height: 200px; /* Length of the arrow */
    background-color: #9f9f9f; /* Color of the arrow */
}

.arrow-dn:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px; /* Height of the arrowhead */
    margin-left: -10px; /* Half the width of the arrowhead */
    border-width: 10px;
    border-style: solid;
    border-color: #9f9f9f transparent transparent transparent; /* Color of the arrowhead */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* margin-top: 10px; */
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 40px); /* Adjust to number of columns */
    grid-template-rows: repeat(5, 40px); /* Adjust to number of rows */
    gap: 25px; /* Adjust gap between grid items */
    /* border: 2px solid #000; */
    padding: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 215px;
    height: 40vh;
}

.game-board div {
    /* border: 1px solid #ccc; */
    border-radius: 10px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    width: 58px;
    height: 58px;
}

.score {
    font-size: 20px;
}

#result {
    font-family: "Manjari", sans-serif;
    font-size: 24px;
    margin-top: 20px;
}

#result div{
    font-family: "Manjari", sans-serif;
    font-size: 24px;
    margin-top: 20px;
}

.empty {
    border: none !important;
    box-shadow: none !important;
}

.manjari {
    font-family: "Manjari", sans-serif;
    /* font-weight: 500; */
    font-style: normal;
    /* font-size: 2em; */
}
.manjari-title {
    font-family: "Manjari", sans-serif;
    /* font-weight: 500; */
    font-style: normal;
    font-size: 2.5em;
}

.manjari-bold {
    font-family: "Manjari", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1.5em;
}

.letter div{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px; /* Adjust the value to increase or decrease spacing inside the div */
    /* box-sizing: border-box; */
    /* border: 1px solid #ccc;  */
    box-shadow: 0px -2px 5px 1px #dfff00b0 inset;
    width: 58px;
    height: 58px;
}

.letter {
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 30px;  */
    box-sizing: border-box;
    border: 1px solid #ccc; /* Optional: Add a border to see the div's edges */
    box-shadow: 0px -2px 5px 1px #dfff00b0 inset;
}

.greyed-out {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes starAnimation {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.star {
    display: inline-block;
    animation: starAnimation 0.5s ease-in-out;
    font-size: 24px;
    color: gold;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 60px; /* Adjust height as needed */
    margin-top: 10px;
}

.header .manjari-title {
    flex-grow: 1;
    text-align: center;
    font-size: 2em; /* Adjust font size as needed */
}

.help-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Ensure the button is above the animated ring */
}

.help-button:hover {
    color: #6FB05C; /* Optional: Add a hover color */
}

.ring {
    position: absolute;
    right: 10px;
    top: calc(50% - 18px);
    width: 32px;
    height: 32px;
    border: 2px solid #6FB05C;
    border-radius: 50%;
    border-right-color: transparent;
    border-top-color: transparent;
    animation: rotate 1s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#meaning {
    margin-top: 100px;
    margin-bottom: 100px;
}