/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animazione caricamento pagina */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Altro CSS */
.avviso-width {
    display: none;
}
.avviso-height {
    display: none;
}


body {
    background-color: #000;
    color: lime;
    margin-top: 100px;
}
.body {  /*Volontariamente con il punto*/
    width: 100%;
    padding: 5px;
    padding-bottom: 100px;
}
footer {
    background-color: #333;
    color: lime;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 5px;
}
button {
    background-color: rgb(0, 220, 0);
    color: #000;
    border: #000 solid 2px;
    cursor: pointer;
    padding: 5px;
    height: 100%;
    font-size: 150%;
}
hr {
    margin-top: 20px;
    margin-bottom: 20px;
}
li {
    margin: 30px;
    font-size: 25px;
    text-decoration: underline;
}
a {
    text-decoration: none;
    color: rgb(0,210,0);
}
main {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
}
header {
    background-color: #222;
    color: lime;
    border-bottom: #000 solid 2px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 9999;
}
.btn-homepage{
    display: block;
    position: absolute;
    color: #000;
    top: 0;
    left: 0;
    text-align: center;
    font-size: 10px;
    width: 80px;
    height: 80px;
    padding: 10px;
}
.btn-homepage img{
    display: block;
    cursor: pointer;
    border: #000 solid 4px;
    border-radius: 15px;
    height: 60px;
}
.btn-homepage img:hover{
    transition: 0.5s;
    transition-delay: 0.1s;
    border: #0f0 solid 1px;
}
.txt-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-left: 100px;
    padding: 10px;
    font-size: 40px;
}
.btn-header {
    position: absolute;
    height: 100%;
    width: 50%;
    top: 0;
    right: 0;
    text-align: right;
}
.btn-header button {
    width: 150px;
    font-size: 20px;
    border-radius: 5px;
    transition: 300ms;
}
.btn-header button:hover {
    scale: 0.97;
}

.home_category,
.category {
    background-color: #000;
    color: lime;
    width: 100%;
    height: max-content;
    display: none;
}

.titolo-categoria {
    font-weight: bold;
    font-size: 30px;
}

#Home {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    text-align: center;
    background-image: url(./img/background/minecraft.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-attachment: fixed;
    background-position: 0 0;
    padding-top: calc(50vh - 150px);
    transition: 0.8s;
    transition-delay: 0.2s;
}
#Home .text {
    margin: 50px 0;
}
.btn-home {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}
.select-category-text {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    padding: 5px;
}
.btn-home button {
    width: 80%;
    max-width: 400px;
    margin: 10px auto;
    border-radius: 5px;
    transition: 300ms;
}
.btn-home button:hover {
    scale: 1.03;
}


/*----------------- Minecraft -----------------*/
.videogiochi-minecraft {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #222;
    color: #0f0;
    border: #000 solid 1px;
    border-radius: 15px;
    font-size: 20px;
    width: 300px;
    margin: 10px;
    padding: 10px;
    transition: 500ms;
}
.videogiochi-minecraft:hover {
    border: rgb(150, 255, 150) solid 1px;
}
.img-minecraft {
    display: block;
    width: 96%;
    height: auto;
    margin: 0 2%;
    margin-bottom: 10px;
    border: #000 solid 4px;
    border-radius: 20px;
}
.titolo-videogioco-minecraft {
    color: rgb(100, 255, 100);
    font-family: Arial;
    font-size: 20px;
}
.btn-minecraft-non-disponibile,
.btn-minecraft {
    background-color: rgb(0, 150, 0);
    font-size: 20px;
    width: 40%;
    height: 40px;
    border-radius: 10px;
    padding: 5px;
    margin-top: 10px;
    transition: 300ms;
}
.btn-minecraft:hover {
    background-color: #0f0;
    scale: 1.03;
}
.btn-minecraft-non-disponibile:hover {
    background-color: #888888;
    text-decoration: line-through #f00 10%;
}
.dati-mondi-minecraft {
    color: #ffffff60;
    font-weight: bold;
    font-size: 18px;
    margin: 5px;
}
.txt-under-videogiochi-minecraft {
    display: none;
}
.videogiochi-minecraft div hr {
    display: none;
}

