/* Standard */
* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: white;
    margin: 0;
    min-height: 100vh;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.huvudtext {
    margin: 20px;
    font-size: 20px;
    border-bottom: 3px solid #c90000;
}

.huvudtext h1 {
    margin: 10px;
    text-align: center;
}

/* Navbar */
.navbar {
    font-size: 18px; 
    background-color: #990000;
    background-image: linear-gradient(147deg, #990000 0%, #ff0000 74%);
    padding-bottom: 10px;
}

.main-nav {
    list-style-type: none;
    display: none;
}

.nav-links, .logo {
    text-decoration: none;
    color: white
}

.main-nav li {
    text-align: center;
    margin: 15px auto;
}

.logo {
    display: inline-block;
    font-size: 22px;
    margin-top: 10px;
    margin-left: 50px;
}

.logo img {
    height: 25px;
}

.navbar-toggle {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    color: white;
    font-size: 25px;
}

.activeMenu {
    display: block;
}

.active {
    border-bottom: 2px solid white;
}

.nav-links:hover {
    border-bottom: 2px solid white;
}

/* Navbar Stor */
@media screen and (min-width: 768px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        padding-bottom: 0;
        height: 70px;
        align-items: center;
    }

    .main-nav {
        display: flex;
        margin-right: 120px;
        flex-direction: row;
        justify-content: flex-end;
    }

    .main-nav li {
        margin: 0;
    }

    .nav-links {
        margin-left: 50px;
    }

    .logo {
        margin-top: 0;
        margin-left: 120px;
    }
    
    .logo img {
        height: 65px;
        margin-top: 5px;
    }

    .navbar-toggle {
        display: none;
    }

    .logo:hover, .nav-links:hover {
        color: rgba(255, 255, 255, 1);
    }
}

/* Footer */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(147deg, #990000 0%, #ff0000 74%);
    color: white;
    text-align: center;
}

footer p {
    font-size: 18px;
    margin: 25px;
    color: white;
    text-decoration: none;
}

footer a {
    color: white;
    text-decoration: none;
}

/* Standard & Footer Liten */
@media screen and (max-width: 767px) {
    .huvudtext {
        margin: 20px;
        font-size: 15px;
    }
    
    footer p {
        font-size: 14px;
        margin: 20px;
    }
    
}

/* Start Sida */
#startbild {
    margin-top: 30px;
}

#startbild img {
    margin: auto;
    display: block;
    width: 60%;
}

.quote {
    font-style: italic;
}

#text p {
    font-size: 17px;
    line-height: 1.3em;
    margin: 20px; 
}

/* Animation */
#startbild:hover {
    animation: spin 1s linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Spela Sida */
.spelsida {
    position: relative;
    border: 3px solid #c90000;
    border-radius: 10px;
    min-height: 170px;
    margin: 40px;
}

.spelsida:hover {
    background: #ff0000;
    transition: 0.5s ease;
}

.bildsida {
    width: 25%;
    position: absolute;
    right: 2em;
    top: 1em;
}

.pokerkort {
    height: 150px;
    position: absolute;
    left: 1em;
    top: 8px;
}

.titelsida {
    position: absolute;
    left: 150px;
    font-size: 1.5em;
    color: black;
    text-decoration: none;
}

.infosida {
    position: absolute;
    left: 150px;
    top: 3em;
    font-style: italic;
    text-decoration: none;
    color: black;
    max-width: 650px;
}

@media screen and (max-width: 1150px) {
    .infosida {
        max-width: 500px;
    }
    .bildsida {
        width: 20%;
    }     
}

@media screen and (max-width: 520px) {
    .spelsida {
        min-height: 200px;
        margin: 20px;
    }

    .bildsida {
        width: 20%;
        right: 2em;
        top: 1em;
    }

    .pokerkort {
        height: 100px;
        top: 45px;
    }

    .titelsida {
        left: 30px;
        font-size: 1.1em;
    }

    .infosida {
        left: 80px;
        top: 3em;
        font-size: 15px;
    }    
}

/* Typer Sida */
#typerbild img {
    width: 50%;
    display: block;
    margin: auto;
}

#typertext p {
    line-height: 2em;
    margin: 10px;
}

#typertext a {
    text-decoration: none;
    color: black;
    font-style: italic;
    margin: 10px;
}

/* Regler Sida */
#reglerbild img {
    width: 50%;
    display: block;
    margin: auto;
}

#reglertext p {
    margin: 10px;
    line-height: 1.3em;
}

#reglertext a {
    text-decoration: none;
    color: black;
    font-style: italic;
    margin: 10px;
}
