@media only screen and (max-width: 600px) {
    nav:not(.replacement) {
        display: none;
    }
    nav.replacement, nav.replacement .sidenav-trigger, nav.replacement .material-icons {
        height: 40px;
        line-height: 40px;
    }

    .hide-on-med-and-up .btn {
        height: 25px;
        line-height: 15px;
        padding: 5px;
        font-size: 12px;
        text-transform: none;
    }
    .hide-on-med-and-up .btn .material-icons {
        line-height: 15px;
    }

    #contract-list {
        margin: .5rem 0 0 0;
    }
    .contract img {
        width: 50px !important;
        height: 35px;
        left: 5px !important;
        top: 5px;
    }
    .collection .collection-item.contract {
        line-height: 1.3rem;
        min-height: 45px;
        margin-bottom: 3px;
        padding: 3px 3px 3px 63px;
        border-radius: 10px;
    }
    #contract-list .contract .badge {
        position: absolute;
        bottom: 3px;
        border-radius: 8px;
    }
    .contract .nb-games {
        right: 3px;
    }
    .contract .nb-goals {
        right: 75px;
    }
    #loading-contract {
        padding: 4px;
        height: 45px !important;
        border-radius: 10px;
    }
    div#list-team-explanation {
        border: none;
    }

    #person-autocomplete-input-div {
        width: 100%;
        bottom: 190px;
    }
    #person-autocomplete-list .collection-item:not(.empty) {
        height: 34px;
    }
    #person-autocomplete-list .person {
        cursor: pointer;
        padding: 7px 20px;
    }

    #person-input-cursor {
        position: fixed;
        bottom: 230px;
        left: 10px;
        font-size: 16px;
        animation: blink 1s step-start infinite;
    }

    @keyframes blink {
        50% {
            opacity: 0;
        }
    }
}

@media only screen and (max-width: 600px) and (max-height: 600px) {
    #page-content #person-autocomplete-input-div {
        bottom: 140px;
    }

    #page-content #keyboard {
        height: 140px;
    }

    #page-content #keyboard .keyboard-line {
        height: 35px;
    }

    #page-content #keyboard .keyboard-line .btn{
        height: 30px;
    }

    #page-content #keyboard .keyboard-line .btn.keyboard-action {
        line-height: 30px;
    }

    #page-content #person-input-cursor {
        bottom: 180px;
    }

    #page-content #person-autocomplete-list .collection-item:not(.empty) {
        height: 30px;
    }
    #page-content #person-autocomplete-list .person {
        padding: 5px 20px;
    }
}

@media only screen and (min-width: 601px) {
    #page-content {
        position: fixed;
        top: 141px;
        margin-left: 10%;
    }

    .person-info-nationalities {
        height: 44px;
    }

    #loading-contract, #page-content .contract {
        height: 55px !important;
        border-radius: 10px;
    }
    #page-content .contract {
        min-height: 55px !important;
        padding: 5px 5px 5px 80px;
        margin-bottom: 5px;
    }

    .contract img {
        width: 60px !important;
        height: 45px;
        left: 5px !important;
        top: 5px;
    }

    .contract .badge {
        position: absolute;
        right: 5px;
        border-radius: 5px !important;
    }
    .contract .nb-games {
        top: 4px;
    }
    .contract .nb-goals {
        bottom: 4px;
    }

    #large-screen-info ul {
        border-radius: 10px;
    }

    .reveal-player, .new-player, .next-round, .return-challenge, #home-btn {
        border-radius: 18px;
        color: black;
    }

    #person-autocomplete-input-div {
        width: 80%;
        top: 64px;
    }
    #person-autocomplete-list {
        opacity: 0.95;
        position: fixed;
        top: 141px;
        width: 53%;
    }
    #person-autocomplete-list .collection-item {
        height: 43px;
    }
    #person-autocomplete-list .person {
        cursor: pointer;
    }
}

#mobile-info td {
    padding: 5px;
    font-size: 13px;
    height: 30px;
}

#list-team-explanation {
    position: absolute;
    z-index: -1;
    color: white;
    font-size: 20px;
    text-align: center;
    display: grid;
    align-items: center;
    border: 3px dashed white;
    border-radius: 15px;
    opacity: 0.2;
}

.contract-list, #person-info {
    border: 0;
}

.contract-list {
    height: calc(100% - 23px);
    overflow-y: scroll;
    overflow-x: hidden;
}

.contract-list::-webkit-scrollbar {
    display: none;
}

.contract .duration {
    font-size: 14px;
}
.contract img {
    border: solid 1px black;
    border-radius: 8px;
    object-fit: cover;
    position: absolute;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

#mobile-info td.person-info-nationalities {
    padding: 3px;
}
.person-info-nationality {
    display: inline-block;
    border: solid 1px black;
    border-radius: 5px;
    height: 23px !important;
    margin-right: 5px;
}

#person-autocomplete-input-div {
    margin: 0;
    position: fixed;
}

#person-autocomplete-list {
    margin: 0;
}

@media only screen and (max-width: 600px) {
    #keyboard {
        height: 190px;
        width: 100%;
        padding: 5px;
        margin: 0;
        position: fixed;
        bottom: 0;
    }

    #keyboard .keyboard-line {
        height: 45px;
        display: flex;
        border-bottom: none;
    }

    #keyboard .keyboard-line .btn {
        height: 40px;
        margin: auto;
        padding: 0;
    }
    #page-content #keyboard .keyboard-line .btn.active {
        background-color: black !important;
    }

    #keyboard .keyboard-line .btn.keyboard-action {
        line-height: 40px;
    }

    #keyboard .keyboard-letter {
        width: 9%;
    }

    #keyboard .keyboard-action {
        margin-left: 2%;
        width: 20%;
    }
    #keyboard .keyboard-action i {
        font-size: 1.6rem;
    }
    #keyboard #keyboard-space {
        width: 50%;
    }
    #keyboard #keyboard-space i {
        font-size: 2.6rem;
    }
}
