/*
Copyright (C) 2020 Jan-Dirk van Dingenen

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Note:
The Isle of Cats boardgame designed by Frank West is copyright of The City of Games

*/

@import url('https://fonts.googleapis.com/css?family=Aclonica|Bungee|Orbitron&display=swap');


::selection, button::selection {
background: transparent;
}
::-moz-selection, button::-moz-selection {
background: transparent;
}

*:not(input):not(textarea) {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

html {
    background-image: url(img/water.jpg);
    touch-action: manipulation;
    /*animation: sea 60s linear infinite;*/
}

body {
    margin:0;
}

#game {
    --size: 50px;
    --gameSize:var(--size);
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    min-height: 100vh;
    /*width: calc(var(--size) * 29);*/
    margin: 0 auto;
    cursor:default;
}

#game, button {
    font-family: 'Orbitron', monospace;
    font-size: calc(var(--size) * 0.19);
    text-transform: uppercase;
    font-weight: bold;
}

button {
    -webkit-appearance: none;
    box-shadow: inset 0px 1px 0px 0px #ffffff;
    background: linear-gradient(to bottom, #ededed 5%, #dfdfdf 100%);
    background-color: #ededed;
    border-radius: calc(var(--size) * 0.1);
    border: 1px solid #dcdcdc;
    color: #575757;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0px 1px 0px #ffffff;
    cursor: pointer;
    outline: none;
}

button:hover {
	background:linear-gradient(to bottom, #dfdfdf 5%, #ededed 100%);
	background-color:#dfdfdf;
}

button#drawRotate:hover img {
    animation: rotate 1s linear infinite;
}

button#drawDone:hover img {
    animation: boat 4s linear infinite;
}

button#drawUndo:hover img {
    
}

button:active {
    transform: translate(0,-1px);
}

button img {
    width: calc(var(--size) * 0.3);
    vertical-align: text-bottom;
}

input[type=checkbox] {
    border-radius: 0;
}

#lessons input[type=checkbox] {
    pointer-events: none;
    position:relative;
    -webkit-appearance: none;
    border:none;
}

#board {
    position: relative;
    width: calc(var(--size) * 22);
    height: calc(var(--size) * 9);
    filter: drop-shadow(calc(var(--size) * 0.2) calc(var(--size) * 0.2) calc(var(--size) * 0.3) black);
}

.header {
    font-family: 'Aclonica', sans-serif;
    font-size: calc(var(--size) * 0.3);
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: calc(var(--size) * 0.25);
}

.tile {
    width: var(--size);
    height: var(--size);
    border: solid 1px #000;
    box-sizing: border-box;
    position: absolute;
    left: calc(var(--size) * var(--tileX));
    top: calc(var(--size) * var(--tileY));
    box-shadow: 0 0 0 1px #000;
    background-position: bottom right;
    background-color: #b28864;
    background-size: cover, 40%;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
}

.tile.captain2, .tile.deck  {
    background-image: url(img/wood.jpg);
    background-color: #8e6542;
}

.tile.captain, .tile.captain2 {
    background-image: url(img/wood.jpg), url(img/parrot.svg);    
}

.tile.bed, .tile.bed2 {
    background-image: url(img/wood.jpg), url(img/moon.svg);
}

.tile.store {
   background-image: url(img/wood.jpg), url(img/wheat.svg);
}

.tile.dining {
    background-image: url(img/wood.jpg), url(img/apple.svg);
}


.tile.rat:after {
    content: "";
    position: absolute;
    width: calc(var(--size) * 1);
    height: calc(var(--size) * 1);
    background-size: 80%;
    background-repeat: no-repeat;
    background-image: url(img/rat.svg);
    filter: drop-shadow(0px 0px 1px white);
}

.tile.map:after {
    content: "";
    position: absolute;
    width: calc(var(--size) * 1);
    height: calc(var(--size) * 1);
    background-size: 80%;
    background-repeat: no-repeat;        
        filter: drop-shadow(0px 0px 1px #fff) drop-shadow(0px 0px 1px #fff);
}

.tile.map_blue:after {
    background-image: url(img/map_blue.svg);
}

.tile.map_green:after {
    background-image: url(img/map_green.svg);
}

.tile.map_yellow:after {
    background-image: url(img/map_yellow.svg);
    filter: drop-shadow(0px 0px 1px #000) drop-shadow(0px 0px 1px #000) drop-shadow(0px 0px 1px #fff) drop-shadow(0px 0px 1px #fff);
}

.tile.map_red:after {
    background-image: url(img/map_red.svg);
}
.tile.map_purple:after {
    background-image: url(img/map_purple.svg);
}

#top, #catControl, #scoring, #specials, #history, #island, #multiPlayerResults {
    border: solid 2px #303030;
    padding: calc(var(--size) * 0.3);
    border-radius: calc(var(--size) * 0.2);
    background-color: #f0f0f0;
    box-sizing: border-box;
    background-image: url(img/white.jpg);
    background-blend-mode: lighten;
    position: relative;
    box-shadow: calc(var(--size) * 0.1) calc(var(--size) * 0.1) calc(var(--size) * 0.3) rgba(0,0,0,0.5), inset 0 0 calc(var(--size) * 0.2) rgb(0, 92, 123), inset 0 0 calc(var(--size) * 0.1) rgb(0, 32, 43);
}

#lessons {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto auto auto auto;
    grid-auto-flow: column;
    column-gap: calc(var(--size) * 0.25);
}

.lesson input {
    width: calc(var(--size) * 0.4);
    height: calc(var(--size) * 0.4);
    border: solid 1px #000;
    vertical-align: middle;
}

.lessonText {
    cursor: default;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    line-height: calc(var(--size) * 0.3);
}

