@import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 14px;
}

body {
    background: linear-gradient(135deg, #E3E3E3 0%, #9a9a9a 100%);
    display: grid;
    place-items: center;
    font-weight: 450;
    opacity: 1;
}

.none {
    display: none;
}

.resume {
    margin-top: 20px;
    width: 800px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}

#print {
    background-color: #fff;
    padding: 30px 50px;
    height: 1120px; 
    overflow: hidden; 
}

.head {
    display: grid;
    grid-template-columns: 3fr 1.5fr;
}

.head .main .name {
    font-size: 55px;
    font-family: 'Raleway', sans-serif;
}

.head .main span:nth-child(2) {
    color: rgb(100, 100, 100);
    font-size: 55px;
    font-family: 'Raleway', sans-serif;
    margin-left: 5px;
}

.head .main .post {
    font-family: 'Barlow', sans-serif;
}

.head .contacts {
    text-align: right;
    padding-top: 7px;
}

.head .contacts .content {
    font-weight: 500;
    padding-right: 5px;
}

.head .contacts .symbol {
    margin-right: 5px;
    font-size: 15px;
    width: 17px;
    height: 17px;
}

.line {
    height: 0.5px;
    background-color: rgb(87, 87, 87);
    margin: 25px 0;
    margin-bottom: 50px;
}

.mainbody {
    display: grid;
    grid-template-columns: 10fr 1fr 17fr;
    height: 900px; 
}

.mainbody .border {
    background-color: rgb(87, 87, 87);
    width: 3px;
    opacity: 2;
}

.mainbody .rightside {
    padding-left: 15px;
}

.title {
    font-weight: 700;
    font-size: 18px;
    border: none;
    padding-bottom: 3px;
    border-bottom: 2px greenyellow solid;
}

.skill {
    margin-bottom: 6px;
}

button {
    margin: 15px 0;
}

.language {
    margin-bottom: 6px;
}

.language span:nth-child(odd) {
    font-weight: 700;
}

.edublock {
    margin-bottom: 10px;
}

.edublock .head {
    font-weight: 700;
    font-size: 17px;
}

.navbtn {
    position: fixed;
    top: 40%;
    left: 4%;
    transform: translate(-40%, -4%);
    height: 60px;
    width: 60px;
    border-radius: 50%;
    border: #fff 2px solid;
    transition: 300ms ease-in-out;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
}

.navbtn:nth-child(2) {
    top: 50%;
    left: 4.4%;
    transform: translate(-50%, -4.4%);
}

.navbtn:nth-child(3) {
    top: 60%;
    left: 4.8%;
    transform: translate(-60%, -4.8%);
}

.navbtn:hover {
    background-color: black;
    color: #fff;
    border: #000 2px solid;
    height: 65px;
    width: 65px;
}

.input-checkbox {
    margin-right: 10px;
}

.education-head {
    font-weight: 700;
    font-size: 17px;
}

@media screen and (max-width: 480px) {
    .resume {
        width: 95%;
        margin-top: 10px;
        padding: 15px;
    }

    #print {
        padding: 10px;
        height: auto;
    }

    .head .main .name {
        font-size: 28px;
    }

    .head .main span:nth-child(2) {
        font-size: 28px; 
    }

    .head .main .post {
        font-size: 13px; 
    }

    .head .contacts {
        text-align: center;
        font-size: 11px; 
    }

    .mainbody {
        display: flex;
        flex-direction: column;
        height: auto; 
    }

    .mainbody .border {
        display: none; 
    }

    .mainbody .rightside {
        padding-left: 0;
    }

    .title {
        font-size: 14px; 
    }

 .experience, .skills, .projects {
        padding: 3px;
        margin-bottom: 4px;
    }


    .section-container {
        padding: 5px; 
    }

    .section-container label {
        font-size: 12px;
    }

    .section-container input,
    .section-container button {
        width: 100%;
        font-size: 12px; 
        margin-bottom: 5px;
        padding: 5px 8px; 
    }

    .nav {
        position: fixed;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center; 
        align-items: center;
        gap: 50px; 
        width: auto;
        z-index: 1000; 
    }
    
    .navbtn {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        height: 50px;
        width: 50px;
        border-radius: 50%;
        border: #fff 2px solid;
        transition: 300ms ease-in-out;
        box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #000;
        color: white;
    }
    
    .navbtn:hover {
        height: 55px;
        width: 55px;
    }

    .footer-buttons {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
    }
    
    .footer-buttons .navbtn {
        height: 45px;
        width: 45px;
        background-color: gray; 
    }
    
  
    .content {
        display: inline-block;
        word-break: break-all; 
        overflow-wrap: break-word; 
        max-width: 100%; 
        font-size: 14px;
    }
    
    .symbol {
        display: inline-block;
        vertical-align: middle;
        margin-left: 5px;
    }
    
    .navbtn[href] {
        display: none;
    }
    
    .edublock, .skill, .language, .achieve {
        font-size: 14px;
        padding: 5px; 
    }
    @media print {
        h1, h2, h3 { 
            page-break-after: avoid; 
            page-break-inside: avoid; 
        }
    
        .section, .content-block {  
            page-break-inside: avoid; 
        }
    
        .new-page {
            break-before: page; 
        }
    }
    
}
