body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* overflow-x: hidden; */
    background-color: #f5f5f5;
    color: #333;
}

.header,
.footer {
    max-width: 100%;
    padding: 20px;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
}

.name-info {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header h1 {
    display: flex;
    align-items: center;
    font-size: 1.5em;
}

.theme-switch {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.theme-switch input {
    display: none;
}

.theme-switch label {
    background: #444;
    border-radius: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-switch .sun,
.theme-switch .moon {
    font-size: 18px;
    position: absolute;
    transition: opacity 0.3s;
}

.theme-switch .sun,
.moon {
    left: -30px;
    opacity: 1;
}

.moon {
    opacity: 0;
}

.theme-switch label span {
    background: #fff;
    border-radius: 50%;
    height: 26px;
    width: 26px;
    transition: transform 0.3s, background 0.3s;
    position: absolute;
    left: 2px;
}

.theme-switch input:checked+label span {
    transform: translateX(30px);
    background: #87cefa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    flex: 1;
}

.content {
    padding: 20px;
}

.block-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.block {
    max-width: 40%;
    margin: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    flex: 1 1 45%;
}

.block h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.block ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.block ul li {
    margin: 10px 0;
}

.block a {
    color: #1e90ff;
    color: #1e90ff;
    text-decoration: none;
}

.block a:hover {
    text-decoration: underline;
}

#work-experience-list li{
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer {
    flex-direction: column;
}

.footer a{
    color: #1e90ff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.social-icons img {
    max-width: 50px;
    max-height: 50px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.dark-theme {
    background-color: #121212;
    color: #f5f5f5;
}

.dark-theme .header,
.dark-theme .footer {
    background-color: #1e1e1e;
}

.dark-theme .block {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

.dark-theme .block h2 {
    border-bottom-color: #f5f5f5;
}

.dark-theme a {
    color: #87cefa;
}

.dark-theme .footer {
    background-color: #1e1e1e;
}

.dark-theme .content {
    background: url('icons/sky.svg') no-repeat center center fixed;
    background-size: cover;
}

.dark-theme .moon {
    opacity: 1;
}

.dark-theme .sun {
    opacity: 0;
}

.dark-theme .close{
    color: #f5f5f5;
}


.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal-content {
    background-color: #fefefe;
    width: 80%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    box-sizing: border-box;
    transition: all 0.7s ease;
    opacity: 0;
    transform: translateY(-50px);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dark-theme .modal-content {
    background-color: #333;
    color: #f5f5f5;
    border: solid 2px whitesmoke;
}
/* 
.modal-content p{
    animation: typing 4s steps(60, end);
} */
.modal-content .close{
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 30px;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content.active {
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%);
}

#modal-background{
    position: absolute;
    width: 100%;
    height: 100%;
}


/* @keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing {
    overflow: hidden;
    white-space: pre-wrap; 
    border-right: 3px solid;
    animation: typing 4s steps(60, end), blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #333;
    }
} */
.modal-photo {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s, transform 0.5s; /* добавляем transition для изменений opacity, visibility и transform */
    background: rgba(0, 0, 0, 0.5); /* добавляем полупрозрачный фон */
}

.modal-photo.active {
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

.modal-photo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1); /* добавляем начальное значение масштаба */
    transition: transform 0.5s; /* добавляем transition для изменения масштаба */
}

.modal-photo.active img {
    transform: translate(-50%, -50%) scale(7); /* увеличиваем масштаб изображения при активации */
}




@media (max-width: 768px) {
    .block {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header img {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }

    .header h1 {
        font-size: 1.2em;
    }

    .theme-switch {
        right: 10px;
    }

    .footer p {
        font-size: 0.9em;
    }

    .name-info {
        margin-right: 50px;
    }
}

@media (max-width: 480px) {
    .header img {
        width: 50px;
        height: 50px;
        margin-right: 5px;
    }

    .header h1 {
        font-size: 1em;
    }

    .theme-switch {
        right: 5px;
    }

    .footer p {
        font-size: 0.8em;
    }

    .footer .social-icons img {
        max-width: 40px;
        max-height: 40px;
    }
}