.popup {
    position: absolute;
    color: #303030;
    top: calc(var(--size) * -0.25);
    left: 50%;
    transform: translate(-50%,-100%);
    background-color: #fff;
    border: solid 1px #000;
    padding: calc(var(--size) * 0.19);
    border-radius: calc(var(--size) * 0.1);
    display: inline-block;
    white-space: nowrap;
    box-sizing: border-box;
}

.popup:after {
    content: "";
    position: absolute;
    width: calc(var(--size) * 0.15);
    height: calc(var(--size) * 0.25);
    border-bottom: solid 1px #000;
    border-left: solid 1px #000;
    left: 50%;
    bottom: -1px;
    transform: translate(-50%,calc(100% - 1px));
    background-color: #fff;
    border-bottom-right-radius: 100%;
    box-sizing: border-box;
    z-index: 3;
}

#middle {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#bottom {
    display: flex;
    justify-content: space-between;
    width: 96vw;
}


#scoreList {
    display: inline-grid;
    grid-template-columns: auto auto;
    column-gap: calc(var(--size) * 0.5);
    grid-auto-flow: column;
    grid-template-rows: auto auto auto auto auto;
}

.scoreLine {
    display: flex;
    justify-content: space-between;
    padding: calc(var(--size) * 0.05);
    height: calc(var(--size) * 0.3);
}

.scoreLine:last-child {
    border-top: solid 1px;
}

#scoreList .scoreText {
    position: relative;
}

.scoreValue {
    text-align: right;
    margin-left: calc(var(--size) * 0.5);
}

#specialTypes {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: calc(var(--size) * 0.5);
}

#drawColours {
    display: inline-flex;
    flex-direction: column;
    vertical-align: top;
    justify-content: space-between;
    height: calc(var(--size) * 8.3);
    visibility: hidden;
}

.catColour {
    width: calc(var(--size) * 1.1);
    height: calc(var(--size) * 1.1);
    cursor: pointer;
    border: solid 3px #a0a0a0;
    box-sizing: border-box;
    border-radius: calc(var(--size) * 0.1);
    box-shadow: 1px 1px 2px currentColor;
}

.catColour_red {
    --catColour: #94000A;
    border-color: var(--catColour);
    background-image:url(img/cat_red.svg);
    background-color: #ff8a92;
}

.catColour_blue {
    --catColour: #00297b;
    border-color: var(--catColour);
    background-image:url(img/cat_blue.svg);
    background-color: #6e9eff;
}

.catColour_green {
    --catColour: #057b00;
    border-color: var(--catColour);
    background-image:url(img/cat_green.svg);
    background-color: #5eff58;
}

.catColour_yellow {
    --catColour: #9aa200;
    border-color: var(--catColour);
    background-image:url(img/cat_yellow.svg);
    background-color: #edf296;
}

.catColour_purple {
    --catColour: #6800a2;
    border-color: var(--catColour);
    background-image:url(img/cat_purple.svg);
    background-color: #c55dff;
}

.catColour_rare {
    --catColour: #e3d015;
    border-color: var(--catColour);
    background-image:url(img/rareTreasure.svg);
    background-color: #fffbd6;
}

.catColour_common {
    --catColour: #e39015;
    border-color: var(--catColour);
    background-image:url(img/commonTreasure.svg);
    background-color: #fee4be;
}

.catColour_oshax {
    border-color: hsla(0, 0%, 0%, 0.75);
    border-width: 2px !important;
    /* background-image: url(img/cat_red.svg); */
    background: linear-gradient(to bottom, #94000A , #9aa200, #057b00, #00297b, #6800a2);
    filter: brightness(1.75);
}

.catColour.selected {
    border-radius: calc(var(--size) * 0.1);
    background-color: #000;
    box-sizing: border-box;
}

#controlButtons {
    display: inline-block;
}

#controlButtons button, button#deletePiece, button#resetTurn {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    visibility:hidden;
    width: calc(var(--size) * 1.75);
    margin-bottom: calc(var(--size) * 0.5);
    height: calc(var(--size) * 1);
    margin-left: calc(var(--size) * 0.5);
    cursor: pointer;
}

button#deletePiece, button#resetTurn {
    position: absolute;
    bottom: calc(var(--size) * 0.6);
    right: calc(var(--size) * 0.3);
    visibility:hidden;
}

.boardPiece {
    width: calc(var(--size) - 2px);
    height: calc(var(--size) - 2px);
    border-style: solid;
    border-width: calc(var(--size) * 0.1);
    box-sizing: border-box;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index:5;
}

.deleteMode {
    position: absolute;
    top: calc(var(--size) * 0.5);
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10;
    color: #a00;
    font-size: calc(var(--size) * 0.8);
    text-shadow: 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 2px #000;
    pointer-events: none;
    white-space: nowrap;
    font-weight: bold;
    opacity: 0.9;
}

.pieceDeletable {
    filter: saturate(1.3) brightness(1.1) contrast(1.3);
    background-color: #000;
}

.boardPiece.noBorder_0 {
    border-top-width: 0;
}

.boardPiece.noBorder_1 {
    border-right-width: 0;
}

.boardPiece.noBorder_2 {
    border-bottom-width: 0;
}

.boardPiece.noBorder_3 {
    border-left-width: 0;
}

.currentCat {
    opacity: 0.6;
}

#families {
    display: inline-block;
    vertical-align: bottom;
    margin-left: calc(var(--size) * 1);
}

#familyTable {
    padding-left: calc(var(--size) * 0.1);
    display: grid;
    grid-template-columns: auto auto auto;
}

.lessonPassed {
    color: #0a0;
}

.lessonFailed {
    color: #a00;
}

.icon {
    width: calc(var(--size) * 0.25);
    height: calc(var(--size) * 0.25);
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.icon.captain {
    background-image: url(img/parrot.svg), url(img/parrot.svg);    
}

.icon.bed {
    background-image: url(img/moon.svg), url(img/moon.svg);
}

.icon.store {
   background-image: url(img/wheat.svg), url(img/wheat.svg);
}

.icon.dining {
    background-image: url(img/apple.svg), url(img/apple.svg);
}

#history {
    min-width: calc(var(--size) * 4);
}

