@media (pointer:fine) {
    .mobile {
        display: none;
    }
    .desktopBorder {
        border: 16px solid transparent;
        margin: 8px;
        padding: 1px;
        border-image: url(border.png) 16 round;
        background-color: #150f10;
        background-clip: padding-box;
        box-sizing: border-box;
        overflow: hidden;
    }
    .relWidth {
        max-width: 400px;
    }
}

@media (pointer:none), (pointer:coarse) {
    .desktop {
        display: none;
    }
    .relFlex {
        flex-flow: column;
    }
    .relWidth {
        max-width: 100%;
    }
    .mobileMargin {
        width: 80%;
        margin: auto;
    }
    input, select {
        font-size: 28px;
    }
    hr {
        border-width: 2px;
    }
}

* {
    scrollbar-color: #a80e00 #150f10;
}

::-moz-selection { /* Code for Firefox */
    color: #150f10;
    background: #f12000;
  }
  
  ::selection {
    color: #150f10;
    background: #f12000;
  }

*::-webkit-scrollbar-thumb {
    background-color: #a80e00; /* Set thumb color for Chrome and Safari */
}

*::-webkit-scrollbar-track {
    background-color: #150f10; /* Set track color for Chrome and Safari */
}

body {
    /*background-image: url(background.png);*/
    background-color: #150f10;
    margin: 0; 
}
.border {
    border: 16px solid transparent;
    /*padding: 7px;*/
    margin: 8px;
    padding: 1px;
    border-image: url(border.png) 16 round;
    background-color: #150f10;
    background-clip: padding-box;
    box-sizing: border-box;
    overflow: hidden;
}


@media (min-width: 800px) {
    .center-content {
        margin: auto;
        width: 90%;
    }
}

@media (max-width: 800px) {
    .center-content {
        margin: auto;
        width: 100%;
    }
}


header {
    /*border: 16px solid #1b392d;*/

    background-color: #150f10;
    background-clip: padding-box;
    box-sizing: border-box;
    overflow: auto;

    margin: 0;
    padding: 10px;

    position: sticky;
    top: 0;
    z-index: 2;
}

header.mobile {
    position: relative;
    z-index: 0;
}

header form {
    margin: 0 160px;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

header button {
    flex-grow: 1;
    margin: 0 20px;
}

header.mobile form {
    margin: 0;
    flex-direction: column;
}

header.mobile form button {
    flex-grow: 1;
    margin: 2px 4px;
    min-height: 40px;
    font-size: 5vw
}

a:link {
    color: #810009;
}

/* visited link */
a:visited {
    color: #690040;
}

/* mouse over link */
a:hover {
    color: #c70032;
}

/* selected link */
a:active {
    color: #4d0416;
}
@font-face {
    font-family: Alagard;
    src: url(fonts/alagard.ttf);
}
@font-face {
    font-family: PixelFont;
    src: url(fonts/pixelated.ttf);
}
p {
    color: #c6c6c6;
    margin:0;
    font-family: Alagard;
}
h1 {
    color: #a80e00;
    margin:6px;
	  font-size:36px;
    font-family: Alagard;
}
h2 {
    color: #a80e00;
    margin:0;
	  font-size:22px;
    font-family: Alagard;
}
h3 {
    color: #a80e00;
    margin:0;
	  font-size:18px;
    font-family: Alagard;
}

input[type=text] {
    background-color: #150f10;
    color:#a80e00;
    font-family: Alagard;
    border: 2px solid #a80e00;
    border-radius: 0;
}
input[type=text]:focus {
    background-color: #330600;
    outline-color:#f12000;
    outline-width: 2px;
    outline-style: solid;
}
table, th, td {
    border: 1px solid #a80e00;
    color: #a80e00;
    font-family: Alagard;
}
/*table tr:nth-child(even){background-color: #330600;}*/

.graves {
    margin: auto;
    display: table;
}
.graves img {
    padding: 0 10px
}

button {
    font-family: Alagard;
    background-color: #a80e00;
    color: #0f1514;
    border: 2px solid transparent;
    margin: 0;
    box-sizing: border-box;
}

button:hover {
    border: 2px solid white;
    color: white;
}

button:active {
    background-color: #0f1514;
    color: white;
    border: 2px solid white;
}

.small_border {
    border: 2px solid #a80e00;
    padding: 2px;
    margin: 2px;
}

hr {
    color: #a80e00;
    margin:2px;
}

/* Fishing Game */

#fishing_window {
    width: 100%;
    box-sizing: border-box;
    overflow: auto;
    display: flex;
    gap: 8px
}

