@font-face {
    font-family: "FSEX300";
    src: url("assets/FSEX300.ttf");
}

body {
    margin: 0;
    padding-bottom: 75px;
}

#logo {
    position: absolute;
    top: 10px;
    left: 10px;
}

* {
    font-family: "FSEX300", sans-serif;
}

h1 {
    text-align: center;
}

#results, #rows {
    display: flex;
    flex-direction: column;
}
#header, .row, #input-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#input-container {
    position: relative;
}

#input-wrapper {
    position: relative;
    display: inline-block;
}

#results {
    margin-top: 20px;
}

/*
#header>div for header row
.row>div for other rows
*/
.row>div, #header>div {
    margin: 2px;
    padding: 2px 5px;
    border-radius: 4px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#header>* {
    font-weight: bold;
}

.name {
    width: 90px;
}

.sex {
    width: 40px;
}

.ues {
    width: 300px;
}

.firstPub {
    width: 150px;
}

.team {
    width: 60px;
}

.correct {
    background-color: lightgreen;
}

.partially_correct, .lower, .higher {
    background-color: rgb(253, 253, 155);
}

.lower::after, .much_lower::after, .higher::after, .much_higher::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/arrow_up.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80px 40px;
    opacity: 0.2;
    pointer-events: none;
}

.higher::after, .much_higher::after {
    transform: rotate(180deg);
}

.wrong, .much_lower, .much_higher, .undefined {
    background-color: lightcoral;
}

.undefined::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/wave.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80px 40px;
    opacity: 0.2;
    pointer-events: none;
}

.highlighted {
    background-color: gold;
}

#suggestions {
    display: block;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    z-index: 1000;
    margin-top: 2px;
}
.suggestion-item {
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 5px;
    border: 1px solid gray;
}
.suggestion-item.no-match {
    background-color: gray;
    cursor: default;
}
.suggestion-item:not(.no-match):hover {
    background: lightgray;
}

#win {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    border-top: 1px solid gray;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: white;
}