#history .header {
    width: calc(var(--size) * 3);
}

#historyContainer {
    height: calc(var(--size) * 2.3);
    width: calc(var(--size) * 3.2);
    padding-right: calc(var(--size) * 0.1);
    overflow-y: auto;    
}

#historyContainer::-webkit-scrollbar, #multiPlayerResults::-webkit-scrollbar {
    width: calc(var(--size) * 0.15);
    height: calc(var(--size) * 0.15);
}
 
#historyContainer::-webkit-scrollbar-track, #multiPlayerResults::-webkit-scrollbar-track {
    background-color: rgba(48, 48, 48, 0.14);
}
 
#historyContainer::-webkit-scrollbar-thumb, #multiPlayerResults::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 calc(var(--size) * 0.15) #e8e8e8;
    background-color: #303030;
}

.historyItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: calc(var(--size) * 0.25);
    padding: calc(var(--size) * 0.1);
    padding-bottom: calc(var(--size) * 0.2);
    border: solid 1px #000;
    border-radius: calc(var(--size) * 0.1);
    background-color: rgba(0, 0, 0, 0.05);
    width: calc(var(--size) * 2.5);
    margin-left: auto;
    margin-right: auto;
}

.historyShape {
    position: relative;
    --shapeSize: calc(var(--size) * 0.25);
    min-width: calc(var(--shapeSize) * var(--widthX));
    min-height: calc(var(--shapeSize) * var(--heightY));
    margin-top: calc(var(--size) * 0.2);
}

.shapePart {
    position: absolute;
    width: var(--shapeSize);
    height: var(--shapeSize);
    box-sizing: border-box;
    border-style: solid;
    border-width: calc(var(--shapeSize) * 0.25);
    left: calc(var(--shapeX) * calc(var(--size) * 0.25));
    top: calc(var(--shapeY) * calc(var(--size) * 0.25));
}

button#newRound {
    position: absolute;
    top: calc(var(--size) * 0.1);
    right: calc(var(--size) * 0.1);
    font-size: calc(var(--size) * 0.15);
    height: calc(var(--size) * 0.7);
    cursor: pointer;
}

button#newRound.roundReady {
    box-shadow: inset 0px 1px 0px 0px #d9fbbe;
    background: linear-gradient(to bottom, #b8e356 5%, #a5cc52 100%);
    background-color: #b8e356;
    border-radius: calc(var(--size) * 0.1);
    border: 1px solid #83c41a;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px 1px #5a7d23;
}

button#newRound.roundReady:hover {
	background:linear-gradient(to bottom, #a5cc52 5%, #b8e356 100%);
	background-color:#a5cc52;
}

.fullGame button#newRound {
    position: absolute;
    bottom: calc(var(--size) * 0.6);
    right: calc(var(--size) * 0.3);
    width: calc(var(--size) * 1.75);
    margin-bottom: calc(var(--size) * 0.5);
    height: calc(var(--size) * 1);
    top: unset;
    font-size: calc(var(--size) * 0.19);
}

.fullGame button#deletePiece {
    bottom: calc(var(--size) * 2);
}

.historyItem.historyRound {
    background: unset;
    border: 0;
}

.catLink::selection, .catLink a::selection  {
    background: #038fff;
    color:#fff;
}
.catLink::selection, .catLink a::-moz-selection {
    background: #038fff;
    color:#fff;
}

.catLinkContainer {
    display:flex;
}

input.catLink {
    border: solid 1px #a0a0a0;
    padding: calc(var(--size) * 0.1);
    border-right: none;
}

#copyButton {
    cursor:pointer;
}

#copyButton img {
    height: calc(var(--size) * 0.4);
}

button.newGame {
    font-size: calc(var(--size) * 0.3);
    width: 100%;
    margin-top: calc(var(--size) * 0.25);
    height: calc(var(--size) * 1);
    cursor:pointer;
    color: #0e77ca;
}

.historyItem.historyLesson, .historyItem.historySpecial {
    background: #638fb2;
    font-size: calc(var(--size) * 0.17);
    width: auto;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    padding-bottom: calc(var(--size) * 0.1);
    border-radius: calc(var(--size) * 0.06);
    filter: unset;
    position: relative;
    margin-top: calc(var(--size) * 0.4);
    font-family: sans-serif;
    text-transform: initial;
}

.historyItem.historyLesson:after, .historyItem.historySpecial:after {
    transform: translate(0,-100%);
    content: "Lesson";
    position: absolute;
    top: 0;
    color: #f9f9f9;
    background: #638fb2;
    padding: 0 calc(var(--size) * 0.1);
    height: calc(var(--size) * 0.22);
    border: solid 1px #000;
    border-bottom: 0;
    border-radius: calc(var(--size) * 0.06) calc(var(--size) * 0.06) 0 0;
    z-index: 2;
}

.historyItem.historySpecial {
    background: #9b3e80;
}

.historyItem.historySpecial:after {
    content: "Special";
    background: #9b3e80;
}

.historyText {
    width: calc(var(--size) * 2.5);
    text-align: center;
}

.historyText .icon {
    filter: invert(1);
    width: calc(var(--size) * 0.2);
    height: calc(var(--size) * 0.2);
}

#history.popout {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-100%,-50%);
    z-index: 100;
    height: 90vh;
    padding: calc(var(--size) * 0.3) calc(var(--size) * 0.5);
    box-shadow: calc(var(--size) * 0.2) calc(var(--size) * 0.2) calc(var(--size) * 0.6) #000;
}

.popout #historyContainer {
    height: 80vh;
    width: calc(var(--size) * 5);
}

