@import url(//db.onlinewebfonts.com/c/14b88c7fdb0ca4ae352143a8a1ea2c43?family=RotondaC);

* {
    font-family: "RotondaC", sans-serif;
    box-sizin
	g: border-box;
}

@font-face {
	font-family: "hAndy";
	src: url("../fonts/handy/handy.eot"); /* IE9 Compat Modes */
	src: url("../fonts/handy/handy.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
		url("../fonts/handy/handy.otf") format("opentype"), /* Open Type Font */
		url("../fonts/handy/handy.svg") format("svg"), /* Legacy iOS */
		url("../fonts/handy/handy.ttf") format("truetype"), /* Safari, Android, iOS */
		url("../fonts/handy/handy.woff") format("woff"), /* Modern Browsers */
		url("../fonts/handy/handy.woff2") format("woff2"); /* Modern Browsers */
	font-weight: normal;
	font-style: normal;
}

body {
    background-image:  url('/images/town-bg.png'), linear-gradient(180deg,rgba(10, 222, 255, 1) 0%, rgba(138, 224, 245, 1) 20%, rgba(227, 243, 247, 1) 50%);
    
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    
    margin: 0;
    padding: 0;
}
small {
    font-size: 14pt;
}

.loginbox {
    max-width: 450px;
    width: 90%;
    margin: 60px auto;
    text-align: center;
    padding: 20px;
}

.home {
    display: flex;
    justify-content: flex-start;
    padding: 20px;
}

input {
    font-size: 18pt;
    border: none;
    border-bottom: 2px solid #8acbe5;
    height: 50px;
    width: 100%;       
    margin-bottom: 15px;
    padding: 5px;
    outline: none;  
    transition: border-color .35s ease-in-out;
}

input:focus {
    border-color: #b4deee;
}

.meow-btn {
    display: inline-block;
    padding: 15px 30px;
	font-family: ;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: #ff9900;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.1s ease;
}

.meow-btn:hover {
    background: #ffaa33;
    transform: translateY(-2px);
}

.meow-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #cc7a00;
}

.play-btn {
    display: inline-block;
    width: 245px;
    height: 58px;
    
    background-image: url('/images/playnow-button.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    
    cursor: pointer;
    border: none;
	
    overflow: hidden;
}

.play-btn:hover {
    background-position: 0 -58px;
}

.play-btn:active {
    background-position: 0 -116px;
}
.error {
    color: red;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 15px;
    text-align: left;
}

.bottom-section {
    bottom: 15px;
    left: 0;
    right: 0;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.footer-bar {
    width: 100%;
    max-width: 700px;
    height: auto;
    padding: 15px 20px;
    
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px; 
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
    flex-wrap: wrap; 
    gap: 15px;
}

.footer-link {
    font-family: sans-serif;
    color: white;
    text-decoration: none;
    
    font-size: 0.9rem; 
    
    text-align: center;
}

.footer-link:hover {
    color: #ff9900;
}

@media (max-width: 768px) {
    .footer-bar {
        width: 95%;
        padding: 10px;
        gap: 10px;
    }
	
    .subtitle-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
}
.disclaimer {
    font-family: sans-serif;
    color: black;
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

.header-logo {
    padding: 40px;
}

.logo {
    width: 25vw; 
    max-width: 320px; 
    min-width: 150px;
    height: auto;
    margin: 0;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: auto;
    position: relative;
}

.tg-button {
    position: absolute;
    top: -220px;
    right: 20px;
    
    width: 20vw;
    max-width: 408px;
    min-width: 150px;
    
    aspect-ratio: 408 / 265; 
    
    background-image: url('/images/telegram-redirect-1.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}

.tg-button:hover {
    background-image: url('/images/telegram-redirect-2.svg');
}

.center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;      
}

.welcome-text {
    font-family: "Noto Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 700;
	font-style: bold;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
    margin: 0;
    text-align: center;
}

.disclaimer {
	font-family: sans-serif;
    color: black;
	
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: #00a2d8;
    border-bottom: 2px solid #0081ac;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
    z-index: 9999;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 26px;
	transform: scale(1.15);
}

.nav-logo img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-logo img:hover {
    transform: scale(1.10);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
    color: #fff078;
    text-decoration: underline;
}

.nav-links .nav-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.nav-links .nav-btn:hover {
    color: #fff078;
    text-decoration: underline;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-right a {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.25);
    padding: 5px 12px;
    border-radius: 4px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}

.nav-right a:hover {
    background: rgba(0, 0, 0, 0.45);
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 36px);
    margin-top: 36px;
    overflow: hidden;
    position: relative;
}

.game-container object,
.game-container ruffle-player {
    max-height: 100%;
    max-width: 100%;
}

body.game-body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
	
    background: linear-gradient(180deg, #22c8d8 0%, #22c8d8 2.3%, #def1f5 44.7%, #def1f5 100%);
	background-position: 0 36px;
    background-size: 100% calc(100vh - 36px);
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 36px);
    margin-top: 36px;
}

.subtitle-text {
    font-family: 'RotondaC', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: -20px 0 30px 0;
    line-height: 1.4;
    text-align: center;
    opacity: 0.95;
}
.features-section {
    margin: 40px auto;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    box-sizing: border-box;
}

.features-title {
    text-align: center;
    font-family: 'Noto Sans', 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cards */

.features-section {
    margin: 40px auto;
    width: 100%;
    max-width: 950px;
    padding: 0 20px;
    box-sizing: border-box;
}

.features-title {
    text-align: center;
    font-family: 'RotondaC', 'Noto Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features-plate {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-end;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.plate-character {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: -30px;
}

.plate-character img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.15));
}

.plate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-info h3 {
    margin: 0 0 4px 0;
    font-family: 'RotondaC', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-info p {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: #555555;
    line-height: 1.45;
}

/* Game excursion */

#overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.6;
}

#excursion-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    
    width: 95%;
    max-width: 780px;
    max-height: 95vh;
    padding: 0;
}

#excursion-popup .top, 
#excursion-popup .bottom, 
#excursion-popup .middle { 
    background: #abbe65; 
}

#excursion-popup .close {
    position: absolute;
    top: 15px;
    right: 11px;
    width: 38px;
    height: 38px;
    z-index: 10;
}

#excursion-popup .wrapper .middle {
    min-height: auto; 
    padding: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#excursion-swf-container {
    width: 100%;
    aspect-ratio: 750 / 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

#excursion-swf-container object, 
#excursion-swf-container ruffle-player {
    width: 100% !important;
    height: 100% !important;
}

#close-excursion {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
}

#close-excursion img {
    display: block;
    width: 100%;
    height: 100%;
}