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

body {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: CowFont, Arial, sans-serif;

}

button {
    cursor: pointer;
    padding: 0.3em;
    margin: 1ex;
    font-size: calc( 0.1em + 0.1ex + 2vmin );
    font-weight: bolder;
    color: gray;
    text-shadow: 1px 1px white, -1px -1px black;
    background: lightgreen;
}

.game-object-wrapper {
  width: 100%;
  height: 100%;
  background-size: contain;
}


#game-container {
  display: flex;
  position: absolute;
  background: #006400 url("../../assets/sprites/svg/PlayingField.svg") no-repeat
    center;
  background-size: contain;
  width: 80%;
  height: 100%;
  overflow: visible;
}


#ui-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  position: absolute;
  right: 0;
  background: #006480 no-repeat;
  background-size: contain;
  width: 20%;
  height: 100%;
}

#ui-button-wrapper button {
  width: 94%; 
  -height: 29%;
  -font-size: calc( 0.1em + 0.1ex + 2vmin );
}

#game-table-wrapper {
  position: relative;
  padding: 0;
  border-spacing: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  max-height: calc(14 / 20 * 80vw);
  max-width: calc(20 / 14 * 100vh);
  line-height: 0;
  overflow: visible;
}

.cow-wrapper,
.mobile-field {
  position: absolute;
}

#game-table {
  padding: 0;
  border-spacing: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#game-table tbody {
  overflow: visible;
}

#game-table td {
  position: relative;
  width: 5%;
  height: calc((80vw) / 20);
  max-height: calc((100vh) / 14);
  padding: 0;
  margin: 0;
  overflow: visible;
  display: inline-block;
}

.game-field {
  position: absolute;
  width: 100%;
  height: 100%;
}

#ui-table-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 50%;
  overflow: visible;
}

#ui-table {
  border-spacing: 0;
  margin: auto;
  background: #5faa00;
}

#ui-table td {
  position: relative;
  padding: 0;
  margin: 0;
  overflow: visible;
  white-space: nowrap;
  border: 1px solid black;
  cursor: grab;
}

.arrow-field {
  z-index: 10;
}

#modal-wrapper {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  visibility: hidden;
  z-index: 50;
  background: repeating-linear-gradient(60deg, rgba(00,190,00,0.8) 50px, rgba(00,190,00,1.0) 150px, rgba(0,190,00,0.8) 200px);
}

#modal {
  position: relative;
  width: 50vw;
  height: 50vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
}

#modal-text {
  font-size: 3vh;
}

#modal-img {
  display: block;
  max-width: 100%;
  max-height: 50%;
}

#modal-button {
  margin-bottom: 5%;
  width: 12%;
  height: 10%;
  min-width: 50px;
  border: 3px solid blue;
  border-radius: 10px;
  background: transparent;
  font-size: 2vh;
}

#end-level-modal-wrapper {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  visibility: hidden;
  z-index: 100;
 -background: rgba(100,0,0,0.9);
}

#end-level-modal {
  position: relative;
  width: 50vw;
  height: 50vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
}

#end-level-modal-text {
  font-size: 3vh;
}

#end-level-modal-img {
  max-width: 100%;
  max-height: 50%;
}

#end-level-modal-button {
  margin-bottom: 5%;
  width: 12%;
  height: 10%;
  min-width: 50px;
  border: 3px solid green;
  border-radius: 10px;
  font-size: 2vh;
}

#completed-levels-modal-wrapper {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  visibility: hidden;
  z-index: 100;
}

#completed-levels-modal {
  position: relative;
  width: 50vw;
  min-height: 50vh;
  max-height: 90vh;
  padding: 1vh;
  margin: 1vw;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
}

#completed-levels-modal-button {
  margin-bottom: 5%;
  max-width: 70%;
  min-width: 50px;
  border: 3px solid lightgreen;
  border-radius: 10px;

  font-size: calc( 0.1em + 0.1ex + 2vmin );

  color: white;
  background: green;   
  cursor: pointer;
  padding: 0.5em;
    font-weight: normal;

}

#ui-table td div {
  width: 100%;
  height: 100%;
  position: absolute;
}

#ui-button-wrapper {
  width: 100%;
  height: 30%;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#start-game-button {
  display: block;
  max-width: 100%;
}

#end-game-button {
  display: block;
  margin-left: auto;
  max-width: 100%;
}

#completed-levels-button {
  display: block;
  margin-left: auto;
  max-width: 100%;
  background: lightgray;
  max-width: 90%;
  margin-top: 2ex;
  margin-left: 1em;    
  border-radius:  2vh;
  border: 3px outset transparent;
}

#low-background-wrapper {
  width: 100%;
  min-height: 10%;
}

.choose-level-link {
  font-size: 2vh;
  border: 3px solid green;
}

.choose-level-link:hover {
  border: 3px solid trasparent;
  background: green;
  color: white;	
  text-shadow: 1px 1px white, -1px -1px lightgreen;
}

#start-game-button{
  background: lightgreen;   
  display: block;
  margin-left: 1em;    
  max-width: 90%;
  border-radius: 0 2vh 2vh 0;
  border: 3px outset transparent;
  box-shadow: 20px 20px 36px rgba(0,0,0,0.2);
}

#end-game-button{
  background: #FFFF55;
  display: block;
  margin-left: auto;
  max-width: 90%;
  margin-top: 2ex;
  margin-left: 1em;    
  border-radius:  2vh 0 2vh 0;
  border: 3px outset transparent;
}

#restart-game-button{
  color: white;
  background: red;   
  margin: 1em;
  cursor: pointer;
  max-width: 70%;
  padding: 0.5em;
  font-weight: normal;
  font-size: calc( 0.2em + 0.2ex + 1vmin );
  border: 3px outset transparent;
}

#completed-levels-button:hover, 
#end-game-button:hover,
#restart-game-button:hover, 
#start-game-button:hover{
   border: 3px white outset;
   color: black;
}

#completed-levels-list-wrapper{
   text-align: center;
   overflow-y: auto;
   overflow-x: hidden;
   scrollbar-color: green darkgreen;
   scrollbar-width: thin;
}

.choose-level-link{
  cursor: pointer;
  font-size: calc( 0.1em + 0.1ex + 2vh );
  background: lightgreen;
  border-radius:  0.9ex;
  padding: 0.1em;
  margin: 0.1em 1.1em 0.1em 1.1em;
  min-width:7em;
  max-width: 70%;
}

