body {
    background-image: url("images/background.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #769184;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    
    font-family: 'Josefin Sans', sans-serif;
}

button {
    padding: 10px;
    width: 150px;
}

div {
    padding: 20px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vh;
}

#gamecontrol {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#actions {
    display: none;
}

span {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: bold;
}

#startgame {
    display: inline-block;
    text-decoration: none;
    color: rgb(14, 37, 45);
    background-color: #2a7579;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
    animation: bounce 1s infinite;
}

#startgame:hover span {
    background-color: #a3d3d9;
}

#startgame:active span {
    transform: none;
}

#startgame span {
    display: inherit;
    border-radius: inherit;
    background-color: #b4e3e4;
    padding: 1rem 2rem;
    transform: translate(0.25rem, -0.25rem);
    border: 2px solid #2a6579;
    transition: transform 100ms cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 250ms;
}

#rules {
    display: inline-block;
    text-decoration: none;
    color: rgb(14, 37, 45);
    background-color: #2a7579;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
    animation: bounce 1s infinite;
}

#rules:hover span {
    background-color: #a3d3d9;
}

#rules:active span {
    transform: none;
}

#rules span {
    display: inherit;
    border-radius: inherit;
    background-color: #b4e3e4;
    padding: 1rem 2rem;
    transform: translate(0.25rem, -0.25rem);
    border: 2px solid #2a6579;
    transition: transform 100ms cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 250ms;
}

#other {
    display: inline-block;
    text-decoration: none;
    color: rgb(14, 37, 45);
    background-color: #2a7579;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
    animation: bounce 1s infinite;
}

#other:hover span {
    background-color: #a3d3d9;
}

#other:active span {
    transform: none;
}

#other span {
    display: inherit;
    border-radius: inherit;
    background-color: #b4e3e4;
    padding: 1rem 2rem;
    transform: translate(0.25rem, -0.25rem);
    border: 2px solid #2a6579;
    transition: transform 100ms cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 250ms;
 }
 
.bird {
    background-image: url('images/Bird.gif');
    background-size: auto 100%;
    width: 88px;
    height: 125px;
    animation-name: fly-cycle;
    z-index: -2;
}

.bird-container {
    position: absolute;
    top: 20%;
    left: -10%;
    transform: scale(0) translateX(-10vw);
    animation-name: fly-right;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 15s;
}

.bounce {
    animation: bounce 2s infinite;
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.bounce .description {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.bounce .name {
    align-items: center;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px;
    background-color: white;
}

.bounce:hover .description {
    opacity: 1;
}

.birds {
    width: 250px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.birds:hover {
    transform: scale(1.2);
    cursor: pointer;
}

#character {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: bold;
    padding: 0;
    height: 78%;
}

#selections {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-end;
    justify-content: space-between;
    margin-left: 350px;
    margin-right: 350px;
    padding-bottom: 50px;
}

#selections h1 {
    padding: 0;
    margin: 0;

    font-family: 'Josefin Sans', sans-serif;
    font-size: 25px;
}

#pick-character {
    padding: unset;
}

#characterpick {
    flex-direction: row;
}

#characterpick img {
    width: 300px;
    height: auto;
}

#char2 {
    z-index: 2;
}

@keyframes fly-right {
    0% {
        transform: scale(0.3) translateX(-10vw);
    }

    50% {
        transform: translateY(2vh) translateX(50vw) scale(0.6);
    }

    100% {
        transform: translateY(0vh) translateX(110vw) scale(0.6);
    }
}

@keyframes fly-cycle {
    100% {
        background-position: -900px 0;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* RULES CSS */
.modal {

    visibility: hidden;
    /* hidden by default */
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    padding: unset;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);

}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #a3d3d9;
    margin: 10% auto;
    padding: 20px;
    border: 3px solid #2a6579;
    width: 50%;
    border-radius: 25px;
    height: 50%;
}

.close {
    color: #185477;
    float: right;
    font-size: 40px;
    font-weight: bold;
    padding-right: 15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#rulesdiv {
    padding: 1em;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: bold;
}

#rulesdiv h2 {
    margin: unset;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: bold;
}

/* HEALTH STYLES */
#healthbars {
    flex-direction: row;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: unset;
}

#thefight {
    padding: unset;
}


#healthwhite1 {
    background-color: white;
    width: 240px;
    height: 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: unset;
}

#healthwhite2 {
    background-color: white;
    width: 240px;
    height: 20px;
    border-radius: 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: unset;
}

#health1 {
    background-color: green;
    width: 220px;
    height: 10px;
    border-radius: 25px;
    padding: unset;
    margin-left: 10px;
}

#health2 {
    background-color: green;
    width: 220px;
    height: 10px;
    border-radius: 25px;
    padding: unset;
    margin-right: 10px;
}

#healths {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: unset;
}

/* ATTACKING ANIMATION */

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
   
.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

.scale {
    transform: scale(1.5);
}

#pidgy {
    padding-right: 30px;
}

#butch {
    padding-right: 30px;
}

select {

    /* styling */
    background-color: white;
    border: thin solid rgb(25, 90, 84);
    border-radius: 4px;
    display: inline-block;
    font: inherit;
    line-height: 1.5em;
    padding: 0.5em 1em 0.5em 1em;
}

#bird1 {
    position: absolute;
    width: 275px;
    height: auto;
    top: 9px;
    left: 399px;
    animation: bounce 2s infinite;
}

#bird2 {
    position: absolute;
    width: 300px;
    height: auto;
    top: 345px;
    right: 373px;
    animation: bounce 2.5s infinite;
}

button {
    border: 3px #2a6579 solid;
    border-radius: 5px;
    background: #a3d3d9;
}

button:hover {
    background-color: #eaf9fb;
    cursor: pointer;
}

select:hover {
    cursor: pointer;
}