#could_not_switch_languages_text {
    color: red;
}

body { max-width:40em}
h1 a{color:black; text-decoration:none}

.item {
    max-width: 44%;
    height: 150px;
    width:40em;
    display:block;
    float:left;
    margin-right:.5em;
}
.language {
}

.invbr { display:none}

.switch_languages {
    float: left;
    margin: 0px 30px;
}

#switchbutton {
    white-space: nowrap;
}

button,select {
  border: 0;
  background: none;
  cursor: pointer;
  color: blue;
  font-size:1em;
  display:block;
  float:left;
}

.trsn { width:90%; text-align:right;}

input,
select,
textarea {
    font-size: 1rem;
    padding: 4px;
}

textarea {
    resize: vertical;
    height: 5rem;
    font-family: sans-serif;
    max-width:100%;
    width:40em;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    border-color: blue;
    outline: 0;
}

#pronunciation {
    color: grey;
    width: 100%;
}

ul {list-style-type:square}


#definitions_and_translations {
    display: grid;
    width: 90%;
    gap: 10px;
    grid-template-areas: "definitions translations";

}

.def_type {
    color: #007979;
    text-transform: capitalize;
}

.syn {
    color: #804700;
}

.syn_type {
    color: #007979;
}

.use_in_sentence {
    color: #009902;
}

.definitions li:not(:last-child) {
    margin-bottom: 1rem;
}

@media screen and (max-width: 860px) {
    #definitions_and_translations {
        display: grid;
        max-width: 90%;
        grid-template-areas:
            "definitions definitions"
            "translations translations";
    }
.item { float:none; max-width:98%;margin-right:0;margin-bottom:.5em}
button,select {float:none;}
.switch_languages { float: none; margin: 0px; }
.language { float: none; }
}


div.definitions {
    grid-area: definitions;
}

div.translations {
    grid-area: translations;
}

a { color:blue }
a:hover { color:purple }
