@font-face {
    font-family: 'grixel_acme_7_wide_xtnd';
    src: url('font/acme_7_wide_xtnd.eot');
    src: url('font/acme_7_wide_xtnd.eot?#iefix') format('embedded-opentype'),
        url('font/acme_7_wide_xtnd.woff') format('woff'),
        url('font/acme_7_wide_xtnd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-size-adjust: 0.49;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
    display: block;
    height: 10px;
    background-color: #8c8c8c;
}

::-webkit-scrollbar-track-piece {
    background-color: #c8c8c8;
}

::-webkit-scrollbar-thumb:vertical {
    height: 50px;
    background-color: #505050;
}

::-webkit-scrollbar-thumb:horizontal {
    width: 50px;
    background-color: #505050;
}

:root {
    --content-width: 840px;
}

* {
    padding: 0px;
    margin: 0px;
    font-family: grixel_acme_7_wide_xtnd, Courier New, Verdana, Arial;
    line-height: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    /* background-color: #ddd; */
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: black;
}

p a:hover {
    text-decoration: none;
    color: gray;
}

h1 {
    font-family: Courier New, Verdana, Arial;
    font-weight: bold;
    font-size: 18px;
    line-height: 24px;
}

h2, h3 {
    font-family: Courier New, Verdana, Arial;
    font-weight: bold;
    font-size: 18px;
    line-height: 24px;
}

h2::before {
    content: '';
    display: block;
    width: 100%;
    height: 144px;
    margin: -144px 0px 0px;
}

.page {
    display: flex;
    flex-direction: column;
    max-width: var(--content-width);
    min-height: fit-content;
    margin: 0 auto;
    padding-top: 128px;
    background-color: #f5f5f5;
    border-top: none;
}

.header-container {
    display: flex;
    position: fixed;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    background-color: white;
    border-bottom: 2px solid #8c8c8c;
    z-index: 100;
}

.header {
    display: flex;
    position: relative;
    width: var(--content-width);
    height: 128px;
    font-size: 10pt;
    background-color: #fff;
    overflow-x: auto;
    overflow-y: hidden;
}

.content {
    font-size: 8pt;
    padding-top: 30px;
    float: left;
    position: relative;
}

.footer {
    width: 100%;
    border-top: 1px solid #c8c8c8;
    text-align: right;
    height: 40px;
    padding-top: 10px;
    background-color: #f5f5f5;
}

.footer p a {
    color: #828282;
    transition: 0.125s;
}

.footer p a:hover {
    color: #000;
}

.footer p {
    font-size: 6pt;
    margin-right: 20px;
    color: #828282;
}

.footer {
    display: flex;
    align-items: center;     /* vertical centering */
    justify-content: flex-end; /* align everything to the right */
    text-align: right;
    flex-wrap: wrap;         /* optional, helps on small screens */
}

.footer img {
    vertical-align: middle;
}

.simplelink {
    font-weight: bold;
    color: #ff6060;
}

/* font change for better reading... */
.content p,
.content a,
.content p strong,
.content strong,
.content .downloadText {
    font-family: Courier New, Verdana, Arial !important;
    font-size: medium;
    line-height: 200%;
}

.downloadButtonInstaller {
    font-size: x-small;
}

.anchor-link {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    background-image: url(img/anchor_link.svg);
    background-size: 16px 16px;
    display: inline-block;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.25s;
    transform: translateY(4px);
}

.anchor-link:hover {
    opacity: 1.0;
}

ul {
    width: fit-content;
    padding-left: 48px;
    list-style-position: inside;
}

li {
    font-family: Courier New, Verdana, Arial !important;
    font-size: medium;
    line-height: 200%;
}

#logo {
    width: 128px;
    height: 128px;
    float: left;
    position: relative;
    background-image: url(img/raylib_logo.png);
}

.menu {
    width: calc(100% - 128px);
    height: 48px;

    cursor: pointer;

    position: absolute;
    bottom: 0px;
    right: 0px;
    overflow-x: auto;
    overflow-y: hidden;

    display: flex;
    flex-direction: row;
    justify-content: right;
    flex-wrap: nowrap;

    background-color: #fff;
}

.menu a {
    height: 48px;
    padding: 0px 20px;
    color: #505050;
    font-size: 12pt;
    line-height: 40px;
    float: left;
    position: relative;
    transition: 0.125s;

    border-left: 2px solid #0000;
    border-right: 2px solid #0000;
}

.menu a:hover {
    color: #000;
    padding: 0px 20px;
}

