/* Reset CSS */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    text-rendering: optimizeSpeed;
    position: relative;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    border: none;
    background: none;
    outline: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.coast {
    background-color: bisque;
    height: 120px;
    padding:10px;
}

.coast .score {
    display: inline-block;
    width: 200px;
    height: 42px;
}

.coast h4 {
    padding-top: 12px;
}

.timer {
    display: inline-block;
    width: 200px;
    height: 42px;
}

.start {
    padding:6px 20px;
    color:white;
    background-color: #992244;
    display: inline-block;
    margin-left: 30px;
    border-radius: 7px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.14s;
}

.start:hover {
    background-color: #cc1144;
}


.sea {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    background-image: url(../img/background.png);
    background-position: center center;
    background-size: cover;
}

.hook {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    display: none;
    animation: none;
    width: 46px;
    height: 46px;
}

.line {
    width: 2px;
    height: 700px;
    top: -700px;
    left: 50%;
    transform: translateX(-50%);
    position:absolute;
}

.player-hook .line {
    background: #444;
}

.ai-hook .line {
    background: #d9534f;
}

.hook img {
    display: block;
}


.fish {
    position:absolute
}

.fish img {
    width: 100%;
    display: block;
}


.carp {
    width: 100px;
    bottom: 120px;
}



.puffer {
    width: 80px;
    bottom: 150px;
}


.marlin {
    width: 80px;
    bottom: 150px;
}


@keyframes carpMove {
    0% {
        left: -100px;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -100px;
    }
}

@keyframes carpFlip {
    0%, 49.9% {
        transform: scaleX(-1);
    }

    50%, 99.9% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(-1);
    }
}

button:disabled {
    color: #e1eced;
}

.hidden {
    display: none;
}

.game-over {
    background-color: rgba(0,0,0,.4);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    padding:12px 16px;
}

.game-over h2 {
    color: #e1eced;
}

.game-over input {
    background-color: rgba(255,255,255,.8);
    margin-right:20px;
    width: 160px;
}

.game-over .ranking {
    margin-top: 30px;
    color: #e1eced;
}

.game-over .submit {
    border: 1px solid #000;
    margin-left: auto;
    border-radius: 2px;
    padding: 2px 4px;
    font-weight: 500;
    transition: .25s;
    cursor: pointer;
}
.game-over .submit:hover {
    background-color: #000;
    color: #e1eced;
}


.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-over .score {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 500;
}

#rankingList {
    margin-top: 10px;
}

#rankingList span {
    font-size:18px;
    width: 75%;
}

#rankingList li {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    border-bottom: 1px solid #e1eced;
}

#submitMessage {
font-size:13px;
margin-top: 4px;
}