@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root
{
 --site-width: 1280px;
 --color-bg: #9353aa;
 --color-textbg: #282828;
 --color-text: #e8e8e8;
 --color-purple: #9353aa;
 --color-red: #c10000;
 --color-gray: #282828;
 --color-lightgray: #e8e8e8;
}

*
{
 box-sizing: border-box;
}

html
{
 height: 100%;
}

body
{
 margin: 0;
 padding: 0;
 font-family: 'PT Sans', 'Arial CE', 'Arial', sans-serif;
 font-size: 14pt;
 line-height: 1.3em;
 color: var(--color-text);
 background-color: var(--color-bg);
 height: 100%;
 max-height: 100vh;
}

p
{
 margin: 0;
}

a
{
 text-decoration: none;
}

/* index */

#index
{
 position: relative;
 width: 100%;
 height: 100%;
 overflow: hidden;
}

#index-gray
{
 position: absolute;
 top: 0;
 left: 0;
 width: calc(100% - 100px);
 height: calc(100% - 100px);
 margin: 50px;
 background-color: #282828;
 border-radius: 50px;
 z-index: 10;
}

#index-overlay
{
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: url(/img/kanonok-back-big.png) bottom no-repeat;
 background-size: 100%;
 z-index: 20;
}

#index-overlay-left
{
 position: absolute;
 bottom: 0;
 left: -50px;
 max-width: 48%;
 z-index: 20;
}

#index-overlay-right
{
 position: absolute;
 bottom: 0;
 right: -50px;
 max-width: 48%;
 z-index: 20;
}

#index-overlay-left img,
#index-overlay-right img
{
 display: block;
 width: 100%;
}

#index-content
{
 top: 50px;
 width: 100%;
 position: absolute;
 z-index: 30;
 text-align: center;
}

#index h1
{
 display: inline-block;
 font-size: 60pt;
 text-transform: uppercase;
 margin: 0 auto;
 padding: 100px 40px 40px 40px;
 border-bottom-left-radius: 40px;
 border-bottom-right-radius: 40px;
 background-color: var(--color-purple);
 white-space: nowrap;
}

#index-search
{
 display: block;
 margin-top: 35px;
}

#search-title
{
 display: inline-block;
 background-color: var(--color-purple);
 padding: 20px 30px;
 vertical-align: middle;
 border-radius: 20px;
 font-size: 30pt;
 font-weight: bold;
 color: #fff;
}

#index-search-fields
{
 width: calc(100% - 100px);
 margin: auto;
}

.search-field
{
 display: inline-block;
 width: 50%;
 text-align: left;
 padding: 50px 50px 0 50px;
 color: var(--color-purple);
 font-size: 24pt;
 vertical-align: top;
}

.search-field p
{
 padding-left: 15px;
}

.search-box
{
 position: relative;
 width: 100%;
 height: 14em;
 background-color: rgba(255, 255, 255, .3);
 border-radius: 15px;
 padding: 10px 15px;
 margin-top: 10px;
 overflow-y: auto;
}

.search-box > ul
{
 list-style: none;
 margin: 0;
 padding: 0;
}

.search-box > ul li
{
 padding: 5px 0;
 color: #fff;
 line-height: 1em;
}

.search-bottom
{
 position: absolute;
 bottom: 0;
 left: 0;
 width: 100%;
 height: 40px;
 background: linear-gradient(rgba(40, 40, 40, 0), rgba(40, 40, 40, 1) 90%);
 color: #fff;
 z-index: 1;
 text-align: center;
 padding-bottom: 10px;
 font-size: 30px;
 text-shadow: 1px 1px 10px #000;
 cursor: pointer;
}

.search-top
{
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 40px;
 background: linear-gradient(rgba(40, 40, 40, 1) 10%, rgba(40, 40, 40, 0));
 color: #fff;
 z-index: 1;
 text-align: center;
 padding-top: 20px;
 font-size: 30px;
 text-shadow: 1px 1px 10px #000;
 cursor: pointer;
}

::-webkit-scrollbar
{
 width: 50px;
}

::-webkit-scrollbar-track
{
 background: var(--color-purple);
 border-top-right-radius: 10px;
 border-bottom-right-radius: 10px;
}

::-webkit-scrollbar-thumb
{
 background: #fff;
 border-radius: 10px;
 box-shadow: inset 0 0 5px grey;
 border: 0;
 height: 100px !important;
}

::-webkit-scrollbar-thumb:hover
{
 background: #fff;
}

/* kanonok */

header
{
 width: 100%;
 height: 100px;
 max-height: 100px;
}

header > h1
{
 margin-top: 0;
 margin-bottom: .5em;
 font-size: 48px;
 color: var(--color-purple);
 background-color: var(--color-textbg);
 padding: .5em 1em;
 min-width: 50%;
 border-bottom-right-radius: 15px;
 display: inline-block;
 text-align: center;
}

.button
{
 font-size: 20pt;
 font-weight: bold;
 color: #fff;
 background-color: var(--color-blue);
 padding: 20px;
 border-radius: 20px;
 border: 0;
 cursor: pointer;
 -webkit-box-shadow: 0px 8px 8px -3px rgba(0,0,0,0.5);
 -moz-box-shadow: 0px 8px 8px -3px rgba(0,0,0,0.5);
 box-shadow: 0px 8px 8px -3px rgba(0,0,0,0.5);
}

#content
{
 height: 100%;
}

#main
{
 height: calc(100vh - 100px);
}