#fishing_buttons {
    box-sizing: border-box;
    max-width: 200px;
    min-width: 200px;
    display: block;
    flex-grow: 1;
    /*overflow-y: auto;
    overflow-x: hidden;*/
}

#fishing_buttons button {
    margin: 4px;
    width: 100%;
    text-align: center;
}

.right_panel {
    min-width: 70%;
    position: relative;
    flex-grow: 4;
    float: right;
    display: inline-flex;
}

#fish_info_window {
    position: relative;
    display: inline-flex;
}

#fish_info_window img {
    float: right;
    object-fit: scale-down;
}
#fish_info_text {
    float: left;
    overflow-wrap: break-word;
}


#fish_encyclopedia_window {
    position: relative;
    display: inline-flex;
}


.fish_list {
    display: flex;  
    list-style: none;
    overflow-x: auto;
    height: 100px;
    padding: 0;
}

.fish_list button {
    display: inline;
    height: 80px;
    width: 80px;
}

.fish_list button img {
    width: 100%;
    height: auto;
}



.fish_list_wrap {
    display: flex;  
    flex-wrap: wrap;
    list-style: none;
    width: 100%;
}

.fish_list_wrap button {
    height: 80px;
    width: 80px;
}

.fish_list_wrap button img {
    width: 100%;
    height: auto;
}


#gold_counter_box {
    display: inline;
}

#gold_counter_box img {
    height: 32px;
    width: 32px;
    display: inline;
    vertical-align: middle;
}

#gold_counter_box p {
    display: inline;
    vertical-align: middle;
}

.gold_text {
    color: #fdc831;
}


#fish_enviornment_window {
    width: 100%;
}

#fish_enviornment_grid_container {
    width: 100%;
    visibility: inherit;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fill, 200px);
}

#fish_enviornment_grid_container>* {
    visibility: inherit;
    text-align: center;
}

#fish_enviornment_grid_container div {
    border: 2px solid #a80e00;
    height: 200px;
}

.flavour {
    font-size: 8px;
    color: #666666;
}




#galleryWindow {
    display: inline-flex;
    position: relative;
    align-items: stretch;
    width:100%;
}


#galleryList {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex-grow: 1;
    justify-content: center;
    align-content: space-between;
}

.galleryDateText {
    font-size: 9px;
    color: #666666;
}

.galleryItemBorder {
    border: 16px solid transparent;
    /*padding: 7px;*/
    margin: 0;
    padding: 0;
    border-image: url(border.png) 16 round;
    background-color: #150f10;
    background-clip: padding-box;
    box-sizing: border-box;
    overflow: auto;
}

.galleryItemBorder > p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 132px;
}

.galleryThumbnailImage {
    border: 3px solid #a80e00;
}

.galleryEntryButton {
    padding: 0;
    background-color: #150f10;
    border: 2px solid transparent;
    position:relative;
}

#galleryDisplayArea {
    visibility: collapse;

    position: fixed;
    top: 44px;
    bottom:0%;
    z-index: 1;
    /*background-color: #00000066;*/

    /** Workaround fix for Webkit black-line on retina displays **/
    background-position-y: -1px;
    bottom: -1px;
    /**/

    background: rgb(0,0,0);
    background: linear-gradient(0deg, #150f10 0%, rgba(0,0,0,0.5) 50%, #150f10 100%);
    width: 100%;
    display:flex;
}

