.wordsearch-parent-container h2,
.wordsearch-parent-container h3,
.wordsearch-parent-container h4,
.wordsearch-parent-container h5,
.wordsearch-parent-container h6{
    font-family: "Poppins";
    font-weight: 600;
    line-height: 1.2em;
}

.wordsearch-parent-container {
    /*border: 2px solid #023853;*/
    border-radius: 20px;
}

span.abitem {
    color: #023853;
    cursor: pointer;
    font-weight: 700;
}    

.wordsearch-parent-container p{
    font-family: "oswald"; 
    line-height: 1.2em;
}

#solveButton, #newGameButton, .listWord {

	padding: 5px;

}

 #solveButton, #newGameButton {

	border: 2px black solid;
	border-radius: 8px;

} 

.cell{

    background: #ffffff00;
    color: #000;
    font-size: 20px;
}


/* Oblong highlight effect */
.oblong-highlight {
    background-color: rgba(173, 216, 230, 0.5); /* Light blue with transparency */
    border-radius: 20px;                       /* Adjust the radius to make the highlight oblong */
    padding: 5px 10px;                         /* Adjust the padding to control the size of the highlight */
    display: inline-block;
    position: absolute;                        /* Ensure it positions correctly */
    z-index: 1;                                /* Position above other elements */
}




body {

	background-color: #EAF7FB;

}

#word-greetings {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2em;
    font-weight: 600;
    font-family: "Poppins";
    text-align: center;

}
#wordGreetings {
    justify-content: center;
    display: flex;
    background: #DFA81E;
    padding: 20px;
    border: 3px solid #ffffff;
    border-radius: 20px;
    width: 80%;
    margin: auto;
    z-index: 99;
    position: relative;
}

#successMessage {
    display: none;
}




.wordsearch-body {
    display: flex;
}

#wordboard {
    margin: 20px auto 0 auto;
    border: 2px white solid;
    display: table;
    width: 650px;
    background: #ffffffe6;
    padding: 20px;
    border-radius: 20px;

}

@media only screen and (max-width: 1178px) and (min-width: 200px){
            /*.right-clue-column {*/
            /*    flex-direction: row;*/
            /*    display: block !important;*/
            /*}*/
            
            /*.left-clue-column {*/
            /*    flex-direction: row-reverse;*/
            /*    display: block !important;*/
            /*}*/
            
            /*.top-clue-column {*/
            /*    flex-direction: column-reverse;*/
            /*    display: block !important;*/
            /*}*/
            
            /*.bottom-clue-column {*/
            /*    flex-direction: column;*/
            /*    display: block !important;*/
            /*}  */
            
            #right-btn, #left-btn {
                display: none;
            }
            
            #top-btn{
                margin-top: 20px;
            }
}

@media only screen and (max-width: 1178px) and (min-width: 850px){
    #wordboard{
        width: 650px !important;
    }   
    .wordsearch-body{
        display: block !important;
    }
    .wordboard-container{
        width: 100% !important;
    }
    .wordlist-container{
        width: 100% !important;
    }
    #wordlist{
        display: flex !important;
        width: 100% !important;
    }
    .listRow{
        width: 25% !important;
    }
}

