
.footer {
    width: 100%; /* Ensure footer stretches across the full width */
}

.parent-vowel {
    display: grid;
    grid-template-columns: 1fr 8fr 1fr 300px;
    grid-template-rows: 1fr;
    grid-column-gap: 2px;
    grid-row-gap: 2px;
}

.div1-vowel { 
    grid-area: 1 / 1 / 2 / 2; 
}
.div2-vowel { 
    grid-area: 1 / 3 / 2 / 4; 

}
.div3-vowel { 
    grid-area: 1 / 2 / 2 / 3; 
    
}

#sidebar { 
    grid-area: 1 / 4 / 2 / 5;
}

.text {
    padding: 15px;
}

.text ul {
  list-style-type: disc; /* This sets the bullet style to the default disc */
  margin-left: 35px; /* Adjust as needed to align bullets */
  padding-left: 0; /* Reset padding if it's been altered */
  margin-bottom: 20px;
    font-size: 18px;
    line-height : 1.6;
    font-weight: 300;
}

.text ol {
    margin-left: 35px; /* Adjust as needed to align bullets */
  padding-left: 0; /* Reset padding if it's been altered */
  margin-bottom: 20px;
    font-size: 18px;
    line-height : 1.6;
    font-weight: 300;
}



/* Base styles */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

/* Vowel Counter specific styles */
.vc-container {
    max-width: none;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF; /* Optional: Sets a background color for the container */
}

.vc-title {
    font-size: 32px;
    color: #333;
    margin: 0;
    text-align: center;
    padding: 10px 0;
}

.vc-textarea {
    width: 100%;
    height: 300px;
    border: 4px solid #ccc;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px;
    font-size: 18px;
    line-height: 1.5;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 10px;
    margin-top: 5px;
    transition: border-color 0.3s;
}

.vc-textarea:hover {
    border-color: #A9A9A9;
}

.vc-textarea:focus {
    outline: none;
    border-color: black;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
}

.vc-counts {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 5px 0;
}

.vc-counts > div {
    flex: 1;
    text-align: center;
    border: 1px solid black;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vc-counts > div:not(:last-child) {
    border-right: none;
}

.vc-counts > div > div:first-child {
    margin-bottom: 5px;
}

.vc-counts > div > div:last-child {
    font-size: 40px;
    color: #1a73e8;
}

#vc-vowelA, #vc-vowelE, #vc-vowelI, #vc-vowelO, #vc-vowelU {
    font-size: 20px;
}

#vc-wordCount, #vc-characterCount {
    font-size: 30px;
}

.vc-button {
    padding: 16px;
    background-color: #1d7b1e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    margin-top: 0px;
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 10px;
}

.vc-button:hover {
    background-color: #45a049;
}

.consonant-container > div > div:last-child {
    font-size: 20px; /* Adjust as needed */
}

.vc-counts.consonant-container > div {
    border-right: solid 1px black;
}

.vc-counts.consonant-container > div:nth-last-of-type(-n+1) {
    margin-right: 0; /* Remove right margin for the last item */
}


.vc-preposition-list {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    width: 100%; /* Match the width of the textarea */
    min-height: 100px; /* Set a minimum height */
    overflow-y: auto; /* Allows scrolling if the list is too long */
    word-wrap: break-word;
    box-sizing: border-box; /* Ensure padding and borders are included in the width */
}

.vc-preposition-list-title {
    margin-top: 20px;
    font-size: 20px; /* Adjust the font size as needed */
    font-weight: bold; /* Makes the title bold */
    color: #333; /* Sets the text color */
    padding: 0 10px; /* Matches the padding of the preposition list box */
}

#vc-characterCount {
    text-align: left;
    font-size: 18px;
    color: black;
    margin-top: 0px;
    padding-left: 5px;
    width: 100%;
}

.parent-vowel p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height : 1.6;
    font-weight: 300;
  }
  


.text a {
    color: #1A73E8;

}
  
.parent-vowel h2, h3 {
    margin-bottom: 20px;

}

.highlight {
    background-color: yellow;
    font-weight: bold;
}


#vc-frequencyTable, #vc-totalTable {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}



#vc-frequencyTable th, #vc-frequencyTable td, #vc-totalTable th, #vc-totalTable td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Light gray border for a softer look */
    
}

#vc-frequencyTable, #vc-totalTable {
    width: 100%;
    border-collapse: collapse;
}

#vc-frequencyTable td, #vc-frequencyTable th, #vc-totalTable td {
    text-align: left;
    padding: 8px;
}

/* Alternating row background colors */
#vc-frequencyTable tr:nth-child(even) {
    background-color: #f9f9f9; /* Light gray for even rows */
}

#vc-frequencyTable tr:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
}

/* Hover effect for rows */
#vc-frequencyTable tr:hover {
    background-color: #eaeaea; /* A slightly darker gray for hover */
}

#vc-totalTable {
    margin-top: -1px; /* Adjust based on your table's border thickness */
}


