@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: normal;
    src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url('fonts/source-sans-pro-v13-latin-regular.woff2') format('woff2'), url('fonts/source-sans-pro-v13-latin-regular.woff') format('woff');
    font-display:swap
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 600;
    src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url('fonts/source-sans-pro-v13-latin-600.woff2') format('woff2'), url('fonts/source-sans-pro-v13-latin-600.woff') format('woff');
    font-display:swap
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 700;
    src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url('fonts/source-sans-pro-v13-latin-700.woff2') format('woff2'), url('fonts/source-sans-pro-v13-latin-700.woff') format('woff');
    font-display:swap
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: normal;
    src: local('Barlow Condensed Medium'), local('BarlowCondensed-Medium'), url('fonts/barlow-condensed-v4-latin-500.woff2') format('woff2'), url('fonts/barlow-condensed-v4-latin-500.woff') format('woff');
    font-display:swap
}

html {
    background-color: rgb(28, 63, 73);
    -webkit-text-size-adjust: 100%;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}


header {
    background-color: rgb(215,233,236);
}

h1 {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 22.5px;
    margin-top: 0.5em;
    /*margin-right: 0.4em;*/
    /*    color: white;*/
    word-wrap: anywhere;
    margin-bottom: 0.5em;
    /*margin-left: 0.4em;*/
    line-height: 1em;
/*    border: 6px solid rgb(28, 63, 73);*/
    padding: 0.5em 0;
    max-width: 450px;
    margin: 0.5em auto;
}

.logowrapper {
    display: flex;
    justify-content: space-between;
    padding: 0.5em 20px;
    border: 0 solid rgb(28, 63, 73);;
    border-width: 0 1px;
}

@media screen and (max-width: 450px) {
    .logowrapper {
	border-width: 0 !important;
    }
}


.mainwrapper {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

input:focus {
    outline: 2px solid rgb(28, 63, 73);
    outline-offset: 2px;
}

h1 .rubrik-svenska {
    text-align: left;
    flex: 3 1 0;
    width: 0;
}

h1 .joblogo {
    align-self: end;
    flex: 1 1 0;
    width: 0;
}

h1 .joblogo img {
    max-width: 100%;
}

h1 .rubrik-jiddisch {
    text-align: right;
    flex: 3 1 0;
    width: 0;
}

h1 .ordbok-titel {
    display: flex;
}

body {
    font-family: "Source Sans Pro",sans-serif;
    font-weight: normal;
    color: black;
    /* border: 20px solid rgb(28, 63, 73); */
/*    padding: 20px 0; */
    min-height: 100vh;
    margin: 0;
}

body {
/*    font-family: "Trebuchet MS", Verdana, Helvetica, sans-serif;
    color: #404040;*/
    line-height: normal;
}

form.lexikon-search {
    font-size: 1rem;
    line-height: normal;
    margin-bottom: 1em;
}

form.lexikon-search .inputwrapper {
    max-width: 100vw;
    display: inline-block;
    position: relative;
    padding-left: max(env(safe-area-inset-left), 0.5em);
}

form.lexikon-search input {
    font-size: 2rem;
    line-height: normal;
}

form.lexikon-search input#searchquery {
    width: 100%;
    box-sizing: border-box;
    padding-right: 1.5em;
    padding-left: 0.2em;
}

.searchicon {
    font: inherit;
    font-size: 2em;
    line-height: normal;
    width: 1em;
    display: inline-block;
    background: no-repeat center / 1em url(search.svg);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0.2em;
    width: 1em;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-indent: -99999px;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
}

form.lexikon-search label {
    padding-right: 0.4em;
}

.lexikon-result {
    margin-bottom: 100px;
}


.resultentry {
    /*margin: 1em;*/
    font-size: 1.25rem;
    /*line-height: normal;*/
    word-break: keep-all;
    border: solid black;
    border-width: 0 0;
}


.resulttranslation, .resultword, .resultdomain {
/*    vertical-align: middle;*/
}

.resulttranslation {
    /*padding-left: 0.5rem;*/
    padding-right: 0.5rem;
}

.resultword {
    /*line-height: 1rem;*/
    padding-right: 0.5rem;
}

.resultdomain {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    background: #0000c0;
    color: white;
}

.resultterm {
    display: inline-block;
/*    padding: 0.2rem 0.5rem;*/
/*    border-radius: 0.5rem;*/
/*    background: #f5f5f5;*/
/*    border: 1px solid #f0f0f0;*/
}

.hanvisning {
    padding-left: 1em;
}

.resultrow {
    margin: 0 0 1em 0;
}

.entryheader {
    margin: 0.4em;
    word-break: keep-all;
}

@media screen and (max-width: 800px) {
    .resultword {
        display: block;
    }
}

.ui-menu .ui-menu-item {
    font-size: 2rem;
    line-height: normal;    
}

.sv-ord {
    font-weight: bold;
}

.lexnr {
    padding-right: 1ex;
}

.graminfo {
    font-style: italic;
    font-size: 0.9em;
    font-family: Georgia, serif;
    padding-left: 1ex;
}

.kommentar {
    font-family: Georgia, serif;
    font-size: 0.9em;
    padding-left: 1ex;
}

main {
/*    padding: 20px;
    padding-top: 1.5em;*/
    padding-bottom: 1em;
    background-color: #ffffffff;
    border: solid rgb(215,233,236) 0;
    border-width: 0 0 1em 0;
    min-height: calc(100vh - 20em);
}

footer {
/*    max-width: 450px;*/
    margin: 0.5em auto;
    background-color: rgb(28, 63, 73);
    padding: 1em 20px 1em 20px;
    display: flex;
/*    flex-direction: column;*/
    color: white;
    justify-content: space-between;
}

@media screen and (max-width: 1000px) {
    footer {
        display: block;
    }
    footer ul.signoff {
	padding: 20px 0 !important;
	width: auto !important;
    }
}


footer .isoflogowrapper, footer ul {
    flex: 1 1 0;
}

footer ul.signoff {
    width: 450px;
    max-width: 450px;
    flex: 0 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

footer img {
    width: 150px;
}

footer ul {
    list-style-type: none;
    margin: 0;
    padding: 1em 0;
}

footer li {
    margin-bottom: 1rem;
}

footer a {
    color: white;
    word-wrap: anywhere;
}

.lp-icon {
    height: 1em;
    overflow: hidden;
    vertical-align: -0.05em;
    width: 1em;
    fill: currentColor;
}

.lp-icon, .lp-toggler-icon {
    pointer-events: none;
}

footer .lp-icon {
    color: #3fd695;
    font-size: .7em;
    margin-left: .8rem;
}

.resultwrapper {
    display: flex;
    justify-content: space-between;
}

.resultrow .resultrow {
    margin: 1em 0 1em 1em;
}

/* webkit solution */
::-webkit-input-placeholder { text-align:right; }
/* mozilla solution */
input:-moz-placeholder { text-align:right; }

/* changes by Jacob */


.suggestion-div{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
}
.suggestion-button{
  margin-top: 10px;
  width: 190px;
  height: 45px;
  background-color:#1C3F49;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
}
.suggestion-button:hover {
  background-color: #112930;
  transform: scale(1.05);
}

.modal{
  display: none; /* hidden by default */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  width: 300px;
}

.modal-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
