.mobile{
    display: none;
}
.nameSite {
    font-family: 'Press Start 2P';
    text-align: center; 
    text-transform: uppercase;
    font-size: 30px;
    margin-top: 20px;
    color: var(--header-text-color);
}

nav a:hover {
    color: var(--header-text-color); 
}

nav a:active {
    color: rgb(71, 27, 80);
}
nav a{
    font-size: 15px;
}

header {
    grid-area: header;
    position: relative;
    border: 2px solid var(--border-color);
    background-color: var(--bg-sec-color);
    margin: 0;
    border-radius: 8px;
    margin-left: 10%;
    margin-right: 10%;
}
nav ul{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 0px;
}
.menu-link{
    cursor: pointer;
    display: block;
    padding: 10px 20px;
    font-size: 16px;
}

@media screen and (max-width: 767px) {
    .mobile{
        display: block;
    }
    header {
        max-width: 100%;
        position: relative;
        border: 2px solid var(--border-color);
        background-color: var(--bg-sec-color);
        margin: 0;
        padding-bottom: 17px;
        border-radius: 8px;
        padding: 7px 0;
        z-index: 1000;
    }
    nav ul{
        display: none;
    }
    .nameSite {
        margin: 2px;
        font-family: 'Press Start 2P';
        text-align: center; 
        text-transform: uppercase;
        font-size: 14px;
        color: var(--header-text-color);
    }
    p{
        font-size: inherit;
    }
    .nameSite img{
        display: none;
    }
    .menu-link  {
        display: none;
    }
    .menu-items {
        display: none;
    }
    .menu-toggle{
        display: none;
    }
    .menu-toggle:checked + .burger-icon + .menu-items {
        display: grid;
        grid-template-rows: repeat(5,10%);
    }
    .menu-items {
        border-top: none;
        border-left: 2px solid var(--border-color);
        border-right: 2px solid var(--border-color);
        border-bottom: 2px solid var(--border-color);        
        margin-left: 4px;
        height: 100%;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        background-color: var(--bg-sec-color);
        z-index: 1000;
        gap:20px;
    }
    .burger-icon {
        position: absolute;
        right: 25px;
        top:29px;
        width: 14px;
        height: 30px;
        cursor: pointer;
    }
    .burger-icon::before, .burger-icon::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background-color: var(--header-text-color);
        transition: all 1s;
    }
    .menu-toggle:checked + .burger-icon::before {
        /* transform: rotate(-45deg); */
        transform: rotate(-45deg);
        background-color: #9e1604;
        top:0;
    }
    .menu-toggle:checked + .burger-icon::after {
        /* transform: rotate(45deg); */
        transform: rotate(45deg);
        top:0;
        
        background-color: #9e1604;
    }
    .burger-icon::after {
        top:-40%;
    }
    .burger-icon::before{
        top:40%;
    }
    .burger-icon span {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background-color: var(--header-text-color);
        top: 0%;
        transition: opacity .2s ease-in-out;
        opacity: 1;
    }
    .menu-toggle:checked + .burger-icon span {
        opacity: 0;
    }
    
    
}

@media screen and (min-width: 768px) and (max-width: 1000px){
    #tablet-header{
        margin-bottom: 1.5rem;
        display: grid;
        grid-template-columns: repeat(2,40%);
        grid-template-areas: 
        "e1 e2"
        "e3 e4"
        "e5 e5";
        align-items: center;
        justify-content: center;
        justify-items: center;
        gap: 15px;
    }
    #pc-head{
        display: none;
    }
    #for-grid{
        grid-area: e5;
        width: 32rem !important;
    }
    .nameSite{
        margin-top: 0;
    }
    #tablet-header .btn4 {
        width: 15rem;
    }
    header .mobile{
        display: none;
    }
    header #pc-head{
        display: none;
    }
    
}
@media screen and (min-width: 1001px) and (max-width: 1610px){
    #pc-head{
        margin-bottom: 1.5rem;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-template-areas: 
        "e1 e2 e3"
        "e4 . e5";
        align-items: center;
        justify-content: center;
        justify-items: center;
        gap: 15px;
        align-items: center;
        justify-content: center;
        justify-items: center;
    }
    #for-grid{
        grid-area: e5;
    }
    .nameSite{
        margin-top: 0;
    }
    header .mobile{
        display: none;
    }
    img{
        max-width: 100%;
    }
}
@media screen and (min-width: 1001px) and (max-width: 1440px){
    header{
        margin-left: 5%;
        margin-right: 5%;
    }
    main {
        grid-area: main;
        padding-left: 15px;
        margin-left: 7%;
        margin-right: 7%;
    }
}