 :root {
     --login-background: url('{!! $bg_img !!}');
 }

 body {
     margin: 0;
     font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
     -webkit-font-smoothing: antialiased;
     color: white;
     background-color: #000;
 }

 ::selection,
 ::-moz-selection {
     background-color: rgba(0, 0, 0, 0.2);
 }

 .background-container {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -1;
     background-image:
         linear-gradient(45deg, #000000b3, #0000004d),
         radial-gradient(circle at top right, rgba(79, 77, 192, .5), transparent 50%),
         radial-gradient(circle at bottom left, rgba(246, 92, 128, .5), transparent 50%),
         var(--login-background);
     background-size: cover;
     background-position: center;
 }

 a {
     color: white;
     text-decoration: none;
     border-bottom: 1px solid rgba(255, 255, 255, 0.5);
     margin-right: 10px;
     transition: all 0.5s ease;
 }

 a:last-child {
     margin-right: 0;
 }

 a:hover {
     text-shadow: 0 0 1px rgba(255, 255, 255, .5);
     border-bottom-color: rgba(255, 255, 255, 1);
 }

 #wrap {
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
     width: 80%;
     max-width: 1400px;
     margin: 8% auto 0 auto;
     position: relative;
 }

 #wordsearch {
     width: 45%;
     order: 1;
 }

 #main-content {
     width: 50%;
     order: 2;
     font-weight: 300;
     font-size: 20px;
     line-height: normal;
 }

 #main-content h3 {
     margin-top: 0;
     font-weight: 400;
     font-size: 32px;
     margin-bottom: 25px;
 }

 #main-content p {
     font-size: 20px;
     margin-bottom: 18px;
 }

 #navigation {
     margin-top: 2%;
 }

 #navigation a.navigation {
     display: block;
     float: left;
     background-color: rgba(255, 255, 255, .05);
     padding: 0 15px;
     color: white;
     height: 41px;
     line-height: 41px;
     font-size: 16px;
     margin-right: 2%;
     margin-bottom: 2%;
     border-bottom: none;
     transition: all 0.5s ease;
 }

 #navigation a.navigation:hover {
     background-color: #ef5137;
 }

 #wordsearch ul {
     margin: 0;
     padding: 0;
     list-style: none;
 }

 #wordsearch ul li {
     float: left;
     width: 12%;
     background-color: rgba(255, 255, 255, .05);
     margin-right: 0.5%;
     margin-bottom: 0.5%;
     padding: 0;
     text-align: center;
     color: rgba(255, 255, 255, 0.7);
     text-transform: uppercase;
     font-size: 26px;
     font-weight: 300;
     transition: background-color 0.75s ease;
 }

 #wordsearch ul li.selected {
     background-color: #ef5137;
     color: #fff;
     font-weight: 400;
 }

 /* Search */
 #search {
     position: relative;
     margin-top: 30px;
 }

 #doc-search-input {
     width: 100%;
     height: 41px;
     padding: 0 15px;
     box-sizing: border-box;
     background-color: rgba(255, 255, 255, 0.05);
     border: none;
     outline: none;
     font-size: 16px;
     font-weight: 300;
     color: white;
     border-radius: 0;
     transition: all 0.3s ease;
 }

 #doc-search-input:focus {
     background-color: rgba(255, 255, 255, 0.1);
 }

 #search-results {
     position: absolute;
     top: 100%;
     left: 0;
     right: 0;
     background: rgba(255, 255, 255, 0.05);
     border-radius: 5px;
     max-height: 300px;
     overflow-y: auto;
     display: none;
     z-index: 1000;
     font-size: 14px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
     padding: 0;
     line-height: 1.6;
     margin: 0;
 }

 #search-results li {
     list-style: none;
 }

 #search-results li a {
     display: block;
     padding: 8px 12px;
     color: white;
     text-decoration: none;
     transition: background 0.2s;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }

 #search-results li a:hover {
     background: rgba(255, 255, 255, 0.1);
     border-bottom-color: rgba(255, 255, 255, 0.2);

 }

 /* Not found fallback */
 #search-results li.not-found {
     text-align: center;
     color: white;
     padding: 8px 12px;
     cursor: default;
     line-height: 1.6;
 }

 /* Scrollbar */
 #search-results::-webkit-scrollbar {
     width: 6px;
 }

 #search-results::-webkit-scrollbar-thumb {
     background-color: rgba(255, 255, 255, 0.3);
     border-radius: 3px;
 }

 /* Responsive */
 @media (max-width: 899px) {
     #wrap {
         width: 90%;
     }
 }

 @media (max-width: 799px) {
     #wrap {
         flex-direction: column;
         margin-top: 40px;
     }

     #wordsearch {
         width: 90%;
         margin: 0 auto 30px auto;
     }

     #main-content {
         width: 90%;
         max-width: 90%;
         margin: 0 auto;
         text-align: justify;
     }

     #main-content h3 {
         text-align: left;
     }

     #wordsearch ul li {
         font-size: 5vw;
     }
 }