@font-face {
    font-family: "Inter";
    src: url("./fonts/Inter-Thin.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: 100; 
}
@font-face {
    font-family: "Inter";
    src: url("./fonts/Inter-ExtraLight.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: 200; 
}
@font-face {
    font-family: "Inter";
    src: url("./fonts/Inter-Light.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: 300; 
}
@font-face {
    font-family: "Inter";
    src: url("./fonts/Inter-Regular.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: normal; 
}
@font-face {
    font-family: "Inter";
    src: url("./fonts/Inter-Bold.ttf") format("truetype"); 
    font-style: normal; 
    font-weight: bold; 
}
body {
    margin: 0;
    padding: 0;
    background-color: rgb(240, 255, 240);
    max-height: 100vh;
    min-width: 1350px;
}
main {
    display: flex;
    flex-direction: column; 
}
.main_nav {
    display: flex;
    justify-content: end;
    margin-right: 12%;
    grid-gap: 20px;
}
.tab {
    color: rgb(60, 100, 60);
    background-color: rgba(0, 100, 0, 0.3);
    font: 24px Inter;
    font-weight: bold;
    padding: 10px 25px;
    margin: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: skew(-15deg);
    opacity: 0.6;
    user-select: none;
}
.tab.selected {
    background-color: rgba(0, 100, 0, 0.4);
    opacity: 1;
}
.img_and_info {
    display: flex;
    height: 65%;
    background-color: rgb(96, 162, 96);
    grid-gap: 20px;
}
#avatar {
    width: 28%;
    height: min-content;
    margin-top: auto;
}
.all_info {
    display: flex;
    flex-direction: column;
    width: 70%;
    height: 60vh;
    min-height: 580px;
    max-height: 600px;
}
.info {
    display: none;
}
.info.selected {
    display: flex;
    flex-direction: column;
    margin: 30px;
    margin-top: 50px;
    margin-right: 100px;
}
.info.selected .subtitle {
    font: 32px Inter;
    font-weight: bold;
    margin: 10px;
    margin-bottom: 4px;
}
.subinfo {
    display: none;
}
.subinfo.selected {
    display: flex;
    flex-direction: column;
    color: rgb(20, 40, 20);
    font: 24px Inter;
    margin: 10px;
    margin-bottom: 40px;
}
.subinfo a {
    text-decoration: none;
    color: rgb(20, 60, 20);
    font-weight: bold;
}
.subinfo b {
    font: 28px Inter;
    margin-bottom: 5px;
}
#achievements_info {
    flex-direction: row;
    grid-gap: 60px;
    height: 100%;
    margin-left: 0;
}
.achievements_tabs {
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-right: 1px solid rgba(0, 100, 0, 0.3);
    grid-gap: 20px;
    padding-right: 20px;
    margin-right: 0;
}
.achievements_tab {
    width: 50px;
    border-radius: 6px;
    background-color: rgba(0, 100, 0, 0.3);
    opacity: 0.3;
}
.achievements_tab.selected {
    background-color: rgba(0, 100, 0, 0.3);
    opacity: 1;
}
.achievements_container {
    display: none;
}
.achievements_container.selected {
    display: flex;
    flex-direction: column;
}
.achievements_container.selected .subtitle {
    color: rgb(20, 60, 20);
    font-weight: 300;
}
.achievements {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 30px;
    margin-top: 30px;
}
.achievements:has(.achievement.selected) .achievement:not(.selected) {
    display: none;
}
.achievement {
    display: flex;
    width: auto;
    height: min-content;
    grid-gap: 20px;
    padding: 8px;
    background-color: rgba(0, 100, 0, 0.2);
}
.achievement.selected {
    display: flex;
    width: 100%;
}
.achievement.selected img {
    height: 370px;
}
.achievement img {
    height: 120px;
    width: auto;
}
.achievement .subinfo.selected {
    width: auto;
    font: 20px Inter;
    color: rgb(20, 60, 20);
    margin-right: 60px;
}
#skills_info {
    flex-direction: row;
    flex-wrap: wrap;
    grid-gap: 20px;
}
.resize_block {
    display: flex;
    flex-direction: column;
    height: min-content;
    box-shadow: 3px 3px 3px 3px rgba(20, 40, 20, 0.3);
    padding: 5px 10px;
}
#skills_info .subtitle {
    margin-bottom: 10px;
}
#skills_info .subinfo.selected {
    display: flex;
    margin-bottom: 10px;
}
.skills_years {
    font: 20px Inter;
    font-weight: normal;
    color: rgb(20, 40, 20);
    margin: 0;
    margin-left: 5px;
}

/* Large desktops and laptops */
@media (max-width: 1650px) {
    .main_nav {
        margin-right: 5%;
    }
    #avatar {
        width: 36%;
        margin-left: -50px;
    }
    .all_info {
        width: 55%;
    }
    .info.selected {
        margin-right: 50px;
    }
    .info.selected .subtitle {
        font: 28px Inter;
        font-weight: bold;
    }
    .achievements_container.selected .subtitle {
        font-weight: 300;
    }
    .achievement.selected img {
        height: 300px;
    }
    .achievement img {
        height: 110px;
    }
    .subinfo b {
        font: 26px Inter;
    }
    .achievement .subinfo.selected {
        font: 18px Inter;
        margin-right: 30px;
    }
    #skills_info {
        margin-top: 30px;
    }
    #skills_info .subtitle {
        margin-bottom: 8px;
    }
    .subinfo.selected {
        font: 22px Inter;
    }
    .skills_years {
        margin-left: 3px;
    }
}

/* Landscape tablets and medium desktops */
/* @media (min-width: 992px) and (max-width: 1199px) {

} */

/* Portrait tablets and small desktops */
/* @media (min-width: 768px) and (max-width: 991px) {
    
} */

/* Landscape phones and portrait tablets */
/* @media (min-width: 481px) and (max-width: 767px) {

} */

/* Portrait phones and smaller */
/* @media (min-width: 321px) and (max-width: 480px) {

} */

/* Iphone 5 */
/* @media (max-width: 320px) {

} */