@import url('https://fonts.googleapis.com/css?family=Russo+One&display=swap');
@import url('https://fonts.googleapis.com/css?family=PT+Serif+Caption&display=swap');


body {
    overflow-x: hidden;
    font-family: 'Russo One', sans-serif;
    color: #505962
}


.offset::before {
    height: 3.9rem;
    margin-top: 0rem;
    content: "";
    display: block;
}

/*--- Navbar ---*/
.navbar {
    text-transform: uppercase;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .1rem;
    background: rgba(0, 0, 0, .6) !important;
}

.navbar-brand img {
    height: 2rem;
}

/*.navbar-nav {
    padding-right: .7rem;
}*/

.navbar-dark .navbar-nav .nav-link {
    color: white;
    padding-top: .8rem;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
    color: red;
}

/*--- Slider ---*/
.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    position: absolute;
    top: 38%;
    text-transform: uppercase;
    width: 100%;
    right: 0;
    left: 0;
}

.carousel-caption h1 {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: .3rem;
    text-shadow: .1rem .1rem .8rem black;
    padding-bottom: 1rem;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 500;
    text-shadow: .2rem .1rem .8rem black;
    padding-bottom: 1rem;
}


.carousel-caption h3 {
    font-size: 2rem;
    text-shadow: .1rem .1rem .5rem black;
    padding-bottom: 1.6rem;
}

.btn-lg {
    border-width: medium;
    border-radius: 1.1rem;
    font-size: 1.1rem;
    color: black;
    transition: .5s ease;
    background-color: white;
}

.btn-lg:hover {
    background-color: red;
    color: white;
}

/*========== CS ====================*/
.narrow {
    width: 75%;
    margin: 0 auto;
    padding-top: 2rem;
}

.btn-md {
    border-width: medium;
    border-radius: 0;
    padding: .6rem 1.1rem;
    text-transform: uppercase;
    margin: 1rem;
}

.jumbotron {
    border-radius: 0;
    padding: 3rem 0 2rem;
    margin-bottom: 0;
}

h3.heading {
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 1.9rem;
}

.heading-underline {
    width: 25rem;
    height: .2rem;
    background-color: red;
    margin: 0 auto 0rem;
}

/*======= teams ========*/

.teams {
    overflow: hidden;
    background-color: black;
}

.teams img {
    max-width: 100%;
    transition-duration: .5s;
}

.row.no-padding [class*=col-] {
    padding: 0;
}

.teams:hover img {
    filter: blur(0.5px);
    opacity: .8;
    transform: scale(1.1);
    cursor: pointer;
}

.teams:hover .teamname {
    opacity: .8;
}

.teamname {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    letter-spacing: .2rem;
    text-shadow: .1rem .1rem .8rem black;
    text-transform: uppercase;
    color: white;
    position: absolute;
    opacity: 0;
    transition-duration: 1s;
}

/*=======DRIVERS=========*/

.card {
    margin: 2rem;
    border-radius: 20px;
}

.card .card-body {
    border-radius: 20px;
}

.card img {
    border-radius: 15px;
}

.card img {
    border-radius: 15px;
}

.row h6 {
    color: red;
}

/*======FOOTER=========*/

footer {
    background-color: #40474e;
    color: white;
    padding: 2rem 0 3rem;
}

footer img {
    height: 3rem;
    margin: 1.5rem 0;
}

footer a {
    color: white;
}

footer svg.svg-inline--fa {
    font-size: 1.6rem;
    color: white;
    margin: 1.2rem .5rem 0 0;
}

footer svg.svg-inline--fa:hover {
    color: red;
}

hr.socket {
    border-top: .2rem solid #666b71;
    width: 100%;
}


.info {
    font-size: 1.5rem;
}

/*======= popup =========*/
.popup {
    font-family: 'PT Serif Caption', sans-serif;
    font-weight: bold;
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .8);
}

.popup-content {
    background-color: rgba(255, 255, 255, .8);
    margin: 7% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.popup-content img {
    width: 50%;
    height: 50%;
    border-radius: 3rem;
}

.close {
    color: red;
    text-align: right;
    font-size: 28px;
    font-weight: bold;
}

@media (max-width: 767px) {
    .carousel-caption h1 {
        font-size: 2.3rem;
        letter-spacing: .1rem;
        padding-bottom: .5rem;
    }

    .carousel-caption h2 {
        font-size: 2rem;
        letter-spacing: .1rem;
        padding-bottom: .5rem;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .btn-lg {
        font-size: 1rem;
    }

    .teams h1 {
        font-size: 1.2rem;
        letter-spacing: .1rem;
    }

    .narrov h1 {
        font-size: 1.5rem;
    }

    p.lead {
        font-size: 1rem;
    }

    .popup-content img {
        width: 80%;
        height: 80%;
    }
}

#main-info h2 {
    font-family: 'Russo One';
    opacity: .7;
    color: red;
}

#main-info span {
    color: red;
}

#main-info div {
    margin-top: 5%;
}

#main-info {
    font-family: 'PT Serif Caption';
    font-weight: bold;
}


/*===== TEST =====*/
.question {
    font-family: 'PT Serif Caption';
    font-weight: bold;
    font-size: 40px;
    font-weight: bold;
    margin: 20px 0;
}

.answer {
    font-family: 'PT Serif Caption';
    font-weight: bold;
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.answer li {
    background: #f1f1f1;
    margin: 5px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

.answer li:hover {
    background: #cecece;
    font-weight: bold;
}

.answer li:active {
    background: #8b8b8b
}

.result {
    font-family: 'PT Serif Caption';
    font-weight: bold;
    margin: 0 2rem;
    padding: 1rem 0;
    font-size: 1.2rem;
    line-height: 150%;
}

.result-img {
    max-width: 600px;
    display: block;
    margin: 10px auto;
}

.reload-button {
    display: block;
    margin: 20px auto;
    background: #c0c0c0;
    border: none;
    border-radius: 6px;
    padding: 10px 25px;
    min-width: 200px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
}

.reload-button:hover {
    background: #acacac;
}

#device {
    font-family: 'PT Serif Caption';
    font-weight: bold;
    padding-top: 5%;
}

#device h2 {
    font-family: 'Russo One';
    opacity: .7;
    color: red;
}

#teaminfo {
    margin-top: 3rem;
}

#forma {
    font-size: 25px;
}