@font-face {
    font-family: "chewie";
    src: url(/font/Chewie-Bold.otf);
  }

*{
    padding: 0;
    margin: 0;
    font-family: "chewie";
    list-style: none;
    
}

body {
    height: 100%;
    background: #090A70;
}



nav{
    z-index: 4;
    display: flex;
    color: white;
    background: black;
    padding: 2px;
}
nav p{
    color: white;
}
nav a{
    margin-left: 3px;
    color: #688df7;
}

.fishclicker{
    display: flex;
    width: 100%;
    height: 100%;
}

/*------------- left ------------*/

.left{
    z-index: 0;
    width: 30%;
    height: 100%;
    background: url(/midia/bgsand.png);
    background-size: 80%;
    height: 96.2vh;
    display: flex;
    flex-direction: column;
    border-right: solid 15px;
    border-image: url(/midia/border.png) 30 round ;

}
.left h1{
    padding: 3px;
    background: url(/midia/bgwood.png);
    border-bottom: solid 3px #488C85;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}
.aquarium{
    z-index: -2;
    overflow: hidden;
    width: 100%;
    height: 30%;
    background: #52CCC8;
    box-shadow: inset 0px 0px 42px 10px rgba(4, 23, 48, 0.31);
}
    .fish{
        z-index: -1;
        position: fixed;
        width: 80px;
        height: 80px;
        background: none;
        background-size: cover;
        background-repeat: no-repeat;
    }



/*------------- main ------------*/

.main{
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(0deg, rgba(9,9,121,1) 0.4%, rgba(0,212,255,1) 52%);
    height: 96.2vh;
    width: 40%;
    color: white;
    box-shadow: inset 0px 0px 42px 10px rgba(7, 14, 74, 0.31);
    overflow: hidden;
}
#counter{
    z-index: 2;
    margin-top: 30px;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 50, 100, 0.9);
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
}
#fps{
    z-index: 2;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 50, 100, 0.9);
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
}

header{
    z-index: 4;
    width: 100%;
    background: url(/midia/bgwood.png);
    color: white;
    padding: 10px;
    box-shadow: 0px 4px 6px 2px rgba(5, 20, 80, 0.28);
    border-bottom: solid 3px #488C85;
    display: flex;
}
.uibtn{
    color: white;
    z-index: 2;
    margin: 5px;
    font-size: 20px;
    background: url(/midia/button.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-repeat: round;
    padding: 5px;
    padding-inline: 20px;
    border: solid 1px #3F352E;
    width: 95px;
    border-radius: 5px;
    cursor: pointer;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    transition: filter 0.2s;
}
#settings{
    width: 125px;
}
.uibtn:hover{
    filter: contrast(1.5);
    color: khaki;
}

/* ---- foreground ----- */
.invisible{
    display: none;
    border: none;
}
.foreground{
    pointer-events: none;
    z-index: 4;
    position: absolute;
    width: 100%;
    height: 97vh;
    overflow: hidden;
}
.settings{
    pointer-events: all;
    z-index: 4;
    position: absolute;
    padding: 10px;
    width: 300px;
    height: 500px;
    border: solid 5px #3F352E;
    border-radius: 15px;
    margin-top: 60px;
    left: 30%;
    color: #000;

    background: url(/midia/bgsand.png);
    background-repeat: no-repeat;
    background-size: initial;
    background-repeat: repeat-x;
}

#reset{
    width: 190px;
}

#info{

    flex-direction: column;
    z-index: 5;
    position: absolute;
    text-align: center;
    width: fit-content;
    height: fit-content;
    padding-inline: 12px;
    border: solid 3px rgb(24, 18, 56);
    border-radius: 5px;
    color: white;
    background-color: rgba(0, 0, 0, 0.63);
    font-size: 15pt;
    left: auto;
    top: auto;
}



.shine {
    position: absolute;
    z-index: 0;
    top: 50px;
    width: 500px;
    height: 500px;
    background: url(/midia/shine.png);
    background-repeat: no-repeat;
    background-size: contain;
    animation-name: spin;
    animation-duration: 10000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear; 
    /* transform: rotate(3deg); */
     /* transform: rotate(0.3rad);/ */
     /* transform: rotate(3grad); */ 
     /* transform: rotate(.03turn);  */
  }
  @keyframes spin {
      from {
          transform:rotate(0deg);
      }
      to {
          transform:rotate(360deg);
      }
  }

