@charset "UTF-8";
/* @import url('/static/assets/fonts/snake-font.woff'); */

@font-face {
    font-family: 'SnakeFont';
    src: url('/static/assets/fonts/snake-font.woff') format('woff'),
        url('/static/assets/fonts/snake-font.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    /* Update the path to your font file */
}

html,
body {
    height: 100%;
    width: 100%;
    text-rendering: optimizeSpeed;
    margin: 0;
    padding: 0;
    text-align: center;
    /* Set height to 100% */
    background-color: #434343;
    background-image: url("../../images/overlay.png"), -moz-linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)), url("../../images/bg.jpg");
    background-image: url("../../images/overlay.png"), -webkit-linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)), url("../../images/bg.jpg");
    background-image: url("../../images/overlay.png"), -ms-linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)), url("../../images/bg.jpg");
    background-image: url("../../images/overlay.png"), linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)), url("../../images/bg.jpg");
    background-repeat: repeat, no-repeat, repeat;
    /* background-size: cover, cover, cover; */
    background-size: 100%, cover, 100%;
    background-position: center, center center, center;
    background-attachment: fixed, fixed, fixed;
}

body,
input,
select,
textarea {
    /* color: #414f57; */
    /* font-family: "Source Sans Pro", Helvetica, sans-serif; */
    font-size: 14pt;
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

p,
label {
    color: rgba(168, 168, 168, 1);
    ;
}

br {
    line-height: 2em;
}

@media screen and (max-width: 1680px) {

    body,
    input,
    select,
    textarea {
        font-size: 11pt;
    }

}


@media screen and (max-width: 480px) {

    html,
    body {
        min-width: 320px;
    }

    body,
    input,
    select,
    textarea {
        font-size: 10pt;
        line-height: 1.5;
    }

    h1 {
        font-size: 1.65em;
    }

    li {
        font-size: 1.5rem;
    }

}


#game-container {
    display: flex;
    align-items: flex-start;
}

#header-container {
    width: 100%;
    height: 6em;
    margin-bottom: 1.2em;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); */
}

#header-container::before {
    content: '';
    width: 100%;
    border-style: solid;
    border-width: 0 6vw 8vh 6vw;
    /* Set the border widths of the box */
    border-color: transparent transparent transparent transparent;
}

#header {
    transform: translate(-43%, -15%);
    bottom: 0.8em;

}


.snake-header {
    font-family: 'SnakeFont', sans-serif;
    font-size: 6em;
    font-weight: bold;
    color: #006400;
    text-align: center;
    line-height: 1;
    padding: 1%;
    height: 0.7em;
    z-index: 2;
    text-shadow: 8px 8px 10px rgba(0, 0, 0, 0.7);
    text-decoration: none;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); */
}

.snake-header::before,
.snake-header::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
}

@keyframes drawPython {
    0% {
        content: '';
    }

    16.66% {
        content: 'P';
    }

    33.32% {
        content: 'Py';
    }

    49.98% {
        content: 'Pyt';
    }

    66.64% {
        content: 'Pyth';
    }

    83.3% {
        content: 'Pytho';
    }

    100% {
        content: 'Python';
    }
}

.snake-header::after {
    animation: drawPython 3s forwards;
}


canvas {
    /* box-shadow: greenyellow 15px 6px 30px; */
    /* background-color: #212121; */
    width: 500;
    height: 600;
    overflow: hidden;
    background-color: #232D3F;
    margin-top: 5vh;
    /*elevate our canvas*/
    box-shadow: 2px 2px 13px rgba(00, 124, 00, 0.5);
    animation: shadowAnimation 3s infinite linear;
}


@keyframes shadowAnimation {
    0% {
        box-shadow: 2px 2px 12px rgba(00, 124, 00, 0.8);
    }

    50% {
        box-shadow: -1px -1px 16px rgba(00, 84, 00, 0.6);
    }

    100% {
        box-shadow: 2px 2px 11px rgba(00, 124, 00, 0.8);
    }
}

#game-info,
#button-info {
    width: 100%;
    font-size: 1.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); */

}

#button-info {
    text-align: center;
}

#game-over {

    margin-top: 3em;

    font-size: 1.1em;
    padding: 0.3%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* display: flex;
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.8);*/
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#game-over h2 {
    font-size: 2em;
    font-weight: bold;
    color: red;
    /* Adjust the duration as needed */
    animation: blink 1.3s infinite;

}

