@font-face {
    font-family: 'interface';
    src: url(https://delivercdn.pages.dev/evermore/ChannelGrotesk/ChannelGrotesk.ttf);
}

@font-face {
    font-family: 'interface-bold';
    src: url(https://delivercdn.pages.dev/evermore/ChannelGrotesk/ChannelGrotesk-Bold.ttf);
}

@font-face {
    font-family: 'interface-mono';
    src: url(https://delivercdn.pages.dev/evermore/VanguardGothic/VanguardGothic.ttf);
}

body {
    font-family: 'interface', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 20px;
}

h1 {
    font-family: 'interface-bold', sans-serif;
    color: #666666;
    text-align: center;
}

.container {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 20px;
    max-width: 800px;
    border-radius: 8px;
    /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */
}

input, textarea {
    font-family: 'interface', sans-serif;
    font-size: 16px;
    color: #212121;
    margin: 10px 0;
    padding: 10px;
    width: 97.5%;
    border: 1px solid #d9d9d9;
    resize: vertical;
    border-radius: 10px;
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: #b7b7b7;
}

input:hover, textarea:hover {
    border: 1px solid #b9b9b9;
}

input:focus, textarea:focus {
    border: 1px solid #1976d2;
}

button {
    font-family: 'interface-bold', sans-serif;
    font-size: 16px;
    color: white;
    padding: 10px 20px;
    background-color: #1976d2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #004b9b;
}

.results {
    margin-top: 20px;
}

.ngram {
    padding: 5px;
    border-bottom: 1px solid #9e9e9e;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; 
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}