:root {
    --primary-color: #4197E3;
    --text-color: #212121;
    --bg-color: #ffffff;
    --line-color: #CCCCCC;
}

@font-face {
    font-family: 'Goodtime';
    src: url('font/goodtime.woff') format('woff');
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Goodtime', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background: var(--bg-color) url('images/it_bg2.png') no-repeat right top;
    line-height: 1.5;
    min-height: 100vh;
}

#main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.line {
    background-color: var(--line-color);
    width: 100%;
    height: 4px;
    margin: 10px 0;
}

#header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

h1 {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

#content-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

#avatar {
    border-radius: 40px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

#avatar:hover {
    transform: scale(1.1);
}

#icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

#icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}

#icons a img {
    width: 60px;
    height: 60px;
    transition: all 0.2s ease-in-out;
}

#icons a img:hover {
    width: 70px;
    height: 70px;
    transform: translateY(-5px);
}

#projects {
    width: 100%;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.project {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid var(--line-color);
}

.project-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.project img {
    width: 50px;
    height: auto;
}

.project a {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.project p {
    text-align: right;
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 600px) {
    body {
        background-position: center top;
        background-size: cover;
    }
    
    #main-wrapper {
        align-items: center;
    }
    
    #header, #projects, #content-top, #icons {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .project {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .project-info {
        flex-direction: column;
    }
    
    .project p {
        text-align: center;
    }
}