@media only screen and (max-width: 849px) and (min-width: 200px){
    #wordboard {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100vw !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        padding: 7px !important;
    }
    
    .wordboard-container{
        padding: 0px 10px !important;
    }
    .boardRow {
        display: flex !important;
        width: 100% !important; 
        justify-content: center !important;
    }
    #word-greetings{
        font-size: 16px !important;
    }
    #wordlist {
        margin: 10px auto 0 auto !important;
    }
    .listWord {
        font-size: 16px !important;
    }
    #newGameButton{
        padding: 14px 20px !important;
    }   
    .wordlist-heading{
        font-size: 18px !important;
    }
    .cell {
        width: 7vw !important;
        height: 7vw !important;
        font-size: 4.6vw !important;
        margin: 0.1vw !important;
        box-sizing: border-box !important ;
        border-radius: 10px !important;
    } 
    
    .highlight {
            height: 7vw !important;
    }
    .wordsearch-body{
        display: block !important;
    }
    .wordboard-container{
        width: 100% !important;
    }
    .wordlist-container{
        width: 100% !important;
    }
    #wordlist{
        display: flex !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }
    .listRow{
        width: 50% !important;
    }
}
.wordlist-heading {
    font-family: "Poppins";
    color: #002C45;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}
.wordboard-container-column{
    padding: 50px 0px;
    width: 100%;
}
.listRow {
    flex-direction: column !important;
    display: flex !important;
	display: table-row;
    width: fit-content;
    justify-content: center;
    align-items: center;
    margin: auto;
}


.listWord{
    text-align: left !important;    
    width: fit-content;
	display: table-cell;
    color: #002C45;
	font-family: "oswald";
    font-size: 18px;
    font-weight: 600;
}

.wordboard-container {
    width: 70%;
    padding: 0px 50px;
    position: relative;
    justify-content: center;
    display: flex;
    align-items: center;
}

.wordlist-container {
    width: 30%;
    background: #ffffff;
    padding: 40px 15px 15px 15px;
}

.boardRow {
    /*z-index: 9999 !important;*/
    /*position: relative;*/
	display: table-row;

}
/*
.selectable {
    background-color: rgba(255, 255, 0, 0.5) !important; /* Example color */
    border-radius: 15px; /* Adjust the radius as needed */
}
*/
/* Styling for the selected cells */
.selected {
    background-color: rgba(0, 255, 0, 0.5) !important; /* Example color */
    border-radius: 15px; /* Adjust the radius as needed */
}

/* Styling for the found cells */
.found {
    border-radius: 15px; /* Adjust the radius as needed */
    /* No background-color defined here to allow dynamic coloring */
}

/* Optional: Add transitions for smooth appearance */
.cell {
    transition: background-color 0.3s, border-radius 0.3s;
}

.oblong-highlight {
    position: absolute;
    background-color: rgba(0, 255, 0, 0.5); /* Example color */
    border-radius: 15px; /* Adjust the radius as needed */
    pointer-events: none; /* Ensure it doesn't interfere with cell selection */
    z-index: 10; /* Ensure it is above other elements */
}

.highlight {
    background: rgba(0, 123, 255, 0.5); /* Adjust the color and opacity as needed */
    position: absolute; /* To allow precise positioning */
    pointer-events: none; /* So it doesn't interfere with cell clicks */
    border-radius: 0px 200px 200px 0px;
    transform-origin: 0 0; /* Set the origin point for rotation */
    z-index: 1;
    height: 45px;
}


.highlight.final:before {
    position: absolute;
    content: "";
    left: -28px !important;
    width: 30px;
    height: 100%;
    background: inherit;
    border-radius: 200px 0px 0px 200px;
}

.highlight.final{
    border-radius: 0px 200px 200px 0px;
}

.highlight:after {
    position: absolute;
    content: "";
    left: -30px !important;
    width: 30px;
    height: 100%;
    background: inherit;
    border-radius: 200px 0px 0px 200px;
}

.final {
    opacity: 0.5; /* Slight transparency to indicate it's final */
}


