@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

@font-face {
    font-family: "Big Noodle";
    src: url(fonts/big_noodle_titling.ttf);
}

:root {
    --color-main: #f07d2c;
    --color-bg: #171718;
    --color-bg-transparent: rgba(23, 23, 24, 0.8);
}

* {
    box-sizing: border-box;
    /* this prevents size changes when we use padding */
}

/* Main panels */

body {
    color: whitesmoke;
    margin: 0 auto;
    font-family: "Roboto Flex", sans-serif;
    background-image: url(images/bg2.jpg);
    background-color: var(--color-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 150vh;
}

#wrapper {
    max-width: 1650px;
    width: 95%;
    margin: auto;
    opacity: 1;
    animation-name: fadeIn;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.75s;
}

@keyframes fadeIn {

    /* simple fadein animation that we use for the content wrapper */
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Navigation bar */

nav {
    background-color: var(--color-bg-transparent);
    backdrop-filter: blur(10px);
    margin: auto;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    height: 60px;
    font-family: "Big Noodle";
}

nav .logo {
    background-image: url(images/gaming_logo.png);
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    width: 60px;
    height: 60px;
    transition: background-image ease 0.35s;
    margin-left: 25px;
}

nav .logo:hover {
    background-image: url(images/gaming_logo_hover.png);
}

nav ul {
    margin: 0;
    padding: 20px;
    font-size: 22.22px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    padding: 10px 25px;
}

nav #open-menu {
    margin-left: auto;
    margin-right: 25px;
    cursor: pointer;
}

#phone-menu {
    position: absolute;
    width: 100%;
    background-color: var(--color-bg-transparent);
    z-index: 100;
    border-bottom: 2px solid var(--color-main);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    backdrop-filter: blur(10px);
}

#phone-menu ul {
    list-style-type: none;
    font-family: "Big Noodle";
    font-size: 24px;
}

#phone-menu ul li {
    padding: 10px;
}

/* Global elements */

a {
    text-decoration: none;
    color: inherit;
    transition: 0.35s ease color;
}

a:hover {
    color: var(--color-main);
}

article {
    padding: 20px;
}

button {
    border: 3px solid var(--color-main);
    padding: 15px 30px;
    max-width: 250px;
    font-family: "Big Noodle";
    font-size: 20px;
    color: whitesmoke;
    background-color: var(--color-bg);
    cursor: pointer;
    transition: 0.35s ease filter;
}

button:hover {
    filter: brightness(150%);
}

h2 {
    color: var(--color-main);
    font-size: 60px;
    font-family: "Big Noodle";
    font-weight: normal;
    margin: 10px 0;
}

h3 {
    font-size: 32px;
    font-family: "Roboto Flex";
    text-align: center;
    font-weight: 100;
    font-style: italic;
    margin: 10px 0;
}

h4 {
    margin: 10px 0;
    font-size: 22px;
    font-weight: 300;
}

/* Splash banner */

#splash {
    width: 100%;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#splash .square {
    width: 350px;
    height: 350px;
    background-color: var(--color-bg);
    border: 5px solid var(--color-main);
    backdrop-filter: blur(10px);
    transform: rotate(45deg);
    transition: 0.5s ease transform;
    opacity: 0.8;
}

#splash .square:hover {
    transform: rotate(135deg);
}

#splash .splash-content {
    position: absolute;
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#splash .text {
    background-image: url(images/splash_text.png);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 250px;
}

/* Main content */

#content {
    background-color: var(--color-bg-transparent);
    width: 100%;
    min-height: 800px;
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

/* Computers */
#computer {
    background-image: url(images/kompjutr.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 450px;
    height: 450px;
    position: relative;
    margin: auto;
}

#computer .pin {
    background-color: var(--color-main);
    width: 24px;
    height: 24px;
    outline: 6px solid #f07d2c66;
    position: absolute;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.35s ease filter;
    user-select: none;
}

#computer .pin-small {
    width: 16px;
    height: 16px;
    outline: 4px solid #f07d2c66;
}