#left
{
 display: inline-block;
 vertical-align: top;
 background-color: var(--color-textbg);
 width: 50%;
 height: 100%;
 padding: 40px 40px 0 40px;
 text-align: center;
}

#image
{
 margin: 0 auto;
 height: calc(100% - 92px);
}

#image > img
{
 max-width: 100%;
 max-height: 100%;
 display: block;
 margin: 0 auto;
}

#right
{
 display: inline-block;
 vertical-align: top;
 width: 50%;
 height: 100%;
 padding-right: 40px;
}

#right-content
{
 display: flex;
 flex-direction: column;
 max-height: 100%;
}

#author
{
 width: 100%;
 padding: 20px 40px;
 background-color: var(--color-textbg);
 margin-bottom: 20px;
 border-top-right-radius: 15px;
 border-bottom-right-radius: 15px;
}

#author > h2
{
 color: #fff;
 margin: 0 0 10px 0;
 font-size: 32px;
 line-height: 1.1em;
}

#author > div
{
 display: inline-block;
 margin-right: 1.5em;
}

#author > div:last-child
{
 margin-right: 0;
}

#inscription
{
 width: 100%;
 padding: 20px 40px;
 background-color: var(--color-textbg);
 margin-bottom: 20px;
 border-top-right-radius: 15px;
 border-bottom-right-radius: 15px;
}

#inscription > h3
{
 color: var(--color-purple);
 margin: 0 0 10px 0;
 font-size: 28px;
}

#inscription p
{
 text-align: justify;
}

#bio
{
 position: relative;
 padding: 20px;
 margin: 0 0 20px 20px;
 background-color: var(--color-textbg);
 border-radius: 15px;
 flex: 1;
 overflow-y: hidden;
 overflow-x: hidden;
 height: 100%;
 max-height: 100%;
}

#bio h3
{
 color: var(--color-purple);
 margin: 0 0 10px 0;
 font-size: 28px;
}

#bio p
{
 text-align: justify;
 margin-bottom: .5em;
}

#bio-fade-bottom
{
 position: absolute;
 bottom: 0;
 left: 0;
 width: 100%;
 height: 50px;
 background: linear-gradient(rgba(40, 40, 40, 0), rgba(40, 40, 40, 1) 90%);
 z-index: 1;
 text-align: center;
 padding-bottom: 20px;
 font-size: 30px;
 text-shadow: 1px 1px 10px #000;
 cursor: pointer;
}

#bio-fade-top
{
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 50px;
 background: linear-gradient(rgba(40, 40, 40, 1) 10%, rgba(40, 40, 40, 0));
 z-index: 1;
 text-align: center;
 padding-top: 20px;
 font-size: 30px;
 text-shadow: 1px 1px 10px #000;
 cursor: pointer;
}

#buttons
{
 margin: 20px 0;
 text-align: right;
 height: 52px;
}

.arrow
{
 height: 52px;
 cursor: pointer;
 border: 0;
 border-radius: 10px;
 color: var(--color-purple);
 font-size: 20px;
 font-weight: bold;
 text-transform: uppercase;
 vertical-align: top;
}

@media screen and (max-width: 1200px)
{
 .search-field {font-size: 14pt; padding: 25px 25px 0 25px;}
 ::-webkit-scrollbar {width: 20px;}
 #index h1 {white-space: normal; line-height: 1.2em; font-size: 40pt; padding: 20px;}
 #search-title {font-size: 24pt;}
 #search-title img {height: 40px;}
 #bio {overflow-y: auto;}
}

@media screen and (max-width: 800px)
{
 .search-field {font-size: 14pt; display: block; width: 100%; padding: 25px;}
 ::-webkit-scrollbar {width: 15px;}

 #main {height: auto;}
 #left, #right {display: block; width: 100%; height: auto; padding: 20px;}
 #right {padding: 10px;}
 #author, #inscription, #bio {padding: 15px; border-radius: 10px;}
 #author > h2 {font-size: 28px;}
 #bio {margin: 0; height: auto; max-height: none;}
 #right-content {display: block; max-height: none;}
 header {height: auto; max-height: none;}
 header > h1 {width: 100%; border-bottom-right-radius: 0; line-height: 1em; font-size: 36px;}
 #index-search-fields {width: 100%;}
}

@media screen and (max-height: 900px)
{
 .search-field {font-size: 14pt; padding: 25px 25px 0 25px;}
}

@media screen and (max-height: 800px)
{
 #index {overflow-x: hidden; overflow-y: auto;}
 #index-content {background-color: #282828; top: 0; bottom: 0;}
 #index-gray, #index-overlay-left, #index-overlay-right {display: none;}
 #main {height: auto;}
 ::-webkit-scrollbar {width: 20px;}
 #index h1 {white-space: normal; line-height: 1.2em; font-size: 40pt; padding: 20px;}

/*
 #left, #right {display: block; width: 100%; height: auto; padding: 20px;}
 #right {padding: 10px;}
 #author, #inscription, #bio {padding: 15px; border-radius: 10px;}
 #author > h2 {font-size: 28px;}
 #bio {margin: 0; height: auto; max-height: none;}
 #right-content {display: block; max-height: none;}
 header {height: auto; max-height: none;}
 header > h1 {width: 100%; border-bottom-right-radius: 0; line-height: 1em; font-size: 36px;}
 #index-search-fields {width: 100%;}
*/
}

@media screen and (max-width: 800px)
{
 body {background-color: #282828;}
 #index {position: static;}
 #index-content {background-color: #282828; top: 0; padding-bottom: 50px;}
 #index-gray, #index-overlay-left, #index-overlay-right {display: none;}
}