.popout .historyText, .popout .historyLesson:after {
    font-size: calc(var(--size) * 0.3);
}

button.popoutButton {
    background-size: contain;
    position: absolute;
    top: calc(var(--size) * 0.2);
    left: calc(var(--size) * 0.2);
    height: calc(var(--size) * 0.5);
    width: calc(var(--size) * 0.5);
    cursor: pointer;
    padding: 0;
    outline:none;
}

button.popoutButton img {
    width: calc(var(--size) * 0.25);
    height: calc(var(--size) * 0.25);
}

.readOnly #catControl {
    height: calc(var(--size) * 4);
    text-align: center;
}

.readOnly .scoreLine:last-child .scoreValue {
    font-size: calc(var(--size) * 0.5);
}

#specials .lessonText {
    max-width: calc(var(--size) * 6);
}

#top .lessonText {
    width: calc(var(--size) * 8.7);
}

.tile.filledTile.map:after {
    z-index: 10;
    width: calc(var(--size) * 0.5);
    height: calc(var(--size) * 0.5);
}

button.collapseButton {
    background-size: contain;
    position: absolute;
    top: calc(var(--size) * 0.2);
    left: calc(var(--size) * 0.2);
    height: calc(var(--size) * 0.5);
    width: calc(var(--size) * 0.5);
    cursor: pointer;
    padding: 0;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    outline: none;
    font-weight: normal;
    font-size: calc(var(--size) * 0.3);
}

.collapse {
    height: calc(var(--size) * 1) !important;
    overflow: hidden;    
}

.subheader {
    text-align: center;
    color: #909090;
    font-size: calc(var(--size) * 0.17);
    margin-bottom: calc(var(--size) * 0.2);
}

#catControl, #island {
    height: calc(var(--size) * 9);
    box-sizing: border-box;
}

#top {
    min-width: 96vw;
}

#middle {
    justify-content: space-around;
}

#catControl {
    display: flex;
}

#island {
    --widthX: 5;
    --heightY: 5;
    --shapeSize: calc(var(--size) * 0.25);
}

#island.popout {
    position: absolute;
    display: block;
    --size: calc(var(--gameSize) * 1.8);
    top: 50%;
    right: 2vw;
    z-index: 2;
    transform: translate(0,-50%);
}

#islandContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#island .header {
    margin-bottom: unset;
    font-size: calc(var(--size) * 0.25);
}

.islandGrid {
    display: inline-flex;
    flex-direction: column;
    margin-top: calc(var(--size) * 0.2);
}

.islandRow {
    display: flex;
    justify-content: space-between;
    width: calc(var(--shapeSize) * 16);
    margin-bottom: calc(var(--shapeSize) * 0.5);
    align-items: center;
    cursor: pointer;
    padding: 2px;
    border: solid 1px transparent;
    box-sizing: border-box;
}

.islandRow.notSelectedRow {
    opacity: 0.5;
}

#island:not(.singleSelect) .islandRow:hover {
    background-color: rgba(255, 227, 157, 0.5);
    border: solid 1px #c79212;
    filter: brightness(1.2);
    opacity: 1;
}

.singleSelectedItem:after,
#island.singleSelect .islandGrid .islandTile:hover:after,
#island.singleSelect .islandGrid .card:not(.card_oshax):hover:after {
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:100%;
    height:100%;
    transform: translate(-50%,-50%);
    background-color: rgba(255, 227, 157, 0.5);
    border: solid 1px #c79212;
    filter: brightness(1.2);
    opacity: 1;
    padding: calc(var(--shapeSize) * 0.5);
    z-index: -1;
}

#roundTicker {
    right: calc(var(--size) * 0.5);
    position: absolute;
    font-size: calc(var(--size) * 0.3);
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Aclonica', sans-serif;
}

#roundTicker #roundNumber {
    font-size: calc(var(--size) * 0.5);
}

.tileDragger .singleSelectedItem:after {
    content:unset;
}

.singleUnSelectedItem {
    opacity:0.5;
}

.islandRow.selectedRow {
    background-color: rgba(255, 227, 157, 0.5);
    border: solid 1px #c79212;
    opacity:1;
}

.islandTile {
    position: relative;
    width: calc(var(--shapeSize) * var(--widthX));
    height: calc(var(--shapeSize) * var(--heightY));
    z-index:2;
}

.islandCommon {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: calc(var(--shapeSize) * 1);
    align-items: center;
}

.islandRare {
    display: flex;
    flex-flow: wrap;
    justify-content: space-evenly;
    align-items: center;
    width: calc(var(--shapeSize) * 16);
}

.islandTile.dragDisabled {
    opacity:0.5;
}

.islandRare .islandTile {
    margin: calc(var(--shapeSize) * 0.2);
}

.card {
    width: calc(var(--shapeSize) * var(--widthX));
    min-height: calc(var(--shapeSize) * var(--heightY));
    border: solid calc(var(--shapeSize) * 0.25) var(--cardColour);
    border-radius: calc(var(--shapeSize) * 0.25);
    box-sizing: border-box;
    font-size: calc(var(--shapeSize) * 0.65);
    text-align: center;
    color: #000000;
    font-family: sans-serif;
    text-shadow: 1px 1px 1px #fff;
    text-transform: initial;
    padding-top: calc(var(--shapeSize) * 0.25);
    position: relative;
    z-index:2;
}

.card_treasure {
    background-color: #fffbd6;
    --cardColour: #e3d015;
}

.card_lesson {
    background-color: #6e9eff;
    --cardColour: #00297b;    
}

.card_action {
    background-color: #c55dff;
    --cardColour: #6800a2;
}

.card .icon {
    width: calc(var(--size) * 0.2);
    height: calc(var(--size) * 0.2);
}

.singleSelectedItem> .singleSelectedItem:after {
    content: unset;
}

