@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Lexend+Tera&display=swap');

body {
    font-family:'Montserrat';
    color: black;
    font-weight: 400;
    padding: 30px;
}

.wrapper{
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto;
    column-gap: 5px;
    row-gap: 5px;

    grid-template-areas: 
    "banner banner"
    "nav main"
    "footer footer";
}
.common {
    padding: 20px;
    border-radius: 10px;
}

.banner {grid-area: banner;
background-color: #1D3557;

display: flex;
align-items: center;
}

.nav {grid-area: nav;
background-color: #457B9D;}

.main {grid-area: main;
background-color: #F1FAEE;}

.logo{
    padding: 10px;
    float: left;
	max-width: 40%;
	height: auto;
  
}

.footer {grid-area: footer;
background-color: #F1FAEE ;}

.img {
	max-width: 25%; }
body {
	background-color: #A8DADC;
}
.buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 10px;
  margin: 0 auto;
  border-radius: 12px;
}


/* Each button */
.button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: #F4DEDD; /* soft pink */
  border-radius: 16px;
  padding: 20px 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: black;
}

/* Hover effect */
.button:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Button image */
.button img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

/* Button label */
.button p {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  border-top: 2px solid black;
  padding-top: 10px;
}
.results {
  padding: 20px;
  background-color: #ffdddd
  ;
  min-height: 150px;

}
.button-link {
    display: flex;
    background-color: #f8f9fa;
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    font-weight: 600;
    color: #222;
    width: 200px;
    text-align: center;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    text-decoration: none;

    justify-content: center;
}
.full-button {
	width: 265px;
	box-sizing: border-box;
}

.button-link:hover {
  background-color: #e2e6ea;
}

select.full-button {
  background-color: #1d3557;


  border-radius: 6px;
  padding: 12px 25px;
  font-weight: 600;
  color: white;
  width: 265px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
  font-family: 'Montserrat';
	font-size: 17px;
  cursor: pointer;
}

select.full-button:hover {
  background-color: #e2e6ea;
}
.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.bookmark-icon {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.bookmark-icon.saved {
    filter: hue-rotate(45deg) brightness(1.2); /* yellow tint */
}
.button-icon {
	padding-left: 10px;
}
.word-design {
	color: yellow;
}
.word-header {
    display: flex;        /* Key: Enables flexbox layout */
    align-items: center;  /* Key: Vertically aligns items in the center */
    gap: 10px;            /* Adds 10 pixels of space between the word and the tag */
    margin-bottom: 5px;
}
/* General Tag Style */
.tag {
    /* Basic dimensions */
    padding: 3px 10px; /* Increased padding for better shape */
    font-size: 0.8em;
    font-weight: bold;
    color: white; /* White text on colored background */
    text-transform: uppercase;

    /* Key change: High border-radius for the pill shape */
    border-radius: 20px; 
}

/* Color Styling */
.level-beginner {
    background-color: #4CAF50;
    /* Optional: subtle shadow for depth */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); 
}

.level-intermediate {
    background-color: #2196F3;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
.level-advanced {
    background-color: #f32121;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.word-type {
/* A non-serif font to stand out */
   color: #344e99;
    font-weight: bolder;
	font-size: 15px;
}
.vocabulary {
	font-weight: bold;
	text-transform: uppercase;
	
}


h1 {
	font-family: 'Lexend Tera';
}

.heading {
	
    font-family: 'Lexend Tera';
    font-size: 50px;
    font-weight: 900;
    color: white;

	
}

.footer {grid-area: footer;
background-color: #F1FAEE;
text-align: right;
}






/* New Wrapper for the Levels Select Button */
.custom-levels-wrapper {
    /* Required for positioning the custom icon */
    position: relative;
    /* Ensure it takes the full width available */
    width: 265px; 
    margin-bottom: 10px; /* To match the margin of the select itself */
}

/* Style the select element to match the button visually */
.custom-levels-wrapper select.full-button {
    /* Hide the default dropdown arrow */
    -webkit-appearance: none; 
    -moz-appearance: none;    
    appearance: none;         

    /* Remove any default background image/arrow */
    background-image: none;
    
    /* Add extra padding to the right for the custom icon */
    padding-right: 40px; 
    
    /* Ensure the text is visually centered like the "Home" and "Show all" buttons */
    text-align: center;
    text-align-last: center; /* For Firefox */
    
    /* The other styles from your existing CSS are fine: */
    /* background-color: #f8f9fa; */
    /* border: none; */
    /* border-radius: 6px; */
    /* width: 265px; */
}

/* Insert the Font Awesome icon using a pseudo-element */
.custom-levels-wrapper::after {
    /* === Font Awesome Specifics for fa-caret-down === */
    content: '\f0a7'; 
    font-family: 'Font Awesome 7 Free'; 
    font-weight: 400; /* Solid icons require this */
    /* ================================================ */
    
    /* Positioning */
    position: absolute;
    top: 50%;
    right: 90px; /* Adjust position from the right edge */
    transform: translateY(-50%); /* Center vertically */
    
    /* Allows clicks to pass through to the select element */
    pointer-events: none; 
    
    /* Set the icon color */
    color: white; 
    font-size: 20px;
	
}

/* Optional: Keep hover effect on the wrapper for consistency */
.custom-levels-wrapper:hover select.full-button {
    background-color:#a8dadc;
}

.bookmark-btn {
position: absolute;
	left:90%;
	top: 47%;
	transform: translateY(-50%);
	cursor: pointer;
    padding: 0;
    z-index: 10;
	
}
.results.common {
    position: relative; /* <--- ADD THIS LINE */
    /* Maintain other existing styles for .results.common */
    border-bottom: 1px solid #ddd; 
    padding-bottom: 10px; 
    margin-bottom: 10px;
}









.word-meaning b {
    color: #333; /* Example: Blue for the label */
    font-weight: 600;
    margin-right: 5px; /* Adds space after the colon */
}

.word-meaning {
    font-size: 1.05em; /* Ensure the meaning is easy to read */
    line-height: 1.5;
    color: #333;
    margin: 10px 0;
}

/* --- 3. Style for the Example --- */
.word-example {
    font-style: italic;
    color: #1d3557;
    border-left: 3px solid #ccc; /* A vertical line for separation */
    padding-left: 10px;
    margin-top: 10px;
    font-size: 0.95em;
}






 