.bigFish{
    z-index: 3;
    margin-top: 20px;
    background-color: transparent;
    background-image: url(/midia/bigfish.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    outline: none;
    border: none;
    width: 350px;
    height: 250px;
    transition: transform 0.2s;
    filter: drop-shadow(0 3px 3px rgba(5, 20, 80, 0.3));
}
.bigFish:hover{
    transform: scale(1.04);
    filter: drop-shadow(0 5px 5px rgba(5, 20, 80, 0.3));
}
.bigFish:active{
    transform: scale(0.95);
}

/*------------- right ------------*/


.right{
    z-index: 1;
    display: flex;
    flex-direction: column;
    background: url(/midia/bgsand.png);
    background-size: 80%;
    height: 96.2vh;
    width: 30%;
    border-left: solid 15px;
    border-image: url(/midia/border.png) 30 round;
}
.right h1{
    padding: 3px;
    background: url(/midia/bgwood.png);
    border-bottom: solid 3px #488C85;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

#buildings{
    display: flex;
    flex-direction: column;
}
.building{
    display: flex;
    flex-direction:row ;
    box-shadow: inset 0px 0px 10px 5px rgba(133, 105, 80, 0.3);
    border: #4D8582;
    border-right: solid 15px;
    border-image: url(/midia/border.png) 200 round;
    text-align: start;
    background: transparent;
    cursor: pointer;
    transition: background 0.1s;
}
.building:hover{
    background: rgba(255, 248, 189, 0.493);
}
.building:active{
    background: rgba(255, 255, 255, 0.8);
}
.building h3{
    font-size: 1.7rem;
    margin: 5px;
}
.bicon{
    width: 70px;
    aspect-ratio: 2;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
    margin: 5px;
    scale: 70px;
    background-repeat: no-repeat;
    background-position-x: 220px;
    background-size: 120px;
}
.bcontent{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.btext{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.btext p{
    display: flex;
    margin-left: 5px;
    margin-top: 20px;
    font-size: 1.1rem;
    color: #695954;
}
.bstats{
    width: 100%;
    display: flex;
    flex-direction: row;
    bottom: 0;
    justify-content: space-between;
}
.bowned{
    right: 0;
    margin-right: 20px;
}
.bbuy{
    display: flex;
    right: 0;
    color: white;
    font-size: 14px;
}
#b10, #bmax{
    background: url(/midia/button.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-repeat: round;
    width: min-content;
    height: min-content;
    border: solid 1px #3F352E;
    border-radius: 5px;
    cursor: pointer;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    padding: 5px;
    padding-inline: 8px;
    margin-inline: 5px;
    margin-top: 7px;
    right: 0;
    transition: background 0.2s;
}

#b10:hover {
    filter: contrast(1.5);
    color: khaki;
}

#bmax:hover {
    filter: contrast(1.5);
    color: khaki;
}
/*------------- upgrades ------------*/


#upgrades{
    z-index: 2;
    height: 40%;
    display: flex;
    flex-direction: column-reverse;
    color: white;
    margin-top: 60px;
	text-align: center;
    bottom: 0;
}
#upgrades h3{
    left: 31%;
    position: absolute;
    text-align: left;
    margin-top: -40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}
.upgrade{
    text-align: center;
    display: inline-block;
    position: relative;
    margin-inline: 4px;
    width: 70px;
    height: 70px;
    background-size: 70px;
    background: url(/midia/bubble.png);
    transition: transform 0.2s ease;
    border: none;
}
.upgrade img{
    filter: drop-shadow(0 0 5px rgb(17, 4, 65));
}
.upgrade:hover{
    transform: scale(1.15);
}
.upgrade:active{
    transform: scale(0.90);
}


/*------------- tools ------------*/


.tool{
display: flex;
padding: 5px;

}
.tool-icon{
    aspect-ratio: 2;
    background: url(/midia/float.png); 
    width: 116px; 
    height: 116px;
    text-align: center;
    transition: transform 0.4s;
    transition: filter 0.2s;
}
.tool-icon img{
    filter: drop-shadow(0 0 9px black);
    transition: transform 0.4s ease;
    transition: filter 0.2s ease;
}
.tool-icon img:hover{
    filter: drop-shadow(0 0 11px black);
    transform: scale(1.05);
}
.tool-text{
    display: flex;
    flex-direction: row;
}

.tool-text p{ 
    margin-top: 5px;
    margin-left: 80px;
    font-size: 1.1rem;
    color: #695954;
}