.popout .card.card_lesson[lesson=lessonL1]:after, .popout .card.card_lesson[lesson=lessonL11]:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/cat_green.svg);
    filter: sepia(1) brightness(10);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.popout .card.card_lesson[lesson=lessonL2]:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/cat_red.svg);
    filter: sepia(1) brightness(10);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.popout .card.card_lesson[lesson=lessonL5]:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/cat_yellow.svg);
    filter: sepia(1) brightness(10);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.popout .card.card_lesson[lesson=lessonL8]:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/cat_blue.svg);
    filter: sepia(1) brightness(10);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.popout .card.card_lesson[lesson=lessonL10]:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/cat_purple.svg);
    filter: sepia(1) brightness(10);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.popout .card.card_lesson[lesson=lessonL12]:after, .popout .card.card_lesson[lesson=lessonL11]:after, .popout .card.card_lesson[lesson=lessonL7]:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/rat.svg);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.popout .card.card_lesson[lesson=lessonL3]:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/commonTreasure.svg);
    filter: sepia(1) brightness(10);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.popout .card.card_lesson[lesson=lessonL6]:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/rareTreasure.svg);
    filter: sepia(1) brightness(10);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.popout .card.card_treasure:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 60%;
    background-repeat: no-repeat;
    background-image: url(img/rareTreasure.svg), url(img/commonTreasure.svg);
    background-position: top, bottom;
    top: 0;
    left: 0;
    opacity: 0.2;
}

.popout .card.card_action:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url(img/cat_purple.svg);
    left: 0;
    top: 0;
    background-position: center;
    opacity: 0.2;
}

.tileDragger {
    --shapeSize: var(--size);
    opacity:0.75;
    z-index: 10;
}

.tileDragger .shapePart {
    width: calc(var(--size) - 2px);
    height: calc(var(--size) - 2px);
    border-style: solid;
    border-width: calc(var(--size) * 0.1);
    box-sizing: border-box;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 10;
    left: calc(var(--shapeX) * var(--size));
    top: calc(var(--shapeY) * var(--size));
}

.dropHere {
    filter:brightness(2);
}

.notAllowed {
    opacity: 0.5;
}

.floatPiece {
    position: relative;
    top: calc(var(--size) * var(--tileY));
    left: calc(var(--size) * var(--tileX));
    width: calc(var(--size) * var(--widthX));
    height: calc(var(--size) * var(--heightY));
}

.floatPiece .boardPiece {
    position: absolute;
    top: calc(var(--size) * var(--tileY));
    left: calc(var(--size) * var(--tileX));
    width: var(--size);
    height: var(--size);
}

.floatPiece .pivot {
    position: absolute;
    top: calc(var(--size) * var(--tileY));
    left: calc(var(--size) * var(--tileX));
    width: var(--size);
    height: var(--size);
    z-index:10;
}

.pivot:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 100%;
    width: 15%;
    height: 15%;
    background: #fff;
    transform: translate(-50%,-50%);
    border: solid 1px #000;
    box-shadow: 3px 4px 3px #000;
    background: radial-gradient(ellipse at center, rgba(255,255,255,1) 0%,rgb(132, 132, 132) 100%);
}

#toastContainer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%,0);
    width: calc(var(--size) * 8);
    max-height: 99vh;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    box-sizing: border-box;
}

#toastContainer .toast {
    width: calc(var(--size) * 8);
    margin-top:calc(var(--size) * 0.2);
    padding: calc(var(--size) * 0.25);
    background-color: #6e9eff;
    color: #00297b;
    border-radius: calc(var(--size) * 0.1);
    box-sizing: border-box;
    cursor:pointer;
    text-align:center;
    border:solid 1px #6e9eff;
}

#toastContainer .toast.errorToast {
    background-color: #ff8a92;
    color:#94000A;
    border:solid 1px #94000A;
}

#lessons input[type=checkbox]:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
/*    background-image: url(img/white.jpg);
    background-position: left;*/
    font-weight: bold;
    font-size: calc(var(--size) * 0.3);
    line-height:calc(var(--size) * 0.3);
}

#lessons input[type=checkbox]:checked:after {
    content:"✔";
}

#lessons .lessonFailed input[type=checkbox]:after {
    color: #a00;
}

#lessons .lessonPassed input[type=checkbox]:after {
    color: #0a0;
}


#multiPlayerResults {
    display: none;
    position: absolute;
    top: calc(var(--size) * 0.5);
    left: 50%;
    transform: translate(-50%,0);
    width: 96vw;
    height: calc(var(--size) * 15);
    z-index: 100;
    overflow-y: auto;
}

.boatFrameContainer {
    margin: calc(var(--size) * 0.15);
    padding: calc(var(--size) * 0.25);
    border: solid 1px #000;
    border-radius: calc(var(--size) * 0.25);
    background-color: rgba(214, 214, 214, 0.25);
    text-align: center;
    font-size: calc(var(--size) * 0.5);
}

iframe.boatFrame {
    display: block;
    width: 100%;
    height: calc(var(--size) * 8);
}

#multiPlayerResultsHolder {
    display: grid;
    grid-template-columns: 47vw 47vw;
}

iframe.boatFrame {
    display: block;
    width: calc(var(--size) * 15);
    height: calc(var(--size) * 10);
    border-radius: calc(var(--size) * 0.25);
    border: solid 1px #00a;
    box-shadow: calc(var(--size) * 0.06) calc(var(--size) * 0.06) calc(var(--size) * 0.15) #000;
}

.multiWaitMessage {
    text-align: center;
    font-size: calc(var(--size) * 0.5);
    padding: calc(var(--size) * 0.5);
}

.multiWaitMessage img {
    width: calc(var(--size) * 1);
    margin-top: calc(var(--size) * 0.5);
    animation: rotate 20s linear infinite;
}

