body {
    font-family: 'Inter', 'Roboto', 'Helvetica', Arial, sans-serif;
    font-weight: 100;
    background-color: white;
    overscroll-behavior: none;
    padding-top: 3rem;
    overflow-x: hidden;
}

@font-face {
    font-family: Inter;
    src: url(fonts/Inter/Inter_18pt-Light.ttf);
    font-weight: 300;
}

@font-face {
    font-family: Inter;
    src: url(fonts/Inter/Inter_18pt-SemiBold.ttf);
    font-weight: 600;
}

@font-face {
    font-family: Old Standard TT;
    src: url(fonts/Old_Standard/OldStandardTT-Regular.ttf);
    font-weight: 600;
}

h1, h2 {
    font-family: 'Old Standard TT', serif;
    font-size: 2rem;
    font-weight: 100;
    margin: 2rem 0 2rem 0;
}

h3 {
    font-family: 'Old Standard TT', serif;
    font-size: 1.7rem;
    font-weight: 100;
    margin: 0 0 1rem 0; 
}
  
p {
    font-size: 1rem;
    font-weight: 100;
    line-height: 1.8rem;
}

#contact a {
    color: black; 
    text-decoration: none;
}

#cv, #education a {
    color: white; 
    text-decoration: none;
}
  
a:hover {
    color: grey;
}

.overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255,255,255, 0.8); 
    z-index: 2; 
} 
  
.overlay.active { 
    display: block; 
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=UTF8,%3Csvg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath stroke="rgba%28255, 255, 255, 0.5%29" stroke-width="2" linecap="round" linejoin="round" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}
  
body.dark-mode .navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=UTF8,%3Csvg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath stroke="rgba%28255, 255, 255, 0.7%29" stroke-width="2" linecap="round" linejoin="round" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}
  
.contact-list { 
    list-style: none; 
    padding: 0rem 0rem 0rem 0rem;
    z-index: 1001; 
    width: 100%; 
    display: flex; /* Flexbox */
    flex-direction: column; /* Položky pod sebou */
    justify-content: start; 
    gap: 2rem 2rem; /* Zvětší mezeru mezi položkami */
}

footer .container {
    display: flex;
    justify-content: center; /* Horizontální zarovnání */
    align-items: center; /* Vertikální zarovnání */ 
    padding: 1rem;
}

footer {
background-color: #292b2c;
color: white;
}

.image-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    padding: 2 0 4rem 0;
}

@media screen and (max-width: 768px) {
.image-container {
    display: grid;
    flex-wrap: nowrap;
    width: 100%;
}
}
.image-box {
    position: relative;
    flex: 1 0 33.33%; /* Each image-box will take up 33.33% of the viewport width */ 
    box-sizing: content-box;
    width: 100%;
}

.image-box img { 
    width: 100%; 
    height: 90%; 
    display: absolute;
    opacity: 0.8;
    padding: 0.5rem;
    margin: 0.5rem;

}

@media screen and (max-width: 768px) {
.image-box img { 
    display: grid;
    width: 100%; 
    height: 90%;    
    opacity: 1;
}
}

.note {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    color: black;
    background-color: rgba(255, 255, 255, 0.8); /* semi-transparent background for better readability */
    padding: 0.7rem;
    font-size: 0.8rem;
    margin: 0.5rem;
}