* {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #313338;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow: scroll;
}

body > * {
    display: block;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}

.sidebar{
    background-color: #2B2D31;
}

main{
    background-color: #2B2D31;
}

@media (max-width: 1000px) {
    /* Estilos para dispositivos em modo retrato (altura maior que largura) */

    img{
        height: 10px;
    }

    body{
        display: block;
    }

    /* Sidebar */
    .sidebar {
        display: none;
        width: calc(100% - 40px);
        height: auto;
        margin: 20px;
        margin-top: 50px;
        border-radius: 10px;
    }

    main{
        display: none;
    }

    .aviso{
        display: block;
        width: 100%;
        height: 100%;
        text-align: center;
        font: 30px Arial;
        padding: 20px;
    }
}

@media (min-width: 1000px) {
    /* Estilos para dispositivos em modo paisagem (largura maior que altura) */

    .aviso{
        display: none;
    }

    body{
        /* colocar itens lado a lado*/
        display: flex;
    }

    /* Sidebar */
    .sidebar {
        width: 300px;
        height: auto;
        padding: 25px;
        margin: 30px;
        margin-top: 60px;
        border-radius: 10px;
    }

    .sidebar > div {
        width: 100%;
        height: auto;
        border-bottom: 2px solid #ffffff;
    }

    .sidebar > div:last-child {
        border-bottom: none;
    }

        /* Profile */
        .sidebar .profile {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-bottom: 20px;
        }

        .sidebar .profile img {
            width: 150px;
            height: 150px;
            border-radius: 10%;
            margin-bottom: 10px;
            box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
        }

        .sidebar .profile h1 {
            font-size: 20px;
            margin-bottom: 5px;
        }

        .sidebar .profile h2 {
            font-size: 16px;
            background-color: #5865F2;
            padding: 10px;
            margin: 10px;
            margin-bottom: 20px;
            border-radius: 10px;
        }

        .sidebar .profile .social-items{
            height: 60px;
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            margin-left: 40px;
        }

        .sidebar .profile .social-items .social{
            height: 100%;
            width: 100%;
            display: inline-block;
        }

        .sidebar .profile .social-items .social img{
            background-color: #ffffff;
            border-radius: 20%;
            height: 100%;
            width: 50px;
            margin: 0px 5px;
        }

        /* Contact */
        .sidebar .contact {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-bottom: 10px;
        }

        .sidebar .contact .contact-item {
            width: 100%;
            height: 100px;
            display: flex;
            flex-direction: row;
            justify-content: left;
            margin-bottom: 0px;
        }

        .sidebar .contact .contact-item img{
            background-color: #ffffff;
            border-radius: 20%;
            border: 2px solid #ffffff;
            height: 50px;
            width: 50px;
            margin: 25px 10px 0px 0px;
        }

        .sidebar .contact .contact-item h3{
            margin: 25px 0px 0px 0px;
        }

        .sidebar .contact .contact-item p{
            margin: 0px 0px 25px 0px;
            font-size: 14px;
        }

        /* Languages */
        .sidebar .language {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            padding: 10px;
        }

        .sidebar .language a{
            text-decoration: none;
            font: bold 30px Arial;
            color: #ffffff;
            display: flex;
            flex-direction: row;
            margin: 10px;
        }

    /* Main */
    main{
        width: calc(100% - 460px);
        height: auto;
        margin: 60px 30px 30px 0px;
    }

        /* Nav */
        main nav{
            background-color: #5865F2;
            width: 100%;
            height: 50px;
            border-top-right-radius: 10px;
            border-top-left-radius: 10px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        main nav ul{
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            margin: 0px;
            padding: 0px;
        }

        main nav li{
            list-style: none;
            height: 100%;
            width: calc(100% / 3);
            margin: 0px;
            padding: 0px;
            display: inline-block;
        }

        main nav button:hover{
            background-color: #ffffff;
            color: #5865F2;
            cursor: pointer;
        }

        main nav button{
            height: 100%;
            width: 100%;
            border: none;
            font: 20px Arial;
            border-top-right-radius: 10px;
            border-top-left-radius: 10px;
        }

        main nav button[data-state = "inactive"]{
            background-color: #5865F2;
            color: #ffffff;
        }

        main nav button[data-state = "active"]{
            background-color: #ffffff;
            color: #5865F2;
        }

        /* main-inner */
        main .main-inner[data-state = "active"]{
            display: flex;
        }

        main .main-inner[data-state = "inactive"]{
            display: none;
        }

        main .main-inner{
            width: calc(100% - 40px);
            height: auto;
            margin: 20px;
            display: flex;
            flex-direction: column;
            align-items: left;
            font: 20px Arial;
        }

        main .main-inner h2{
            width: 200px;
            background-color: #5865F2;
            font: 20px Arial;
            text-align: center;
            padding: 10px;
            margin: 10px;
            margin-bottom: 20px;
            border-radius: 10px;
        }

            /* About */
            main #about ul{
                width: 100%;
                height: auto;
                flex-direction: row;
                margin: 0px;
                padding: 0px;
            }

            main #about li{
                display: inline-block;
                height: 150px;
                width: 150px;
                margin: 20px;
                background-color: #ffffff;
                border-radius: 10px;
                box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
                text-align: center;
                line-height: 150px;
            }

            main #about ul {
                display: flex;
                flex-wrap: wrap;
                gap: 20px;
            }

            main #about li {
                display: flex;
                align-items: center;
                justify-content: center;
                height: 120px;
                width: 120px;
                background-color: #1E1F22;
                border-radius: 12px;
                box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
            }

            main #about li {
                transition: 0.2s ease-in-out;
            }

            main #about li:hover {
                transform: translateY(-5px);
                box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.6);
            }

            main #about li i {
                font-size: 50px;
            }

            /* Resume */

            main #resume ul{
                width: 100%;
                height: auto;
            }

            main #resume li{
                margin: 10px;
            }

            /* Projects */
            .technologies i {
                font-size: 40px;
            }
}