#game {
    margin: 0 auto;
    display: block;
}

.hidden {
    display: none;
}

#success-message {
    text-align: center;
    margin-top: 10px;
}

#success-message p {
    font-size: 1.2em;
}

#high-scores-list {
    padding: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* box-shadow: 0 4px 8px rgba(0, 0, 255, 0.8); */

}

#high-scores-list ol {
    list-style-type: none;
    padding: 0;
}

/* Increase the size of the "High Scores" header */
#high-scores-list h2 {
    font-size: 1.7em;
    /* Adjust the font size as needed */
}

/* Add a style for the high scores list items */
#high-scores-list li {
    font-family: Arial, sans-serif;
    /* Use a font you prefer */
    font-size: 1.3em;
    /* Adjust the font size */
    color: rgba(125, 125, 125, 1);
    /* Set the text color for scores */
    margin-bottom: 0.3em;
    /* Add some margin between each list item */
    display: flex;
    /* Use flexbox to align child elements */
    align-items: center;
    /* Align items vertically in the center */
}


#high-scores-list li span.number {
    font-weight: bold;
    margin-right: 0.5em;
    /* Add some margin to the right of the number */
    width: 1.7em;
    /* Fixed width for the number */
    text-align: right;
    /* Right-align the number */
}

#high-scores-list li span.nickname {
    margin-right: 2em;
    /* Add some margin to the right of the nickname */
}

#high-scores-list li span.score {
    color: green;
    /* Set the text color for scores */
    margin-left: auto;
    /* Push the score to the right by taking all available space */
}

#high-scores-list li.gold,
#high-scores-list li.gold span.score {
    color: gold;
    text-shadow: 1px 1px 10px rgba(255, 215, 0, 0.5);
}

#high-scores-list li.silver,
#high-scores-list li.silver span.score {
    color: silver;
    text-shadow: 1px 1px 7px rgba(192, 162, 192, 0.5);
}

#high-scores-list li.bronze,
#high-scores-list li.bronze span.score {
    color: #cd7f32;
    text-shadow: 1px 1px 5px rgba(205, 127, 50, 0.3);
}

#high-scores-list li.highlight,
#high-scores-list li.highlight span.score {
    color: red;
    text-shadow: 1px 1px 5px rgba(255, 0, 0, 0.3);
}

.footer {
    position: relative;
    width: 100%;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.8); */
}

#copyright-container {
    position: relative;
    text-align: center;
    margin: 0.3em auto;
    padding-top: 0.5em;
}

#footer {
    -moz-align-self: -moz-flex-end;
    -webkit-align-self: -webkit-flex-end;
    -ms-align-self: -ms-flex-end;
    align-self: flex-end;
    width: 100%;
    padding: 1.5em 0 0 0;
    color: rgba(230, 230, 230, 0.65);
    cursor: default;
    text-align: center;
}

hr {
    border: 0;
    border-bottom: solid 1px #c8cccf;
    margin: 2.5em 0;
    border-style: none;
    border-top: solid;
    opacity: 0.1;
    width: 100%;
    margin-top: 2%;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); */
    box-shadow: 0 -3px 6px rgba(255, 255, 255, 0.8);
}

select {
    height: 2.75em;
}

ol {
    list-style: decimal;
    margin: 0 0 1.5em 0;
    padding-left: 1.25em;
}

ol li {
    padding-left: 0.25em;
}

#wrapper {
    height: 72%;
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-align-items: center;
    -webkit-align-items: center;
    -ms-align-items: center;
    /* align-items: center; */
    align-items: flex-start;

    -moz-justify-content: space-between;
    -webkit-justify-content: space-between;
    -ms-justify-content: space-between;
    justify-content: space-between;
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -moz-perspective: 1000px;
    -webkit-perspective: 1000px;
    -ms-perspective: 1000px;
    perspective: 1000px;
    position: relative;
    /* align-items: center;  */
    /*This aligns items to the start (top)*/
    /* align-items: flex-start;
-moz-justify-content: space-between;
-webkit-justify-content: space-between;
-ms-justify-content: space-between;
justify-content: space-between;
-moz-flex-direction: column;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-moz-perspective: 1000px;
-webkit-perspective: 1000px;
-ms-perspective: 1000px;
perspective: 1000px;
position: relative;*/
    /* min-height: 100%; */
    padding: 3em;
    z-index: 2;
}