#multiPlayerResults .collapseButton {
    position: sticky;
    top: calc(var(--size) * 0);
}

/*  -----------------  screenshots: replace SVG by PNG files -----------------  */

#screenshotButton {
    position: absolute;
    bottom: calc(var(--size) * 0.3);
    right: calc(var(--size) * 0.3);
    width: calc(var(--size) * 1.75);
}

.screenshot #catControl {
    display:none;
}

.screenshot #middle {
    justify-content:center;
}

.screenshot #game {
    background-image: url(img/water.jpg);
}

.screenshot .tile {
    background-size: 40%;
}

.screenshot .tile.captain, .screenshot .tile.captain2 {
    background-image: url(img/parrot.png);
}

.screenshot .tile.dining {
    background-image: url(img/apple.png);
}

.screenshot .tile.bed, .screenshot .tile.bed2 {
    background-image: url(img/moon.png);
}

.screenshot .tile.store {
    background-image:  url(img/wheat.png);
}

.screenshot .tile.rat:after {
    background-image: url(img/rat.png);
}

.screenshot .tile.map_yellow:after {
    background-image: url(img/map_yellow.png);
}

.screenshot .tile.map_green:after {
    background-image: url(img/map_green.png);
}

.screenshot .tile.map_blue:after {
    background-image: url(img/map_blue.png);
}

.screenshot .tile.map_red:after {
    background-image: url(img/map_red.png);
}

.screenshot .tile.map_purple:after {
    background-image: url(img/map_purple.png);
}

.screenshot .tile.deck {
    background-image:none;
}

.screenshot .catColour_green {
    background-image:url(img/cat_green.png);
}

.screenshot .catColour_blue {
    background-image:url(img/cat_blue.png);
}

.screenshot .catColour_red {
    background-image:url(img/cat_red.png);
}

.screenshot .catColour_yellow {
    background-image:url(img/cat_yellow.png);
}

.screenshot .catColour_purple {
    background-image:url(img/cat_purple.png);
}

.screenshot .catColour_rare {
    background-image:url(img/rareTreasure.png);
}

.screenshot .catColour_common {
    background-image:url(img/commonTreasure.png);
}

.screenshot #popout {
    display:none;
}

.screenshot #others, .screenshot #multiPlayerResults {
    display:none !important;
}

/*  ---------------------------- */

#others {
    position: absolute;
    top: 5px;
    right: 50px;
    font-size: 80%;
    font-family: Verdana, sans-serif;
    z-index: 10000;
    text-align: right;
}

#others.othersLeft {
    right:unset;
    left:1vw;
}

#others a {
    color: #000;
    text-shadow: 1px 0 1px #fff;
}

#others a:hover {
    color: #fff;
    text-shadow: 1px 0 1px #000;
}


#others.catsHomeLinks {
    top: 4vh;
    right: 1vh;
}

/*  ---------------------------- */

.serverOnly #island {
    --widthX: 5;
    --heightY: 5;
    --shapeSize: calc(var(--size) * 0.75);
    position: absolute;
    top: 0;
    height: 100vh;
}

.serverOnly .shapePart {
    left: calc(var(--shapeX) * calc(var(--size) * 0.75));
    top: calc(var(--shapeY) * calc(var(--size) * 0.75));
}

.serverOnly .islandRow {
    pointer-events: none;
    border-bottom: solid 1px #000;
    padding-bottom: calc(var(--shapeSize) * 0.25);
    margin-bottom: calc(var(--shapeSize) * 0.25);
}

.serverOnly #islandContainer {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    padding: 0 calc(var(--shapeSize) * 1);
}

.serverOnly .islandCommon {
    flex-direction: column;
    opacity:1;
    width: auto;
    padding: 0 calc(var(--shapeSize) * 1);
}

.serverOnly .islandRare {
    flex-direction: column;
    opacity:1;
    width: auto;
    padding: 0 calc(var(--shapeSize) * 1);
}

.serverOnly .shapePart {
    border-width: 1px;
}

.serverOnly .card .icon {
    width: calc(var(--size) * 0.5);
    height: calc(var(--size) * 0.5);
}

.serverOnly .card {
    font-size: calc(var(--shapeSize) * 0.5);
}

.serverOnly #roundCount {
    position: absolute;
    top: calc(var(--size) * 1);
    right: calc(var(--size) * 0.5);
    font-size: calc(var(--size) * 2);
}

.serverOnly #newRound {
    font-size: calc(var(--size) * 0.2);
    height: calc(var(--size) * 1.2);
    width: calc(var(--size) * 2.5);
}

/*  -------------------------------  */

#intro {

}

#intro #midCircle, #multiplayerSetup, #highscores {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 85vh;
    height: 85vh;
}

#intro #midCircle:before, #multiplayerSetup:before, #highscores:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 85vh;
    height: 85vh;
    border-radius: 100%;
    background: #fff;
    box-shadow: inset 0 0 10vh #ffbc39, inset 0 0 9vh #fff, inset 0 0 8vh #ffbc39, inset 0 0 7vh #fff, inset 0 0 6vh #ffbc39, inset 0 0 5vh #fff, inset 0 0 4vh #ffbc39, inset 0 0 3vh #fff, inset 0 0 2vh #fff, inset 0 0 1vh #ffbc39, 0 0 1vh 1px #fff9ed, 0 0 5vh #fff;
    background-image: radial-gradient(circle at 18.17% 12.07%, rgba(0, 0, 0, 0.94) 0, rgba(79, 145, 189, 0.5) 50%, rgba(255, 255, 255, 0.5) 100%), url(img/backShip.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: invert(1) sepia(0) brightness(1.25) opacity(0.8);
    background-blend-mode: multiply;
    animation: waves 5s linear infinite;
}

@keyframes waves {
  0%   {background-position-y: 0px;}
  25%  {background-position-y: 8px;}
  75%  {background-position-y: -8px;}
  100% {background-position-y: 0px;}
}   

