/* Global reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto Mono", sans-serif;
    line-height: 1.6;
    color: #181818;
    background-color: #efefef;
}

table {
    width: 100%;
    text-align: left;
    margin-top: 2em;
    margin-bottom: 2em;
    padding-left: 10px;
}

td,
th {
    /* border-bottom: 1px solid #ccc; */
}

th {
    padding-top: 1em;
}

h1 {
    font-family: "Poppins", sans-serif;
    margin-top: 1em;
    padding-left: 10px;
}

h2,
h3,
p,
input,
label,
.skill_table {
    font-size: 1em;
    margin-top: 1em;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    line-height: 2em;
}

h2 {
    margin-top: 2.5em;
}

h3 {
    margin-top: .5em;
}

input {
    border: 1px solid #ccc;
    margin-left: 10px;
    height: 40px;
    width: 95%;
    max-width: 500px;
}


a {
    color: #000;
}


form {

    float: left;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}


.top_bar {
    height: 40px;
    width: 100%;
    padding-left: 1em;
    padding-top: .5em;
}

/* Top section (hero/banner) */
.section_top {
    float: left;
    background-color: rgba(127, 127, 127, 0.113);
    color: black !important;

    margin-right: 1em;
}

.section_top:hover {
    background-color: rgba(127, 127, 127, 0.313);
}

#lang_sel {
    float: right;
}

/* Header section */
.section_header {
    background-color: rgb(228, 228, 228);
}

/* About section */
.section_about {
    background-color: #ffb700;
}

/* Skills section */
.section_skills {
    background-color: #33ff00;
}

/* Work/portfolio section */
.section_work {
    background-color: #ff0400;
}

/* Contact section */
.section_contact {
    background-color: #351aff;
    height: 400px;
}

/* Bottom/footer section */
.section_bottom {
    background-color: #222;
    font-size: 0.9rem;
    height: 100px;
    width: 100%;
    padding: 1em;
    margin-top: 2em;
    color: rgb(183, 183, 183);
}

.section_construction {
    text-align: center;
    margin-top: 35vh;
}

.section {
    padding-top: 2em;
    padding-bottom: 2em;
    background-color: transparent;
}

.text_title {
    font-size: 5em;
    padding: 10px;
    margin-top: 0;
    line-height: 1.2em;
    margin-bottom: -30px;
}

.carousel {
    display: flex;
    align-items: center;
    /* vertically center, optional */
    height: 300px;
    /* <-- set whatever height you want */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-top: 2em;
    margin-bottom: 2em;
}

.carousel img {
    flex: none;
    /* don’t flex-shrink or grow */
    height: 100%;
    /* match container height */
    width: auto;
    /* preserve ratio */
    scroll-snap-align: center;
    margin-right: 1em;
    margin-left: 1em;
}

/* hide scrollbar (optional) */
.carousel {
    scrollbar-width: none;

    /* Firefox */
}

.carousel::-webkit-scrollbar {
    width: 0;
    /* Chrome, Safari */
}

.iframe_player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    margin-top: 2em;
    margin-bottom: 2em;
}

.skill_title {
    font-weight: 700;
    height: 50px;
    text-decoration: underline;
}

.skill_label {
    width: 100%;
}

.skill_rating {
    min-width: 320px;
}

.skill_rating_bar {
    float: left;
    background-color: rgb(0, 0, 0);
    height: 12px;
    margin-top: 10px;
    margin-right: 10px;

}

/* kill the old float-based layout */
.skill_table {
    /* remove float, max-width, flex etc. */
    margin: 2em 0;
    width: 100%;
}

/* base grid wrapper */
.skill_grid {
    display: grid;
    gap: 1em;
    padding-right: 10px;
}

/* exactly 3 equal columns */
.skill_grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* exactly 2 equal columns */
.skill_grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.img_portrait {
    width: 260px;
    margin-left: 10px;
    top: 350px;
    position: absolute;



}

.about_text {
    margin-left: 300px;
    width: 65%;

}


/* make each table fill its cell */
.skill_table {
    width: 100%;
    margin: 2em 0;
}

/* mobile: always 1 column */
@media (max-width: 600px) {
    .skill_grid {
        grid-template-columns: 1fr;
    }

    .about_text {
        margin-left: 0;
        width: 100%;

    }

    .img_portrait {
        width: 94%;
        margin-left: 3%;
        margin-top: 20px;
        position: relative;
        top: 20px;


    }

    .skill_rating {
        min-width: 180px;
    }

    .section_bottom {
        margin-top: 100px;
        height: 50px;
    }

}