html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
    font-family: 'Book Antiqua', sans-serif;
    background-color: #6e5353;
    color: #A8A8A8;
    font-style: bold;
}

.header-button {
    display: inline-flex; /* Muuttaa linkin nappimaiseksi */
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Poistaa alleviivauksen */
    background-color: #7D1128;
    color: #A8A8A8;
    height: 50px;
    width: 19vw;
    cursor: pointer;
    font-weight: bold;
    font-size: 22px;
    border: none;
    text-align: center;
}

.header-button:hover {
    background-color: #7D1128;
}

.game-thumbnail{
    width: 100%;
}

.contact-box{
    display: inline-block;
    background-color: #7D1128;
    border-style: solid;
    border-width: 5px;
    border-color: black;
    width: 20%;
    margin-left: 10%;
    margin-top: 5%;
    justify-items: center;

    cursor: pointer;
}

.div-headerthing{
    margin-top: 10vh;
    margin-left: 12.5vw;
    background-color: #7D1128;
    width: 75vw;
    height: 30vh;
    align-content: center;
}

.skills-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.div-about-me{
    display: flex;
    justify-content: flex-start;  /* Pitää laatikot vasemmalla */
    align-items: center;  /* Kohdistaa pystysuunnassa keskelle */
    gap: 5%;  /* Väli ison ja pienten laatikoiden välillä */
    margin-left: 5%;
    margin-top: 10%;
}

.big-box {
    width: 35%;
    height: 700px;
    border-style: solid;
    border-width: 5px;
    border-color: black;
    background-color: #7D1128;
}

.small-box {
    width: 100%;
    height: 45%;
    border-style: solid;
    border-width: 5px;
    border-color: black;
    background-color: #7D1128;
}

.small-boxes{
    display: flex;
    flex-direction: column;
    width: 25vw;
    height: 80vh;
    margin-left: 10;
}

.div-skills{
    display: inline-block;
    border-style: solid;
    border-width: 5px;
    border-color: black;
    background-color: #7D1128;
    width: 40vw;
    height: 40vh;
    text-align: center;
}

.div-game{
    display: inline-block;
    margin-top: 5%;
    width: 70vw;
    height: 50vh;
    background-color: #7D1128;
    border-style: solid;
    border-width: 5px;
    border-color: black;
}

.div-game-thumbnail{
    display: inline-block;
    width: 30%;
    height: 100%;
    margin-left: 3%;
    cursor: pointer;
}

.div-game-info{
    display: inline-block;
    width: 10%;
    height: 120%;
    font-size: 15px;
    overflow: auto;
}

.div-game-description{
    display: inline-block;
    width: 55%;
    height: 125%;
    overflow: auto;
    font-size: 17px;
}

.div-game-content{
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 55%;
}

.game-name{
    font-size: 30px;
    font-weight: bold;
}

h1{
    text-align: center;
}

.label{
    font-weight: bold;
}

.value{
    
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal .game-img{
    width: 90%;
    height: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 5%;
}

.carousel-button.next {
    right: 5%;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.phone-only{
    display: none;
}

@media (max-width: 600px){
    body{
        background-color: white;
    }

    .div-game{
        width: 90vw;
        height: 70vh;
        margin-left: 5% !important;
    }

    .div-game-info{
        width: 20%;
    }

    .div-game-description{
        width: 45%;
    }

    .div-headerthing{
        margin-left: 0;
        width: 100vw;
        height: 40vh;
    }

    h5{
        font-size: 10px;
        margin-left: 0% !important;
    }

    .phone-only{
        display: block;
    }

    .small-boxes{
        width: 90vw;
        height: 80vh;
        margin-left: 5%;
    }

    .div-about-me{
        display: block;
        width: 80vw;
    }

    .big-box{
        width: 100% !important;
        height: 110vh !important;
    }

    .small-box{
        width: 80% !important;
        height: 450h !important;
        margin-top: 5%;
    }

    .contact-box{
        font-size: 10px;
    }
}

@media (min-width: 601px) and (max-width: 767px){
    .div-game{
        width: 90vw;
        height: 70vh;
        margin-left: 5% !important;
    }

    h5{
        font-size: 10px;
        margin-left: 0% !important;
    }

    .div-headerthing{
        margin-left: 0;
        width: 100vw;
        height: 40vh;
    }

    .phone-only{
        display: block;
    }

    .small-boxes{
        width: 90vw;
        height: 80vh;
        margin-left: 5%;
    }

    .div-about-me{
        display: block;
        width: 80vw;
    }

    .big-box{
        width: 100% !important;
        height: 110vh !important;
    }

    .small-box{
        width: 80% !important;
        height: 450h !important;
        margin-top: 5%;
    }

    .contact-box{
        font-size: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991px){
    .div-game{
        width: 90vw;
        height: 70vh;
        margin-left: 5% !important;
    }

    .small-boxes{
        width: 90vw;
        height: 80vh;
        margin-left: 5%;
    }

    .div-about-me{
        display: block;
        width: 80vw;
    }

    .big-box{
        width: 100% !important;
        height: 110vh !important;
    }

    .small-box{
        width: 80% !important;
        height: 450h !important;
        margin-top: 5%;
    }

    .contact-box{
        font-size: 12px;
    }
}

@media (min-width: 992px) and (max-width: 1199px){
    .div-game{
        height: 70vh;
    }

    .small-boxes{
        width: 90vw;
        height: 80vh;
        margin-left: 5%;
    }

    .div-about-me{
        display: block;
        width: 80vw;
    }

    .big-box{
        width: 70% !important;
        height: 100vh !important;
    }

    .small-box{
        display: inline-block;
        width: 40% !important;
        height: 450h !important;
        margin-top: 5%;
        margin-left: 40%;
    }
}

@media (min-width: 1200px){
}