html, body {
    font-family: 'Literata', Georgia, serif;
    background-color:  #d85b3c;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*****************************************************************************************************************/
/************************************* First Body: Header Content Section ****************************************/
/*****************************************************************************************************************/

#Page_Header {
    background-color:  #6b63b5;
    color: #e7ddfde8;
    width: 100%;
    min-height: 6vh;
    max-height: 20vh;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: clamp(8px,2.5vw,16px);
    font-weight: 400;
    text-decoration: none;
    text-align: center; 
    overflow: hidden;
}

.Page_Header_Buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 2px;
}

.Page_Header img {
    width: 20px; /* Set the width of the images */
    height: 20px; /* Maintain aspect ratio */
    margin-left: 5vw; /* Add margin around the images */
    margin-right: 1vw; /* Add margin around the images */
    /* You can add more styles as needed */
}

#Page_Header a, #Page_Header a:visited, #Page_Header a:hover, #Page_Header a:active {
    text-decoration: none;
    color: #fff;
    align-items: center;
    justify-content: space-around;
    outline: none;
}

#Page_Header nav {
    display: flex;
    flex-direction: row;
}

#Page_Header_Advance_Search, #Page_Header_Syntax, #Page_Header_Sets {
    margin-left: 20px;
    margin-right: 20px;
    outline: none;
}

#search_input {
    min-width: 100px;
    max-width: 80vw;
    width: 400px; /* Change this value to adjust the width */
    height: 36px; /* Change this value to adjust the height */
    opacity: 0.6; /* Set the opacity */
    border-radius: 5px; /* Change this value for corner radius */
    padding: 0 10px; /* Optional: add padding inside the button */
    background-color: rgba(0, 0, 0, 0.25); /* Set the background color */
    color: rgba(255, 255, 255, 1);
    font-family: 'Arial', sans-serif;
    font-size: 14px; /* Optional: adjust font size */
    border: none; /* Optional: add a border */
    outline: none;
    margin: 2px;
}

#search_input::placeholder {
    color: rgba(255, 255, 255, 1); /* Colour of placeholder text */
    font-family: 'Arial', sans-serif;
}

#search_button:hover {
    background-color: hsl(246, 47%, 46%); /* Change background color on hover */
}

/*****************************************************************************************************************/
/**************************************Second Body: Main Content Section *****************************************/
/*****************************************************************************************************************/

#Search_Display_Body {
    width: 100%;
    min-height: auto;  /* Set the minimum height */
    height: auto;
    background-color: #e8e8e4;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
}

.Search_Display_Body_Filters {
    width: 100%;
    height: 8vh;
    background-color:rgba(51, 51, 51, 1);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    overflow: hidden;
    align-items: center;
    color: #e8e8e4;
}

.Search_Display_Body_Card_Display_Grid {
    min-width: 40%;
    max-width: 80%;
    min-height: 62vh;
    background-color:#e8e8e4;
    display: grid;
    grid-template-columns: repeat(4, minmax(12vw, 1fr)); /* Adjust 150px to your desired width */
    gap: 20px; /* Increase gap between grid items */
    padding: 1vh;
    overflow: visible; /* Ensure grid container doesn't clip the rotated image */
}

.Search_Display_Body_Filters h3, p {
    font-size: 10;
    margin-bottom: 1vh;
    margin-top: 1vh;
}

.Search_Display_Body_Filters_Results_Text {
    margin-left: 5vw;
    margin-right: 5vw;
    margin-top: 3vh;
    margin-bottom: 3vh;
}

#Search_Display_Body_Filters_SortBy_Dropdown, #Search_Display_Body_Filters_Ascending_Dropdown {
    min-width: 100px;
    width: 10vw;
    height: 5vh;
    border-radius: 5px;
    background-color: rgba(51, 51, 51, 1);
    color: #e8e8e4;
    font-size: clamp (6px, 14px, 20px);
    outline: none;
    border: solid 1px #e8e8e4;
    margin-left: 5vw;
    margin-right: 5vw;
}

#Search_Display_Body_Filters_SortBy_Dropdown option, #Search_Display_Body_Filters_Ascending_Dropdown option {
    background-color:#e8e8e4;
    color: rgba(51, 51, 51, 1); 
}

.Search_Display_Body_Card_Display_Grid img {
    max-width: 20vw;
    width: 15vw;
    max-height: 30vw;
    border: none;
    border-radius: 4px;
    padding: 0;
    transition: transform 0.3s ease 0.3s; /* Adds a 0.5 second delay before rotating */
}

/* CSS for rotating horizontal cards on hover */
.horizontal-card img {
    transition: transform 0.3s ease 0.3s; /* Adds a 0.5 second delay before rotating */
}

/* Ensure individual card containers don't clip the rotated image */
.horizontal-card {
    overflow: visible;
}

/* Ensure the grid items expand to fit the rotated image */
.card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Ensure the card container is positioned correctly */
}

.horizontal-card img:hover {
    transform: rotate(90deg);
    z-index: 2; /* Ensure the hovered card is above other cards */
}

/*****************************************************************************************************************/
/********************************* Third Body: Footer Content Section ********************************************/
/*****************************************************************************************************************/
#Search_Display_Footer {
    background-image: url('Images/Temp_Images/feathers@3x.png');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 20vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#Search_Display_Footer::before {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Position relative to the container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(107, 99, 181, 0.5);
    z-index: 0; /* Ensure pseudo-element is above the image */
}

.Search_Display_Footer_Links {
    display: flex;
    flex-direction: row;
    z-index: 2;
    color: #e8e8e4;
    text-decoration: none;
}

.Search_Display_Footer_Links h2 {
    margin: 0;
    border-bottom: 2px solid rgba(107, 99, 181, 0.5);
    font-family: Literata;
    font-size: 16px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
}

.Search_Display_Footer_Find_Cards, .Search_Display_Footer_Accio, .Search_Display_Footer_Socials {
    width: 12Vw;
    height: 10vh;
    margin: 0 2vw 0 2vw;
    font-family: Literata;
    font-size: 16px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    color: var(--white-100);  
}

.Search_Display_Footer_Find_Cards nav, .Search_Display_Footer_Accio nav, .Search_Display_Footer_Socials nav,
.Search_Display_Footer_Find_Cards nav a, .Search_Display_Footer_Accio nav a, .Search_Display_Footer_Socials nav a {
    display: flex;
    flex-direction: column;
    font-family: Arial;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-decoration: none;
    color: #e8e8e4;
}

.Search_Display_Footer_Copyright_Disclosure, .Search_Display_Footer_Copyright_Disclosure p {
    width: 50vw;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-decoration: none;
    text-align: center;
    font-family: Literata;
    font-style: normal;
    margin: 0;
    color: #e8e8e4;
    z-index: 2;
    overflow: hidden;
}

/* Pagination Controls */
.Search_Display_Pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 10px;
}

.Search_Display_Pagination button {
    padding: 10px 20px;
    width: auto;
    height: auto;
    
    border: solid, 1px #6b63b5;
    background-color: #fff;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

.Search_Display_Pagination button:hover {
    background-color: #5a53a3;
}

.Search_Display_Pagination span {
    font-size: 16px;
    color: #333;