@keyframes sea {
  0%   {background-position-x: 0%;}
  100% {background-position-x: -100%;}
}   

@keyframes rotate {
  0%   {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}   

@keyframes boat {
  0% {transform: rotate(0deg); translate(0,0px)}
  25%   {transform: rotate(-10deg) translate(0,-2px)}
  50%   {transform: rotate(0deg) translate(0,-2px)}
  75%   {transform: rotate(10deg) translate(0,0px)}
  100% {transform: rotate(0deg) translate(0,0px)}
}   

#intro #options {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    padding-top: 17vh;
    padding-left: 5vh;
}

#intro .option {
    padding-left: 8vh;
    position: relative;
    height: 7vh;
    line-height: 7vh;
    display: flex;
    align-items: flex-end;
}

#intro .option:before {
    content: "";
    position: absolute;
    left: 0;
    top: 1vh;
    width: 6vh;
    height: 6vh;
    filter: grayscale(1) brightness(100) invert(1) drop-shadow(2px 2px 1px #cecece);
}

#intro .option1.option:before {
    background-image: url(img/cat_purple.svg);
}

#intro .option2.option:before {
    background-image: url(img/cat_yellow.svg);
}

#intro .option5.option:before {
    background-image: url(img/cat_green.svg);
}

#intro .option4.option:before {
    background-image: url(img/cat_red.svg);
}

#intro .option3.option:before {
    background-image: url(img/cat_blue.svg);
}

#intro .option a {
    color: #000;
    font-family: 'Bungee', cursive;
    text-decoration: none;
    font-size: 4vh;
    text-shadow: 2px 2px 1px #cecece;
    white-space: nowrap;
    transition: all 0.25s;
    line-height: 4vh;
    display: inline-block;
}

#intro .option.option1:hover {
    filter:drop-shadow(0 0 1px #ff00d4);
}

#intro .option.option2:hover {
    filter:drop-shadow(0 0 1px #9dff00);
}

#intro .option.option5:hover {
    filter:drop-shadow(0 0 1px #6eff00);
}

#intro .option.option4:hover {
    filter:drop-shadow(0 0 1px #ff6657);
}

#intro .option.option3:hover {
    filter:drop-shadow(0 0 1px #00f1ff);
}

#intro .option:hover a {
    text-shadow: unset;
}

#intro .option.option1:hover a {
    color: #6800a2;
}

#intro .option.option2:hover a {
    color: #9aa200;
}

#intro .option.option5:hover a {
    color: #057b00;
}

#intro .option.option4:hover a {
    color: #94000a;
}

#intro .option.option3:hover a {
    color: #00297b;
}

#intro .option.option1:hover:before {
    filter: drop-shadow(1px 1px 1px #ff00d4);
}

#intro .option.option2:hover:before {
    filter: drop-shadow(1px 1px 1px #9dff00);
}

#intro .option.option5:hover:before {
    filter: drop-shadow(1px 1px 1px #6eff00);
}

#intro .option.option4:hover:before {
    filter: drop-shadow(1px 1px 1px #ff6657);
}

#intro .option.option3:hover:before {
    filter: drop-shadow(1px 1px 1px #00f1ff);
}

#intro h1:before {
    content: "";
    position: absolute;
    top: 2vh;
    left: 10vh;
    width: 7vh;
    height: 7vh;
    transform: translate(0,-100%);
    background-image: url(img/cat_blue.svg);
    background-repeat: no-repeat;
    background-size: contain;
    color: #1a47a0;
    filter: contrast(2) brightness(10) invert(0);
    display: inline-block;
}

#intro path {
  fill: transparent;
}

#intro text {
    fill: #848484;
    font-size: 4vh;
}

#intro h1 {
    font-family: 'Bungee', cursive;
    font-size: 15vh;
    margin: 0;
    line-height: 15vh;
    white-space: nowrap;
    background: url(img/rocks.jpg) no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-repeat: repeat;
    background-size: cover;
    filter: invert(0) brightness(0.4) grayscale(0.5) drop-shadow(0.3vh 0.3vh 0.1vh #a0a0a0) drop-shadow(0.3vh 0.3vh 0.1vh #303030) drop-shadow(0.3vh 0.3vh 0.1vh #1c1b24);
    position: relative;
    z-index:5;
    pointer-events: none;
}

#intro h2 {
    font-family: 'Bungee', cursive;
    font-size: 4vh;
    margin: 0;
    z-index: 1;
    pointer-events: none;
}

#playerName {
    color: #fff;
    position: absolute;
    right: 0;
    top: 0;
    font-family: 'Bungee', cursive;
    font-size: 2vh;   
    padding: 0 1vh;
    cursor: pointer;
}

/* -------------------------------------- */

#intro #multiplayerSetup {
    display:none;
    justify-content: center;
    position: absolute;
    width: 85vh;
    height: 85vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#intro #multiplayerSetup:before {
    filter: invert(1) sepia(0) brightness(1.2) opacity(0.8) hue-rotate(126deg);
}

#intro #multiOptions {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 65%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#intro #multiOptions .optionMulti  {
    cursor:pointer;
}

#intro #multiOptions .optionMulti:hover  {
    color:#94000a;
}

#intro #multiOptions .option {
    padding: 0;
    color: #000;
    font-family: 'Bungee', cursive;
    text-decoration: none;
    font-size: 4vh;
    text-shadow: 2px 2px 1px #cecece;
    white-space: nowrap;
    transition: all 0.25s;
    line-height: 4vh;
    display: inline-block;
}

#intro #multiplayerLinkContainer {
    display:none;
    font-size: 2vh;
    font-family: 'Bungee', cursive;
    text-align: center;
    line-height: 2.5vh;
}

#intro #multiplayerLink {
    display: flex;
    margin-bottom: 2vh;
}

