@import url('/style/bebas.css');
@import url('/style/RobotoCondensed.css');

:root {
	--background: rgba(23, 24, 25, 1);
	--background2: rgb(47 46 46 / 64%);
	--bg-modal: rgb(59 59 59 / 39%);
	--color: #b0b0b0;
	--color2: #333333;
	--color-modal:#e4dad1;
	--roboto: 'Roboto Condensed', sans-serif;
	--bebas: "Bebas Neue";
	--red: #C83E31;
	--gold: #ca9332;
	--green-background: #424D2E;
	--green-color: #A8CE67;
	--shadow: rgba(0, 0, 0, .3);
	--border: #272626;
}

body {
    background-color: #0E1010;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
* {
    margin: 0;
    padding: 0;
    list-style-type: none;
    box-sizing: border-box;
    font-family: var(--roboto);
}
a {
	text-decoration: none;
	transition: .2s;
}

.center {
    position: relative;
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    background: linear-gradient(to bottom, rgb(7 8 8 / 0%), #0b0c0c00 82%), radial-gradient(circle at 50% 10%, rgba(217, 161, 60, .16), transparent 34%), #10111100;
    flex: 1 0 auto;
}
.center::before {
    position: absolute;
}
.center>h3 {
    color: var(--gold);
    font-family: var(--bebas);
    padding-bottom: .5rem;
}
.center>.logo {}
.center>.logo:hover {
    transform: scale(1.05);
}
.center>.logo>img {
    width: 10rem;
}
.center>h1 {
    color: #e8e8e8;
    font-family: var(--bebas);
    font-size: 6rem;
    font-weight: 600;
}
.center>h1>span {
    color: var(--gold);
    font-family: var(--bebas);
}
.center>p {
    color: var(--color);
}

.flex {
    padding-top: 2rem;
    gap: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}
.flex>.games {
    height: 30rem;
    display: flex;
    flex-direction: column;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: .5rem;
    padding: 1rem;
    justify-content: flex-end;
    position: relative;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    transition: .3s;
}
.flex>.games:not(.lock):hover {border-color: rgba(217, 161, 60, .9);box-shadow: 0 0 0 1px rgba(217, 161, 60, .15), 0 18px 50px rgba(0, 0, 0, .6);}
.flex>.games.lock {
    display: flex;
    align-items: center;
    gap: 1rem;
    filter: grayscale(1);
}
.flex>.games.rust {
    background-image: url(/images/33.webp);
}
.flex>.games.miscreated {
    background-image: url(/images/11.webp);
}
.flex>.games.scum {
    background-image: url(/images/22.webp);
}
.flex>.games::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, #171818 100%);
}
.flex>.games>.logo {
    width: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
    z-index: 2;
}
.flex>.games>.logo>img {
    width: 100%;
}
.flex>.games>.text {
    color: var(--gold);
    font-family: var(--bebas);
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
}
.flex>.games>.online {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    gap: .4rem;
    align-items: center;
    margin: 1rem 0rem;
    z-index: 2;
}
.flex>.games>.online>.block {
    font-family: var(--bebas);
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--green-color);
}
.flex>.games>.online>.title {
    font-family: var(--bebas);
    color: #aaa;
}
.flex>.games>.online>.count {
    font-family: var(--bebas);
    color: #fff;
}
.flex>.games>.title {
    color: var(--color);
    font-size: .9rem;
    padding-bottom: 1rem;
    z-index: 2;
}
.flex>.games.lock>.title {
    text-align: center;
    line-height: 1.5;
}
.flex>.games>a {
    display: block;
    width: 100%;
    height: 3rem;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--bebas);
    color: var(--color2);
    font-weight: 600;
    font-size: 1.3rem;
    border-radius: .4rem;
    z-index: 2;
}
.flex>.games:not(.lock)>a:hover {
    transform: scale(1.02);
}
.flex>.games.lock>a {
    border: 1px solid #555;
    color: #777;
    background: rgb(47 46 46 / 28%);
    cursor: default;
}
footer {
    width: 1200px;
    margin: 0 auto;
    padding: 1rem 0rem;
}
footer>p {
    color: var(--color);
    line-height: 1.5rem;
    text-align: center;
}

.background {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    transition: all .2s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}
.background::after {
    background-image: url(https://rust.grimwar.ru/images/fone.png);
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 500;
    pointer-events: none;
    opacity: .6;
}
@media (max-width: 1024px) {
	.center, footer {
		width: 95%;
	}
	.flex>.games {
		height: 27rem;
	}
}
@media (max-width: 1023px) {
	.center, footer {
		width: 95%;
	}
	.flex {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.flex>.games {
		height: 23rem;
	}
}
@media (max-width: 480px) {
	.center, footer {
        width: 100%;
        padding: 1rem;
    }
	.center {
		background: linear-gradient(to bottom, rgb(7 8 8 / 0%), #0b0c0c00 82%), radial-gradient(circle at 50% -15%, rgba(217, 161, 60, .16), transparent 34%), #10111100;
	}
	.center>h1 {
		font-size: 3.5rem;
		padding: .5rem;
	}
	.center>p {
		text-align: center;
	}
	.flex {
		display: flex;
		flex-direction: column;
	}
	.flex>.games {
		height: 24rem;
	}
}