#active {
    height: 46px;
    padding: 0px 20px;
    color: #000;
    font-size: 12pt;
    line-height: 36px;
    float: left;
    position: relative;
    cursor: default;
    border: 2px solid #c8c8c8;
    border-bottom: none;
}

.menu a:hover,
#active {
    background: #c8c8c888;
}

#analytics-banner {
    padding-top: 8px;
    padding-bottom: 8px;
    width: 100%;

    position: absolute;
    float: left;
    bottom: 0px;
    left: 0px;
    position: sticky;

    background-color: #ffcb00;
    border-top: 2px solid #b38e00;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    transition: 0.5s;
}

.architecture-image-container {
    margin-top: 32px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.architecture-image-container img {
    max-width: calc(100vw - 20px);
    border: 2px solid #c8c8c8;
    transition: 0.125s;
}

.architecture-image-container:hover img {
    border: 2px solid #828282;
}

.donate-nav {
    display: flex;
    margin-top: 9px;
    margin-left: auto;
    margin-right: 8px;
    font-size: 20px;
    height: 34px;
    align-items: center;
}

#social {
    display: flex;
    margin-top: 8px;
}

#social a {
    width: 36px;
    height: 36px;
    background-repeat: none;
    background-position: 0px 0px;
    cursor: pointer;
}

#social a:hover {
    background-position: 0px -36px;
}

#github     { background-image: url(img/icon_github.png); }
#discord    { background-image: url(img/icon_discord.png); }
#twitter    { background-image: url(img/icon_twitter.png); }
#reddit    { background-image: url(img/icon_reddit.png); }

#licensebox {
    width: 808px;
    height: 400px;
    border: 12px solid;
    border-color: #d0d0d0;
    background-color: #e4e4e4;
}

#licensebox p {
    font-size: 12px;
    margin-top: 15px;
    margin-left: 10px;
}

.licensepoint {
    margin-left: 25px !important;
}

.downloadText {
    width: 420px;
    height: 40px;
    float: left;
    position: relative;
    margin-left: 40px;
}

.downloadButton {
    width: 220px;
    height: 35px;
    float: left;
    position: relative;
    cursor: pointer;
    font-weight: bold;
    line-height: 35px;
    text-align: center;
    border-width: 5px !important;
}

.downloadButtonInstaller {
    width: 460px;
    height: 35px;
    position: relative;
    margin: auto auto;
    margin-top: 20px !important;
    cursor: pointer;
    font-weight: bold;
    line-height: 35px;
    text-align: center;
    border-width: 5px !important;
}

#btngit {
    background-color: #e1e1e1;
    color: #5c5a5a;
    border: 4px solid #898888;
}

#btngit:hover {
    background-color: #bedce8;
    color: #417794;
    border: 4px solid #5d9cbd;
}

#btnlib {
    background-color: #e1e1e1;
    color: #5c5a5a;
    border: 4px solid #898888;
    margin-top: 15px;
}

#btnlib:hover {
    background-color: #f0d6d6;
    color: #c55757;
    border: 4px solid #e66666;
    margin-top: 15px;
}

#btnmac {
    font-weight: normal;
    cursor: default;
    background-color: #f0f0f0;
    color: #5c5a5a;
    border: 4px solid #d3d3d3;
}

#newVersion {
    background-color: #f0d6d6;
    color: #e55757;
    border: 1px solid #f66666;
    margin-top: 15px;
    margin-left: -5px;
    width: 100%;
    height: 30px;
    position: relative;
    margin: auto auto;
    line-height: 30px;
    text-align: center;
}

#raylib13 {
    position: relative;
    background-color: #222222;
    color: #f5f5f5;
    width: 100vw;
    left: calc(-52vw + 50%);
    padding: 30px;
    text-align: center;
    margin: 10px;
}

#basicgrid {
    width: 580px;
    margin-left: 60px;
    float: left;
    position: relative;
    text-align: center;
}

#advgrid {
    width: 560px;
    margin-left: 70px;
    float: left;
    position: relative;
    text-align: center;
}

.exampleBox {
    cursor: pointer;
    margin: 15px 20px;
    width: 54px;
    padding-right: 2px;
    height: 56px;
    border: 4px solid black;
    display: inline-block;
    text-align: right;
    font-weight: bold;
    vertical-align: bottom;
}

.exampleBox .in {
    display: table-cell;
    vertical-align: bottom;
    width: 52px;
    height: 56px;
}

.specialBox {
    cursor: pointer;
    vertical-align: bottom;
    color: #818181;
    width: 56px;
    height: 58px;
    padding-right: 2px;
    padding-top: 4px;
    padding-left: 4px;
    margin: 15px 20px;
    display: inline-block;
    border: 1px solid #b9b9b9;
    text-align: right;
}