@media only screen and (max-width: 500px) and (min-width: 200px){
    .highlight.final:before {
        left: -15px !important;
        width: 15px !important;
        border-radius: 300px 0px 0px 300px;
    }

    
    .highlight:after {
        left: -15px !important;
        width: 15px !important;
        border-radius: 300px 0px 0px 300px;
    }
}

			#drawer{
				background-color: #014D73;
				width: 412px;
				max-width: 85%;
				height: fit-content;
			    position: absolute;
				left: 0;
				top: 70px;
				bottom: 0;
				padding: 25px;
				display: none;
				max-height: 820px;
				overflow-y: scroll;
				-webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.75);
				-moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.75);
				box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.75);
				z-index: 9;
			}
			
			#drawer p{
			    color: #fff;
			}
			
            span.close-wordsearch {
                max-width: 100%;
                width: 100%;
                display: flex;
                justify-content: end;
            }
            .button-position {
                color: #f1f1f1;
                padding-bottom: 5px;
            }
            span.close-wordsearch img{
                width: 6%;
            }
            
            #word-list-flex{
                display: none;
            }
            
            .right-clue-column {
                flex-direction: row;
                display: flex;
            }
            
            .left-clue-column {
                flex-direction: row-reverse;
                display: flex;
            }
            
            .left-clue-column #word-list{
                display: none;
            }
            
            .left-clue-column #word-list-flex{
                display: block;
            }
            
            .top-clue-column {
                flex-direction: column-reverse;
                display: flex;
            }
            
            
            .bottom-clue-column {
                flex-direction: column;
                display: flex;
            }
            
            
             .full-width .wordlist-container {
                width: 100%;
            }
            
            .full-width .wordboard-container{
                width: 100%;
            }           
            
            .word-list {
                display: flex !important;
                justify-content: space-between;
                padding-right: 50px;   
            }
    
    
            
            #right-btn {
                margin-top:  20px;
            }
            
            .button-position{
                cursor: pointer;
            }
            
button.cell {
    background: transparent !important;
}

.cell {

	margin: 0 auto;
	border: none;
	display: table-cell;
	height:45px;
	width: 50px;
	font-size: 22px;
	padding: 0;
	outline: 0;
    font-weight: 700;
	/*ensures text can't be accidentally selected*/
	cursor: default; 
	-moz-user-select: none;
    -ms-user-select: none; 
    -khtml-user-select: none; 
    -webkit-user-select: none; 
    -webkit-touch-callout: none; 

}

.cell:hover {
    color: #000;

}
/*
.cell.selectable {
    border: 1px solid #000;
	background-color: none;

}
*/
.cell.selected { 
	background-color: #DFA81E;

}

.boardRow button:focus{
	background-color: #DFA81E;
	color: #fff;
}

.cell.found {
    border: 1px solid #000;
	background-color: #DFA81E;
	color: #fff;
	font-weight: bold;

}

#wordlist { 

	margin: 40px auto 0 auto;
	display: table;
    width: 100%;
	font-size: 17px;
	text-align: center;
	
}


.listWord.found {

	color: rgb(158, 123, 158);
	text-decoration: line-through;
	
}

#newGameButton {
    border-radius: 20px;
    background: #002C45;
    border: 2px solid #002C45;
    padding: 15px 40px;
    font-size: 16px;
    color: #fff;
}

#newGameButton:hover{
    background: transparent;
    color: #002c45;
}


.wordsearch-header-container {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-radius: 20px 20px 0px 0px;
    background: #FFFFFF;
    align-items: center;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
    z-index: 1;
    position: relative;
}

.wordsearch-header-container h2{
    font-size: 18px;
    color: #f1f1f1 !important;
}



.watermark-wordsearch {
    background: #ffffff;
    font-family: "oswald";
    padding: 30px 0px;
    text-align: center;
    font-size: 18px;
    color: #009045;
    border-radius: 0px 0px 20px 20px;
}

#wordlist .found {
    color: #009045;
    text-decoration: line-through;
}


/*#wordlist .found:after{*/
/*    position: relative;*/
/*    content: url("https://www.ijohnalmas.com/wp-content/uploads/2024/06/check-mark-2.png");*/
/*    padding-left: 10px;*/
/*    top: 3px;*/
/*}*/

#result-dialog {
    position: absolute; 
    width: 100%;
    height: 100%;
    background: #000000b0;
    display: none;
    z-index: 999;
}