/*----------------- Scratch -----------------*/
.img-scratch {
    display: block;
    width: auto;
    height: auto;
    border: #000 solid 4px;
    transition: 500ms;
}
.img-scratch:hover {
    border: #0f0 solid 4px;
}
.btn-videogiochi-scratch {
    background-color: #000;
    width: 300px;
    height: 230px;
}
.videogiochi {
    text-align: center;
    margin-top: 20px;
}
.titolo-categoria-scratch {
    font-size: 30px;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 20px;
}
.frame-videogiochi {
    background-color: #000;
    position: unset fixed;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.frame-container {
    position: unset fixed;
    min-width: 300px;
    width: 30%;
    height: 200px;
    margin-bottom: 20px;
    margin-left: 15px;
    margin-right: 15px;
}
.frame {
    width: 100%;
    height: 100%;
    border: none;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}
.modal-content {
    background-color: #fefefe;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    height: 90%;
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 50px;
    font-weight: bold;
    color: #000;
    background-color: #fff;
    border-radius: 20px;
}

/*----------------- Roblox -----------------*/
.videogiochi-roblox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #222;
    color: lime;
    border: #000 solid 2px;
    border-radius: 20px;
    font-size: 40px;
    width: 200px;
    margin: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: 500ms;
}
.videogiochi-roblox:hover {
    border: #0f0 solid 2px;
}
.img-roblox {
    width: 100%;
    height: auto;
    border: #000 solid 2px;
    border-radius: 20px;
}
.txt-videogiochi-roblox {
    font-size: 20px; 
}



/*--------------------------------------------------Scalatura width----------------------------------------------*/
@media only screen and (max-width: 1500px) {
    #Home div{
        scale: 0.9;
    }
}
@media only screen and (max-width: 1300px) {
    #Home{
        background-position: 0 100px;
    }
}
@media only screen and (max-width: 1220px) {
    .titolo-videogioco-minecraft{
        font-size: 24px;
    }
}
@media only screen and (max-width: 1000px) {
    .btn-header button {
        width: 100px;
        font-size: 15px;
    }
    #Home {
        background: none;
    }
    .titolo-videogioco-minecraft {
        font-size: 20px;
    }
    .txt-under-videogiochi-minecraft {
        display: none;
    }
    hr {
        display: none;
    }
}
@media only screen and (max-width: 800px) {
    header {
        height: 70px;
        padding: 5px;
    }
    .btn-homepage{
        cursor: default;
        width: 70px;
        height: 70px;
    }
    .btn-homepage img{
        height: 50px;
        cursor: pointer;
        border: #000 solid 3px;
        border-radius: 10px;
    }
    .txt-header{
        height: 50%;
        font-size: 25px;
        margin-left: 80px;
    }
    button {
        font-size: 100%;
    }
    .btn-home {
        font-size: 20px;
    }
    .btn-header {
        width: 100%;
        height: 30px;
        top: 40px;
    }
}
@media only screen and (max-width: 610px) {
    .titolo-categoria {
        font-size: 25px;
    }
    .copy {
        display: none;
    }
    .videogiochi-roblox {
        font-size: 30px;
        width: 150px;
    }
    .txt-videogiochi-roblox {
        font-size: 10px; 
    }
}
@media only screen and (max-width: 470px) {
    .btn-header {
        font-size: 14px;
    }
}
@media only screen and (max-width: 450px) {
    .btn-header {
        font-size: 13px;
    }
}
@media only screen and (max-width: 430px) {
    .btn-header {
        font-size: 12px;
    }
    .videogiochi-minecraft {
        max-width: 80%;
    }
}
@media only screen and (max-width: 400px) {
    .btn-header button {
        width: 25%;
        font-size: 10px;
    }
    .titolo-categoria {
        font-size: 20px;
    }
    .titolo-categoria-scratch {
        font-size: 20px;
        margin-top: 100px;
    }
}
@media only screen and (max-width: 360px) {
    .videogiochi-minecraft {
        width: 90%;
    }
}
@media only screen and (max-width: 310px) {
    footer {
        display: none;
    }
}
@media only screen and (max-width: 300px) {
    header, .txt-header, .btn-header, .body {
        display: none;
    }
    .avviso-width {
        display: block;
        background-color: #f00;
        color: #fff;
        text-align: center;
        padding: 10px;
    }
}

/*--------------------------------------------------Scalatura height----------------------------------------------*/
@media only screen and (max-height: 500px) {
    #Home {
        position: relative;
        background: none;
    }
}
@media only screen and (max-height: 200px) {
    header, .txt-header, .btn-header, .body {
        display: none;
    }
    .avviso-height {
        display: block;
        background-color: #f00;
        color: #fff;
        text-align: center;
        padding: 10px;
    }
}