.specialBox .in {
    display: table-cell;
    vertical-align: bottom;
    width: 52px;
    height: 52px;
    border: 1px solid #b9b9b9;
    margin-top: -5px;
}

.specialBox:hover {
    color: black;
    border: 1px solid black;
}

.specialBox .in:hover {
    color: black;
    border: 1px solid black;
}

.boxintext {
    margin-bottom: 3px;
    margin-right: 2px;
    line-height: 10px;
    font-size: 6pt;
}

.boxintextex {
    margin-bottom: 3px;
    margin-right: -2px;
    line-height: 10px;
    font-size: 6pt;
    width: 54px !important;
    height: 53px !important;
    font-weight: normal !important;
}

.boxtodo {
    margin-bottom: 13px;
    margin-right: 7px;
}

.help {
    font-size: 8px;
    margin-left: 25px;
}

#paypalbox {
    width: 200px;
    height: 50px;
    border: 12px solid;
    border-color: #d0d0d0;
    background-color: #e4e4e4;
    margin: 0 auto;
}

#paypalform input {
    margin-top: 12px;
    margin-left: 50px;
}

#wiki {
    color: maroon;
}

#itchioframe {
    display: block;
    text-align: center;
    overflow: auto;
}

.icon {
    margin-right: 2px;
}

a#game-template {
    margin: 0 auto; 
    border: 6px solid #888888; 
    transition: all .2s ease; 
    padding: 1em;
    margin-bottom: 1em;
}

a#game-template:hover {
    border: 6px solid #111111;
    background-color: white;
}

.platforms>a>img {
    border: 6px solid #888888;
    transition: all .2s ease;
}

.platforms>a>img:hover {
    border: 6px solid #111111;
}
a:has(img) {
    display: flex;
    height: max-content;
}
.box-icons-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    &:not(&:is(#language-bindings, #extralibs, #raylibtech)){
        > a >img{
            border: 6px solid #888888;
            transition: all .2s ease;
            &:hover {
                border: 6px solid #111111;
            }
        }        
    }    
}
.awards-container{
    gap: 5px;
}
#extralibs>a>img {
    transition: all .2s ease;
}

#extralibs>a>img:hover {
    filter: contrast(200%);
}
#raylibtech{
    max-width: calc(var(--content-width) - 120px);
}
#raylibtech>a>img {
    transition: all .2s ease;
}

#raylibtech>a>img:hover {
    filter: contrast(180%);
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video {
  width: 100%;
  height: 100%;
}
.nav-container{
    display: flex;
    flex-grow: 1;
}
@media only screen and (max-width: 600px) {

    /* general layout changes for mobile */
    ul {
        padding-left: 8px;
    }

    .platforms, .box-icons-container, #extralibs, #raylibtech {
        text-align: center;
    }
    .content {
        padding: 30px 10px 0;
    }
    #itchioframe iframe {
        max-width: calc(100vw - 20px);
    }

    /* fixes menu + scrolling for mobile */
    .header {
        -ms-overflow-style: none;   /*Internet Explorer 10+ */
        scrollbar-width: none;  /* Firefox */
    }
    .header::-webkit-scrollbar { 
        display: none;  /* Safari and Chrome */
    }
    
    /* .header-container {
        width: 100vw;
    } */

     /*
    .menu {
        width: 712px; 
        right: unset;
    }
     i've disabled this to fix layout issues / gilbert 12/1/2024
    this width is currently based on the websites normal menu */
    #logo {
        flex-direction: column; 
        flex-shrink: 0;
    }
}

@media only screen and (width <= 850px) {
    .nav-container{
        align-items: center;
        margin-right: 20px;
        .donate-nav{display: none;}
        .menu{display: none;}
        #social{display: none;}
    }
    .header{justify-content: space-between;}
}

.btn-donate {
    background-color: #72e75d;
    outline: 4px solid #21bf52;
    color: white;
    border: 0;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-shadow: 2px 2px 0px #49b752;
    font-weight: 1000;
}

.btn-donate:hover {
    background-color: #49b752;
    outline: 5px solid #34fd73;
}

#btndonate {
    text-align:center;
}

#btndonate {
    text-align:center;
}

.btn-donate-top {
    display: flex;
    color: white;
    background-color: #72e75d;
    border-color: #21bf52;
    border-width: 2px;
    border-radius: 0px;
    border-style: solid;
    padding: 2px 5px;
    cursor: pointer;
    text-shadow: 2px 2px 0px #49b752;
    font-weight: 1000;
}

.btn-donate-top:hover {
    background-color: #49b752;
    border-color: #34fd73;
    border-width: 2px;
}