#mobile_galleryDisplayArea {
    visibility: collapse;

    position: fixed;
    top: 0;
    z-index: 1;

    /** Workaround fix for Webkit black-line on retina displays **/
    background-position-y: -1px;
    bottom: -1px;
    /**/

    background: rgba(0,0,0,0.9);
    width: 100%;
    display:flex;
    overflow:auto;
}

#galleryDisplayHeader {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    height: 100px;
}

#mobile_galleryDisplayHeader {
    text-align: center;
    position:inherit;
    display: flex;
    justify-content: center;
    min-width: 90vw;
    margin: 40px;
}

#galleryDisplay {
    width: 85%;
    margin: auto;
    height:100%;
}

#mobile_galleryDisplay {
    width: 100%;
    margin: auto;
    height:100%;
}

#galleryImageFrame {
    box-sizing: border-box;
    height: 80%;
    margin: auto;
    padding: 12px;
}

#mobile_galleryImageFrame {
    box-sizing: border-box;
    margin: auto;
}

.galleryDisplayImage {
    max-height: 100%;
    max-width: 80vw;
    width: auto;
    /*object-fit: contain;*/
    margin: auto;
    display: block;
}

.mobile .galleryDisplayImage {
    max-height: 100%;
    max-height: 96vh;
    max-width: 95vw;
}

#copyGalleryLinkButton {
    margin: 2px;
    margin-top: 6px;
    font-size: 16px;
}

.bigTextButton {
    font-size: 50px;
}


.gallerySideButton {
    font-size: 20px;
    min-width: 160px; 
    position:absolute; 
    left:0%;
    background-color: #4d0416;
    text-align: right;
    color: #150f10;
    padding: 8px 20px 8px 8px;

    border-width: 0;
}


.gallerySideButton:hover {
    background-color: #a80e00;
    color: #150f10;
    min-width: 180px;

    border-width: 0;
}

.selectedGallerySideButton {
    font-size: 20px;
    min-width: 200px; 
    position:absolute; 
    left:0%;
    background-color: #a80e00;
    text-align: right;
    color: white;
    padding: 8px 20px 8px 8px;

    border-width: 0;
}

.selectedGallerySideButton:hover {
    background-color: #a80e00;
    color: white;
    min-width: 220px;

    border-width: 0;
}

#galleryDescriptionArea {
    visibility: collapse;
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 100px 0 0 10px;
    width: 30%;
    background: linear-gradient(90deg, #150f10 0%, transparent 100%);
}

#galleryDescriptionText {
    flex-grow: 1;
    text-wrap: wrap;
    word-wrap: break-word;
    text-shadow: #150f10 0 0 5px;
}

#mobile_galleryDescriptionText {
    flex-grow: 1;
    text-wrap: wrap;
    word-wrap: break-word;
    text-shadow: #150f10 0 0 5px;
    font-size: 40px;
    margin: 10px 20px;
}

#tagsInput {
    flex-grow: 1;
}


#galleryDisplayTaglist {
    flex-grow: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 2px;
    justify-content: left;
    align-content: space-between;
    padding-bottom: 4px;
    padding-top: 4px;
}

#mobile_galleryDisplayTaglist button {
    margin: 5px;
    font-size: 30px;
}


#externalLinksList, #mobile_extarnalLinksList {
    flex-grow: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 6px;
    justify-content: left;
    align-content: space-between;
    padding-bottom: 12px;
    padding-top: 4px;
}

#mobile_externalLinksList {
    gap: 6px;
}

#externalLinksList div {
    border: 2px solid #a80e00;
    font-family: Alagard;
    min-width: 100px;
    display: flex;
    gap: 2px;
    padding: 2px;
}

#mobile_externalLinksList div {
    border: 4px solid #a80e00;
    font-family: Alagard;
    min-width: 200px;
    display: flex;
    gap: 2px;
    padding: 2px;
    margin: 4px;
}

#mobile_externalLinksList img {
    height: 50px;
    width: 50px;
}

#mobile_externalLinksList div {
    font-size: 40px;
    display: inline-flex;
}


select {
    color: white;
    background-color: #150f10;
    border: 2px solid #a80e00;
    font-family: Alagard;
}