#main,
#high_score_card,
#game_info_card,
#game_over_card {
    position: relative;
    max-width: 100%;
    min-width: 500px;
    margin-right: 1%;
    margin-left: 1%;
    padding: 2em 1em 1em 2em;
    background: rgba(15, 15, 15, 0.5);
    border-radius: 4px;
    cursor: default;
    opacity: 0.95;
    text-align: center;
    -moz-transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -moz-transform: rotateX(0deg);
    -webkit-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    transform: rotateX(0deg);
    -moz-transition: opacity 1s ease, -moz-transform 1s ease;
    -webkit-transition: opacity 1s ease, -webkit-transform 1s ease;
    -ms-transition: opacity 1s ease, -ms-transform 1s ease;
    transition: opacity 1s ease, transform 1s ease;

}


input[type="submit"],
button,
.button {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    -moz-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-block;
    height: 2em;
    line-height: 1em;
    padding: 0 1.5em;
    background-color: transparent;
    border-radius: 4px;
    border: solid 1px #c8cccf;
    color: #c4cfc7 !important;
    cursor: pointer;
    text-align: center;
    /* text-decoration: none; */
    /* white-space: nowrap; */
    text-transform: uppercase;

}

input[type="submit"]:hover,
button:hover,
.button:hover {
    border-color: #d607f1;
    color: #d607f1 !important;
}



@media (max-width: 480px) {

    html,
    body {
        min-width: 320px;
    }

    body,
    input,
    select,
    textarea {
        font-size: 10pt;
        line-height: 1.5;
    }

    h1 {
        font-size: 1.65em;
    }

    li {
        font-size: 1.5rem;
    }

    #main,
    #high_score_card,
    #game_info_card,
    #game_over_card {
        position: relative;
        left: 0;
        transform: translateX(0);
        min-width: 100%;
    }

}

@media (max-width: 768px) {
    #wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #game-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .snake-header {
        font-size: 5em;
        padding-left: 45%;
    }


    #main,
    #high_score_card,
    #game_info_card,
    #game_over_card {
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
        font-size: 0.80em;
        min-width: 32em;
    }

}

/* 1080p and below */
@media (max-width: 1920px) {
    html,
    body {
        background-image: url("../../images/overlay.png"), linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)), url("../../images/bg_1080p.jpg");
    }
}

/* 720p and below */
@media (max-width: 1280px) {
    html,
    body {
        background-image: url("../../images/overlay.png"), linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)), url("../../images/bg_720p.jpg");
    }
}

/* 512px and below */
@media (max-width: 512px) {
    html,
    body {
        background-image: url("../../images/overlay.png"), linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)), url("../../images/bg_512px.jpg");
    }
}

/* 400px and below */
@media (max-width: 400px) {
    html,
    body {
        background-image: url("../../images/overlay.png"), linear-gradient(60deg, rgba(255, 165, 150, 0.5) 5%, rgba(0, 228, 255, 0.35)), url("../../images/bg_400px.jpg");
    }
}

@media (min-width: 1680px) and (max-width: 1920px) {

    #main,
    #high_score_card,
    #game_info_card,
    #game_over_card {
        position: relative;
        left: 30%;
        font-size: 0.85em;
        transform: translateX(-100%);
        min-width: 32em;

    }
}

@media (min-width: 2160px) and (max-width: 2660px) {

    #main,
    #high_score_card,
    #game_info_card,
    #game_over_card {
        position: relative;
        left: 41%;
        transform: translateX(-100%);
        min-width: 33em;

    }
}

@media (min-width: 3000px) and (max-width: 3440px) {

    #main,
    #high_score_card,
    #game_info_card,
    #game_over_card {
        position: relative;
        left: 60%;
        transform: translateX(-100%);
        min-width: 35em;

    }
}

@media (min-width: 3441px) and (max-width: 4600px) {

    #main,
    #high_score_card,
    #game_info_card,
    #game_over_card {
        position: relative;
        left: 60%;
        font-size: 1.7em;
        transform: translateX(-100%);
        min-width: 35em;

    }
}