.dialog-box{
    position: absolute;
    top: 20px;
    background: #fff;
    border: 2px solid #DFA81E;
    color: #000;
    padding: 30px 20px;
    width: 50%;
    height: fit-content;
    border-radius: 20px;
    font-size: 18px;
    justify-content: center;
    display: grid;
    left: 25%;
    right: 25%;
}

.dialog-box p{
    font-family: "Oswald";
    font-size: 16px;
    color: #000000;
    text-align: center;
}

.dialog-box #another {
    width: 100%;
    background: transparent;
    color: #014D73;
}

.another{
	box-sizing: border-box;
	width: 100%;
	padding: 0px;
	height: fit-content;
	border: none;
	outline: none;
	background-color: rgb(1 77 115);
	color: white;
}

.dialog-box img{
    max-width: 40% !important;
    margin: auto;
}

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}
            
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ff0;
    opacity: 0;
    animation: fall 3s linear infinite;
    }
            
@keyframes fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}


            .wordsearch-intro{
                justify-content: center;
                display: flex;
                padding: 30px;
                background: url("https://www.ijohnalmas.com/wp-content/uploads/2024/06/image_2024_06_14T14_52_07_757Z-1.png");
                background-repeat: no-repeat;
                border-radius: 20px;
                background-size: cover;

            
            .wordsearch-intro-body {
                padding: 80px 40px;
				width: 100%;
				max-width: 800px;
            }
            
            .wordsearch-intro-container {
                background: #002C45;
                border-radius: 20px;
            }
            
            .wordsearch-intro-container h2{
                font-family: "Poppins";
                color: #f1f1f1 !important;
                text-align: center;
                margin-bottom: 20px;
                font-weight: 700;
                font-size: 35px;
            }
            
            .wordsearch-intro-container h3{
                font-family: "Poppins";
                color: #f1f1f1 !important;
                text-align: center;
                margin-bottom: 20px;
                font-weight: 700;
                font-size: 25px;
            }
            
            .wordsearch-intro-container p{
                font-family: "oswald";
                color: #f1f1f1;
                text-align: center;
                width: 80%;
                margin: auto;
                font-size: 16px;
            }
            
            .description{
                margin-top: 40px;
            }
            
            .description-column p{
                margin-bottom: 30px;    
            }
            
            .description-column h4{
                font-family: "Poppins";
                color: #DFA81E !important;
                text-align: center;
                font-size: 20px;
            }
            
            .cta{
                margin-top: 40px;
                justify-content: center;
                display: grid;
            }
            
            .cta p{
                font-size: 22px;
            }

            /*
            .description-container {
                display: flex;
                gap: 20px;
            }
            */
            .cta span{
                justify-content: center;
                display: flex;
            }
            
            .watermark-wordsearch{
                font-family: "oswald";
                font-size: 18px;
                color: #fff;
            }
            
            .start-button{
                font-family: "Manrope";
                margin-top: 30px;
                border-radius: 20px;
                background: #DFA81E;
                border: 2px solid #DFA81E;
                padding: 15px 40px;
                font-size: 16px;    
                color: #fff;
			    text-align: center;
    			line-height: 1.2em;
    			cursor: pointer;
            }
            
            .start-button:hover{
                background: transparent;
            }
			.description-column{
				width: 50%;
			}
			@media only screen and (max-width: 767px) and (min-width:200px){
				.wordsearch-intro-container h2{
					font-size: 30px;
				}
				.wordsearch-intro-container h3{
					font-size: 20px;
				}
				.description-container{
					display: block
				}
				.cta p {
					font-size: 18px;
				}
				.wordsearch-intro-body {
					padding: 60px 20px;
				}
				.wordsearch-intro-container {
					width: 100%;
				}
				.wordsearch-intro-container p{
					width: 100%;
				}
				.cta {
					position: relative;
					flex-wrap: wrap;
					display: flex;
				}
				.wordsearch-intro {
					padding: 20px;
				}
			}
			
			
	

