html {
    overflow-y: scroll; /* Always show vertical scrollbar */
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    max-width: 640px; 
    margin: 0 auto; 
    padding: 10px;
    color: #1A1A1A;
    box-sizing: border-box;
    font-size: 16px;
    padding-right:12px; /* Reserve space for the scrollbar */
}

h1{
    font-size:22px;
    margin:0px;
    padding:0px;
    margin-bottom:15px;
}

h2{
    font-size:16px;
        margin:0px;
    padding:0px;
}

a{
    text-decoration:none;
    color:#1A1A1A;
}

a:hover{
    opacity:80%;
    transition: opacity 0.2s ease;
}

/* Other styles */
header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

ul {
    padding-top:0px;
    margin-top:10px;
    margin-bottom:20px;
    padding:0px;
    list-style-type: none;
    width:auto;
}

ul li {
  display: inline-block;
    margin-top: 6px;
    margin-bottom: 6px;
    width:auto;
    margin-right:6px;
    padding:4px 12px 7px 12px;
        background:#ffffff;
    border:1px dashed #b6b6b6;
    border-radius:7px;
    font-weight:500;
    font-size:16px;
   font-size:15px;
}

ul li a {
    color:#1A1A1A;
    text-decoration: none;
    font-size:15px;
}

footer {
    padding: 10px 0;
    color: #333;
    bottom: 0;
}

.video-container {
    position: relative;
    width: 100%; /* Full width */
    height: 0;
    padding-top: 56.25%; /* This maintains the 16:9 aspect ratio */
    overflow: hidden; /* Prevents any content from overflowing */

            border-radius:8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;


    width: 100%; /* Force the iframe to be 100% width */
    height: 100%; /* Ensure the height adjusts automatically */
}

#wrapper{
    margin-top:20px;
     border-radius: 16px;
    background:white;
     padding: 24px;
     border: 1px solid #D8D8D8;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* Add shadow */
      box-sizing: border-box; 
}

.search-container {
    position: relative; /* Make sure the container is positioned for the absolute positioning of search results */
    display: inline-block; /* Ensures the width matches the input field's container */
    width: 100%; /* Same width as the input field, you can adjust this */
    margin-bottom:3px;
}

#search {
    width: 80%;
    margin-left:10%;
    border-radius: 36px;
    font-family: 'Inter', sans-serif;
    padding: 14px 20px 14px 42px;
    border: 1px solid #D8D8D8; /* Corrected border syntax */
    outline: none; /* Remove the default focus outline */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); /* Add shadow */
    transition: border 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
    box-sizing: border-box; /* Include padding and borders in the width */
    font-size:14px;
    
    background-image: url('../img/search.svg');
  background-position: 16px 16px; 
  background-repeat: no-repeat;
}

#search:focus {
    border: 1px solid #FF4242; /* Highlight border when focused */
    box-shadow: 0 4px 10px #FF424230; /* Custom shadow on focus */
}

#search-results {
      border: 1px solid #D8D8D8;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    border-radius:14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04); /* Add shadow */
    background-color: #fff;
    z-index: 999;
    width:90%;
    margin-left:5%;
    position:absolute;
}

#search-results li {
    padding: 10px;
      list-style-type: none;
    cursor: pointer;
    font-size:15px;
}
#search-results li:hover {
    background-color: #f0f0f0;
}


form {

    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #D8D8D8;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: #ffffff99;
}

form input:focus,
form textarea:focus {
    border: 1px solid #FF4242;
    box-shadow: 0 4px 10px #FF424230;
}

form textarea {
    resize: none;
}

form button {
    background: #333;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border: none;
     font-family: 'Inter', sans-serif;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.2s ease;
}

form button:hover {
    opacity: 0.8;
}