#intro #multiplayerLink input {
    width: 100%;
    font-family: 'Bungee', cursive;
    background: rgba(255, 255, 255, 0.75);
    color: #000;
    outline:none;
    border-color: #eebfce;
}

#intro #multiplayerLink input::selection  {
    background: #f7043e;
    color:#fff;
}

#intro button#copyMultiLink {
    width: 3vw;
    cursor:pointer;
}

button#goMultiLink {
    cursor:pointer;
    margin-left: 2px;
}

#intro #copyMultiLink img {
    height: 2.5vh;
    vertical-align: middle;
}

#intro #multiOptions #recentGames {
    position: absolute;
    background: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 50vh;
    padding: 1vh;
    border-radius: 1vh;
    top: -20vh;
    border: solid 1px #ff003c;
    box-shadow: 1vh 1vh 2vh #000;
    color: #000;
    font-family: 'Orbitron', monospace;
    font-weight:bold;
    text-decoration: none;
    font-size: 4vh;
    text-shadow: 2px 2px 1px #cecece;
    white-space: nowrap;
    line-height: 4vh;
}

#intro .recentGamesHeader {
    text-align: center;
    width: 100%;
    margin-bottom: 2vh;
}

#intro .recentGame {
    display: flex;
    width: 75vh;
    justify-content: space-between;
    font-size: 3vh;
    cursor:pointer;
}

#intro .recentGame:hover {
    color:#c51741;    
}

#intro .recentGamesClose {
    position: absolute;
    top: -2vh;
    right: -1.5vh;
    border: solid 2px #ff003c;
    background-color: #fff;
    border-radius: 100%;
    padding: 0.5vh 1vh;
    cursor: pointer;
    transition: all 0.5;
    cursor:pointer;
}

#intro .recentGamesClose:hover {
    background: radial-gradient(ellipse at center, rgba(255,0,60,1) 0%,rgb(2, 2, 2) 100%);
    color: #fff;
    border: solid 2px #000;
    text-shadow: 2px 2px 1px #2b2b2b;
}

#intro #highscores {
    display:none;
}

#intro .recentGamePlayer {
    width: 50%;
}

#intro .recentGameId {
    width: 25vh;
}

#intro .recentGameScore {
    width: 6vh;
    text-align: right;
}

#intro #highscores:before {
    filter: invert(1) sepia(0) brightness(1.2) opacity(0.8) hue-rotate(216deg);
    z-index:-1;
}

#intro .highscorer {
    display: flex;
    width: 80%;
    justify-content: space-around;
}

#intro button.highscorerView {
    background-image: url(img/place.svg);
    background-size: 3vh;
    background-position: center;
    height: 4vh;
    width: 4vh;
    background-repeat: no-repeat;
}

#intro #highscoresContainer {
    display: grid;
    grid-template-columns: auto auto auto auto;
    position: absolute;
    width: 50vh;
    top: 60%;
    left: 50%;
    transform: translate(-50%,-50%);
    overflow: auto;
    height: 45vh;
    font-family: 'Bungee', cursive;
    font-size: 3vh;
    padding: 1.5vh;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1vh;
    box-shadow: 1vh 1vh 2vh #000;
    border: solid 1px #0a0;
}

#intro #highscoresContainer::-webkit-scrollbar {
    width: 1vh;
    height: 1vh;
}
 
#intro #highscoresContainer::-webkit-scrollbar-track {
    background-color: rgba(48, 48, 48, 0.14);
}
 
#intro #highscoresContainer::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 1vh #e8e8e8;
    background-color: #303030;
}

#intro #highscoresContainer .highscorerNum {
    width: 1vh;
}

#intro .highscoresClose {
    position: absolute;
}

#intro .highscoresHeader {
    position: absolute;
    top: 22.05vh;
    left: 28vh;
    text-align: center;
    z-index: 3;
    font-family: 'Bungee', cursive;
    font-size: 4vh;
    line-height: 4vh;
    pointer-events: none;
    padding: 0.5vh;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 1vh 1vh 0 0;
    border: solid 1px #0a0;
    border-bottom: none;
}

#intro .highscoresClose {
    position: absolute;
    top: 25vh;
    left: 65vh;
    text-align: center;
    z-index: 3;
    font-family: 'Bungee', cursive;
    font-size: 4vh;
    line-height: 4vh;
    padding: 0.5vh 1vh;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 100%;
    border: solid 1px #0a0;
    cursor:pointer;
    color:#303030;
}

#intro .highscoresClose:hover {
    border: solid 1px #303030;
    color: #fff;
    background-color: #0a0;
    background: radial-gradient(ellipse at center, rgb(107, 255, 0) 0%,rgb(29, 56, 0) 99%);
}

#intro #viewBoat {
    display: none;
    position: absolute;
    z-index: 10;
    background-color:#fff;
    padding: 2vh;
    border-radius: 1vh;
    border: solid 1px #0a0;
    box-shadow:1vh 1vh 2vh #000;
    top: -5vh;
}

#intro iframe#boatViewerFrame {
    width: 40vh;
    height: 28vh;
    border-radius: 0.5vh;
    pointer-events: none;
}

#intro #viewBoatClose {
    position: absolute;
    top: -2vh;
    right: -2vh;
    text-align: center;
    z-index: 3;
    font-family: 'Bungee', cursive;
    font-size: 4vh;
    line-height: 4vh;
    padding: 0.5vh 1vh;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 100%;
    border: solid 1px #0a0;
    cursor: pointer;
    color: #303030;
}

#intro #viewBoatClose:hover {
    border: solid 1px #303030;
    color: #fff;
    background-color: #0a0;
    background: radial-gradient(ellipse at center, rgb(107, 255, 0) 0%,rgb(29, 56, 0) 99%);
}

#intro #boatViewerFrameContainer {
    cursor:pointer;
}