/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.15
}

body {
    margin: 0;
  
}

img {
    max-width:100%
}

main {
    display: block
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible
}

pre {
    font-family: monospace, monospace;
    font-size: 1em
}

a {
    background-color: transparent
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted
}

b,
strong {
    font-weight: bolder
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

img {
    border-style: none
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,
input {
    overflow: visible
}

button,
select {
    text-transform: none
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: none;
    padding: 0
}

[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring,
button:-moz-focusring {
    outline: 1px dotted ButtonText
}

fieldset {
    padding: .35em .75em .625em
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal
}

progress {
    vertical-align: baseline
}

textarea {
    overflow: auto
}

[type=checkbox],
[type=radio] {
    box-sizing: border-box;
    padding: 0
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

details {
    display: block
}

summary {
    display: list-item
}

[hidden],
template {
    display: none
}

.myCanvas {
    display: block
}

#Gipi_game::-webkit-scrollbar,
.myCanvas::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 0
}

#Gipi_game2,
body2 {
    overflow: hidden
}

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff416c;
    --light-color: #1b1b1b;
    --dark-color: #212529;
}

body {

    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    overflow-x: hidden;
}

.navbar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-color) !important;
    max-width: 300px;
}

.nav-link {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 10px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: scale(1.1);
}

section {
    padding: 40px 0;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.game-container {
    background: rgb(255 255 255);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.game-canvas-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    /* border-radius: 15px; */
    overflow: hidden;
    margin: 0 auto;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.leaderboard-table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
}

#leaderboard .game-container {
    padding:0
}

.leaderboard-table th {
    background: rgb(76 56 228);
    color: var(--light-color);
    font-size: 1.2rem;
    padding: 15px;
    color:white;
}

.leaderboard-table td {
    padding: 15px 25px;
    border-bottom: 1px solid rgb(54 54 54 / 10%);
    color: var(--light-color);
    font-size: 1.1rem;
}

.leaderboard-table tr {
    border-radius:20px;
}

.leaderboard-table tr:last-child td {
    border:none;
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-table tr:nth-child(odd) td { 
    background:#f2f2f2;
    color:#000000;
}

section#how-to-play {
    margin-top: 80px;
} 
#reviews .col-md-4 {
    margin-bottom:30px;
}
.review-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 0px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-10px);
}

.stars {
    color: gold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.review-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.contact-form {
    background: rgb(255 255 255);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-control {
    background: rgb(255 255 255 / 9%);
    border: 1px solid rgb(203 217 255);
    color: var(--light-color);
    font-size: 1.1rem;
    padding: 12px 15px !important;
    margin-bottom: 20px;
    border-radius:25px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 65, 108, 0.25);
    color: var(--light-color);
}

.form-control::placeholder {
    color: rgb(0 0 0 / 60%);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #ff4b2b);
    border: none;
    padding: 16px 30px !important;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s;
    border: none !important;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}

footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 0;
    text-align: center;
    margin-top: 0px;
    color:white;
}

.game-rules {
    font-size: 1.2rem;
    line-height: 1.6;
}

.rule-item {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid #87fd02;
}

.game-container {
    /* border-radius: 0; */
    /* padding: 0; */
}

.game-canvas-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    background: #000;
    /* border-radius: 15px; */
    overflow: hidden;
    margin: 0 auto;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Стили для полноэкранного режима */
.game-canvas-container:-webkit-full-screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.game-canvas-container:-moz-full-screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.game-canvas-container:-ms-fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.game-canvas-container:fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

div#Gipi_game canvas {
    max-width: 100%;
    max-height: 100%;
    
}

section#contact {
    
    margin-bottom: 0;
    padding:50px 0;
}

section#how-to-play img {
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

section#game {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .game-canvas-container {
        /* height: 400px; */
    }
section {
    padding: 20px 0;
    margin-bottom: 30px;
}
    section#game {
    margin-top: 0px;
    padding-top: 0;
}
    
    section#how-to-play img {
        margin-bottom:20px;
        display: block;
        height: auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        text-align: center;
        margin:0 auto;
        display: block
    }
    nav.navbar.navbar-expand-lg.navbar-dark.fixed-top {
    position: relative;
}

    .game-canvas-container {
        /* height: 400px; */
    }
}