#vc-frequencyTable th, #vc-frequencyTable td, #vc-totalTable td {
    /* Example fixed widths, adjust these values based on your table's design */
    width: 33.33%;
}

/* If the first column ("Character") needs to be narrower or wider, adjust accordingly */
#vc-frequencyTable th:first-child, #vc-frequencyTable td:first-child, #vc-totalTable td:first-child {
    width: 20%;
}

#vc-frequencyTable th:nth-child(2), #vc-frequencyTable td:nth-child(2), #vc-totalTable td:nth-child(2),
#vc-frequencyTable th:nth-child(3), #vc-frequencyTable td:nth-child(3), #vc-totalTable td:nth-child(3) {
    width: 40%; /* Adjust the width so the total of all columns equals 100% */
}

#vc-frequencyTable td, #vc-frequencyTable th {
    text-align: center;
}

/* Apply the same centering to the "Total" table if it's separate */
#vc-totalTable td, #vc-totalTable th {
    text-align: center;
}

#vc-frequencyTable th {
    background-color: #f2f2f2; /* Light gray background for headers for better contrast */
}

/* Style for the table header row */
#vc-frequencyTable thead tr, #vc-totalTable thead tr {
    color: black; /* Black text color for contrast and readability */
}

/* Style for the "Total" row */
#vc-totalTable .total-row, #vc-frequencyTable .total-row {
    background-color: #f2f2f2; /* Lighter gray for the "Total" row */
    color: black; /* Keeping the font color black for readability */
}


#caseSensitive {
        width: 20px; /* or more, depending on the desired size */
        height: 20px; /* keep width and height the same for a square checkbox */
        vertical-align: middle; /* Keeps the checkbox vertically centered with the text */

    }



#vc-downloadCsv {
    background-color: #1a73e8; /* Google Docs blue */
    color: white; /* Ensures the text on the button is white for readability */
    border: none; /* Optional: Removes the border */
    padding: 10px 15px; /* Adjust padding as needed for button size */
    border-radius: 4px; /* Gives the button rounded corners */
    cursor: pointer; /* Changes the cursor to a pointer to indicate it's clickable */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

#vc-downloadCsv:hover {
    background-color: #1565c0; /* A slightly darker blue for hover effect */
}


#sortOptions {
    font-size: 18px; /* Increase font size for better visibility */
    padding: 8px 16px; /* Add more padding for a larger click area */
    background-color: #ffffff; /* Set a white background or choose a light color */
    border: 2px solid #1a73e8; /* Google Docs blue for the border */
    border-radius: 5px; /* Rounded corners for a modern appearance */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    cursor: pointer; /* Change cursor to indicate it's clickable */
    outline: none; /* Remove the default focus outline for a cleaner look */
    margin-left: auto; /* Pushes the dropdown to the right */

}

#sortOptions:hover {
    background-color: #f8f8f8; /* Slightly darker background on hover */
}

#sortOptions:focus {
    border-color: #4d90fe; /* Brighter blue border for focus */
}

/* Style options within the dropdown */
#sortOptions option {
    margin-top: 5px; /* Adds some space between the label and the dropdown */

    padding: 10px; /* Padding for options */
    font-weight: normal; /* Option to adjust weight; can be bold, if preferred */
}

.dropdown-container {
    display: flex;
    justify-content: flex-end; /* Aligns the wrapper to the right */
    width: 100%; /* Adjust this as necessary */
}

.dropdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the content (label and dropdown) within the wrapper */
}

.dropdown-container label {
    padding-right: 8px; /* Adjust this to visually center the label above the dropdown if needed */
    margin-bottom: 5px; /* Space between label and dropdown */
    /* Style your label as needed */
}

#vc-frequencyTable .total-row {
    background-color: #f0f0f0; /* Light gray background for contrast */
    /* Additional styling as needed */
}

#total-occurrences, #total-percentage {
    text-align: right; /* Adjust alignment as needed */
    /* Any additional fine-tuning here */
}




@media (min-width: 601px) {
    .consonant-container {
        /* Ensure this container uses a grid layout with an explicit template */
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* Adjust based on the number of columns you want */
        gap: 10px; /* Adjust gap between grid items if needed */
    }

    /* If you have specific rules for the Z box, ensure it follows the same grid column span as others */
    
    .vc-counts.consonant-container > div#vc-consonantZ {
        /* This selector assumes you have an ID or a unique way to target the Z box. Adjust the selector as needed. */
        grid-column: span 1; /* Make the Z box span only 1 column */
       
    }
    
    
    
    
}


@media (min-width: 1200px) {
    
    .div3-vowel { 
        max-width: 900px;
        
        
    }
    
   
    
}



@media (max-width: 1200px) {
    
    .parent-vowel {
        display: grid;
        grid-template-columns:  1fr  300px;
        grid-template-rows: 1fr;
        grid-column-gap: 2px;
        grid-row-gap: 2px;
    }

    .div1-vowel { 
        display:none;
    }
    .div2-vowel { 
        display:none;
    }
    .div3-vowel { 
        grid-area: 1 / 1 / 2 / 2; 
        
        
    
    }
    
    #sidebar { 
        grid-area: 1 / 2 / 2 / 3;
    
    }
    
}