#computer .pin:hover {
    filter: brightness(1.3);
}

#computer #pin-mouse {
    top: 72%;
    left: 44%;
}

#computer #pin-keyboard {
    top: 69%;
    left: 20%;
}

#computer #pin-mousepad {
    top: 75%;
    left: 32%;
}

#computer #pin-headphones {
    top: 75%;
    left: 70%;
}

#computer #pin-microphone {
    top: 45%;
    left: 6%;
}

#computer #pin-webcam {
    top: 21%;
    left: 34%;
}

#computer #pin-speakers {
    top: 78%;
    left: 82%;
}

/* Sponsors */

.image-slider img {
    max-width: 300px;
    max-height: 150px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: 0.35s ease filter, 0.35s ease opacity;
}

.image-slider img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Cards */
#card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    border-radius: 8px;
    width: 100%;
    min-height: 96px;
    background-image: url("images/carr.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    position: relative;
    transition: 0.35s ease filter;
    cursor: pointer;
    margin-bottom: 10px;
}

.card:after {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    backdrop-filter: brightness(0.5);
    background: linear-gradient(to right, rgba(255, 0, 0, 0) 0%, rgba(16, 16, 16, 1) 80%);
}

.card:hover {
    filter: grayscale(1);
}

.card .program {
    width: 70%;
    z-index: 10;
    padding-left: 25px;
}

.card .program h4 {
    font-size: 22px;
    text-transform: uppercase;
    margin: 0;
}

.card .program .description {
    margin: 0;
    font-weight: 100;
    font-style: italic;
    opacity: 0.8;
}

.card .time {
    width: 30%;
    color: var(--color-main);
    font-family: "Big Noodle";
    font-size: 48px;
    z-index: 10;
}

/* Footer */
footer {
    background-color: var(--color-bg-transparent);
    backdrop-filter: blur(10px);
    margin-top: 30px;
    text-align: center;
    padding: 5px;
}

/* Helpers */

div[class^='panel-'] {
    /* every div that starts with class name "panel-" will have these parameters */
    padding: 15px;
}

.panel-bg {
    background-color: var(--color-bg-transparent);
}

.br-10 {
    border-radius: 10px;
}

.bottom-20 {
    margin-bottom: 20px;
}

.panel-30 {
    width: 30%;
}

.panel-50 {
    width: 50%;
}

.panel-70 {
    width: 70%;
}

.panel-100 {
    width: 100%;
}

.flex-container {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-center-vertical {
    display: flex;
    align-items: center;
}

.flex-center-horizontal {
    display: flex;
    justify-content: center;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-gray {
    color: #aaa;
}

.text-main {
    color: var(--color-main);
}

.text-big {
    font-size: 58px;
}

.text-small {
    font-size: 14px;
}

.text-title {
    font-family: "Big Noodle";
}


/* Animations */
@keyframes blinkHighlight {
    0% {
        filter: brightness(1.5)
    }

    /* light yellow */
    100% {
        filter: brightness(1)
    }
}

.blink {
    animation: blinkHighlight 1s ease-out;
}

/* Responsivity media queries */
@media (max-width: 1400px) {
    .panel-70 {
        width: 60%;
    }

    .panel-30 {
        width: 40%;
    }

}

@media (max-width: 960px) {
    nav {
        margin-top: 0;
        border-radius: 0;
    }

    nav .logo {
        width: 48px;
        height: 48px;
    }

    #splash .square {
        width: 200px;
        height: 200px;
        opacity: 0.8;
    }

    #splash .text {
        height: 150px;
    }

    #splash {
        height: 350px;
    }

    #wrapper {
        width: 100%;
    }

    .card {
        width: 90%;
    }

    .flex-container,
    .flex-center {
        flex-direction: column;
    }

    .panel-30,
    .panel-50,
    .panel-70 {
        width: 100%;
    }

    .hide-phone {
        display: none;
    }

    .text-center-phone {
        text-align: center;
    }
}

@media (min-width: 961px) {
    .hide-desktop {
        display: none;
    }
}