/* 992px */
@media (max-width: 992px) {
    
    .parent-vowel {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }
    
    .div3-vowel { 
        grid-area: 1 / 1 / 2 / 2; 
        
    }
    
    
}





/* Responsive design adjustments */
/* Mobile responsiveness */
@media (max-width: 600px) {
    .vc-container {
        padding: 15px;
    }

    .vc-title {
        font-size: 30px;
    }

    .vc-textarea {
        height: 250px; /* Adjusted for more space on smaller screens */
    }

    .vc-counts {
        flex-direction: column;
    }

    .vc-counts > div {
        border-top: 1px solid black;
        border-left: 1px solid black;
        border-right: 1px solid black;
        border-bottom: none; /* Remove bottom border by default */
    }
    
    .vc-counts > div:last-child {
        border-bottom: 1px solid black;
    }

    /* Remove the bottom border of all but the last div to prevent double border appearance */
    .vc-counts > div:not(:last-child) {
        border-right: 1px solid black; /* Adjust if necessary */

    }

    .vc-button {
        width: 100%;
        margin-top: 5px;
    }
    
    .vc-counts {
        flex-direction: column;
    }
    
   

    #vc-wordCount, #vc-characterCount {
        font-size: 30px;
    }
    
    .consonant-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Create two columns */
        gap: 10px; /* Adjust gap between items */
    }

    .consonant-container > div {
        border: 1px solid black; /* Ensures borders are applied to all sides of each box */
        margin-bottom: 10px; /* Provides spacing below each box, if needed */
                position: relative;

    }

    /* Adjust this if the last row items stretch due to justify-content: space-around; */
    .consonant-container > div:nth-last-of-type(-n+2) {
        flex-grow: 1;
    }
    
    .consonant-container > div:last-child, .vowel-container > div:last-child {
        border-bottom: 1px solid black;
    }
    
    
    
    .consonant-container > div::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px; /* Adjust based on your shadow size */
        height: 4px; /* Adjust the height to control the shadow's thickness */
        box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Adjust color and blur radius as needed */
        z-index: -1;
    }
    
    #vc-vowelCount::after, #vc-letterCount::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -2px; /* Adjust based on your shadow size */
        height: 4px; /* Adjust the height to control the shadow's thickness */
        box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Adjust color and blur radius as needed */
        z-index: -1;
    }
    
    .remove-middle-border > div::after {
        box-shadow: none !important;
    }

    /* Specifically target and remove the shadow effect from the sides between boxes */
    .remove-middle-border > div {
        box-shadow: none !important;
    }

    .vc-counts.consonant-container {
        margin-bottom: 0px; /* Smaller gap for smaller screens */
    }
    
    .vc-counts.consonant-container > div:nth-child(even) {
        margin-right: 0;
    }
    
    .vc-counts.consonant-container > div:nth-last-of-type {
        margin-right: 10px; /* Remove right margin for the last item */
    }
    
    
    
    .vc-counts.consonant-container > div {
        margin-right: 0px; /* Gap on the right side of each box */
        border-right: solid 1px black;
    }
    
    #vc-characterCount {
        font-size: 18px;
        
    }
    
    
    .occurrences-header, .percentage-header {
        font-size: 0; /* Hide the original text */
    }
    .occurrences-header::after, .percentage-header::after {
        font-size: 18px; /* Adjust based on your design needs */
        visibility: visible;
    }
    .occurrences-header::after {
        content: "#";
    }
    .percentage-header::after {
        content: "%";
    }

  

table#vc-totalTable tr.total-row td, 
    table#vc-frequencyTable tr.total-row td {
        text-align: center !important;
    }
   
    
   
   
   #vc-frequencyTable th, #vc-frequencyTable td, #vc-totalTable td {
    /* Example fixed widths, adjust these values based on your table's design */
    width: 33.33%;
}

/* If the first column ("Character") needs to be narrower or wider, adjust accordingly */
#vc-frequencyTable th:first-child, #vc-frequencyTable td:first-child, #vc-totalTable td:first-child {
    width: 33.33%;
}

#vc-frequencyTable th:nth-child(2), #vc-frequencyTable td:nth-child(2), #vc-totalTable td:nth-child(2),
#vc-frequencyTable th:nth-child(3), #vc-frequencyTable td:nth-child(3), #vc-totalTable td:nth-child(3) {
    width: 33.33%; /* Adjust the width so the total of all columns equals 100% */
}
   
}



@media (max-width: 400px) {
    .vc-container {
        padding: 10px;
    }

    .vc-textarea {
        height: 180px; /* Keeps the adjusted height consistent for smaller screens */
        
    }
    
      .text {
        padding: 5px;
    }
    
  
   
}