/**
 * bigm.it - Stylesheet 2024
 */
 body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1B98E0;
    color: #333;
}

header {
    color: white;
    text-align: center;
    background-color: #1f2221;
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 5px;
}

header .background {
    text-align: left;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
    font-size: x-small;
	opacity: 0%;
}

header .foreground {
    padding: 2em;
    z-index: 2;
}
header pre {
    margin: unset;
}
header pre code {
    user-select: none;
    font-family: "Courier New", Courier, monospace;
    background-color: hsl(160deg 4.62% 12.75%);
    display: block;
    color: #cdc574;
    border-radius: 5px;
}

header pre code .keyword { color: white; font-weight: bold; }
header pre code .function { color: #cfa7cc; }
header pre code .variable { color: #6892aa; }

header h1 {
    font-size: 3em;
    margin: 0;
}

header p {
    font-size: 1.5em;
}

nav {
    text-align: center;
}

nav span {
    cursor: pointer;
}

main .container {
    padding: 2em;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: -2em;
    border-radius: 8px;
}

.container-error {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

}

.container-error img {
    align-self: center;
}

section {
    margin-bottom: 2em;
    padding-bottom: 2em;
}

section h2 {
    border-bottom: 2px solid #13293D;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

a {
    color: #1B98E0;
}

button {
    background-color: white;
    color: #1B98E0;
    padding: 0.5em 2em;
    border: #1B98E0 0.5px solid;
}

.avatar-container {
    width: 550px;
    min-height: 120px;
    height: auto;
    display: flex;
    border-radius: 50%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-image: url('/media/me25.png');
    background-size: cover;
    background-position: center;
}

.avatar {
    width: inherit;
    height: inherit;
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
    gap: 1em;
    padding: 1em;
}

.direct-contact {
    cursor: pointer;
    color: #1B98E0;
    text-decoration: underline;
}

  @keyframes blink-animation {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

.direct-contact:hover {
	animation: blink-animation 1s infinite;
}

.scroller {
	padding: 0.5em;
    text-align: center;
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    height: 20px;
    width: 20px;
    background-color: whitesmoke;
    color: #1B98E0;
    border-radius: 50%;
    display: inline-block;
    font-weight: bolder;
	cursor: pointer;
}

.notice {
	position:  fixed !important;
	top: 0; 
	right: 0;
	width: 250px;
	height: 50px;
	margin: auto;
	padding: 5px;
	font-size: small;
	z-index: 10;
}

.notice-header {
	background-color : #1B98E0;
	color: #ffffff;
	margin: auto;
	padding: 5px;
	border: 1px solid #fff;
}

.notice-body {
	background-color: #ffffff;
	margin: auto;
	padding: 5px;
	border: 1px solid #fff;
}

.hidden {
    display: none;
}

.contributions {
    text-align: center;
}

.contributions img {
    max-width: 100%;
    height: auto;
}

.menu li {
    list-style-type: none;
    display: inline-block;
    padding: 0;
    margin: 0px 1em;
}

.menu li a {
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    margin-top: 2em;
}

footer .container {
    padding: 1em;
}

.music { 
	display: block;
    position: fixed;
    top: 10%;
    right: 10px;
    width: 200px;
    padding: 10px;
    font-size: small;
}

.side {
	display: flex;
	gap: 1em;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 1em;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
}

.btn-music {
	display: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.panel {
    display: flex;
    gap: 0.5em;
    margin: auto;
    margin-bottom: 1em;
}

.panel div {
    background-color: #4a90e2;
    color: #fff;
    text-align: center;
    padding: 0.7em;
    border-radius: 10px;
    cursor: pointer;
}
  
.arrow {
    display: flex;
    flex-direction: row;
    font-size: 1em;
    color: #333;
    cursor: pointer;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    flex-wrap: nowrap;
}

.project-content .tab {
    margin: 1em;
    height: 150px;
}

.screenshots {
    display: flex;
    gap: 1em;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.screenshots img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}
  
.modal-content {
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
  
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.selector-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.selected-flag {
  width: 30px;
  height: auto;
  cursor: pointer;
}

.flag-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flag {
  width: 30px;
  height: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.flag img {
  width: 100%;
  height: auto;
}

.flag:hover {
  opacity: 0.8;
}

.language-selector {
	width: fit-content;
    justify-self: right;
    position: relative;
}

.language-selector.open .flag-options {
  display: block;
}

.projects-head {
	display: flex;
	border-bottom: 2px solid #13293D;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.projects-head h2 {
	border-bottom: unset;
	padding-bottom: unset;
    margin-bottom: unset;
}

.presentation h3 {
	color: cornflowerblue;
}

.direction img,
.direction svg {
	cursor: pointer;
}

.direction .personal:hover {
	filter: brightness(0) saturate(100%) invert(38%) sepia(94%) saturate(626%) hue-rotate(90deg) brightness(88%) contrast(95%);
}
.direction .discord:hover {
	filter: brightness(0) saturate(100%) invert(38%) sepia(94%) saturate(626%) hue-rotate(270deg) brightness(88%) contrast(95%);
}
.direction .linkedin:hover {
	filter: brightness(0) saturate(100%) invert(38%) sepia(94%) saturate(626%) hue-rotate(162deg) brightness(88%) contrast(95%);
}
.direction .work:hover {
	filter: brightness(0) saturate(100%) invert(38%) sepia(94%) saturate(626%) hue-rotate(0deg) brightness(88%) contrast(95%);
}

/* ❄️ Global snow overlay (non-intrusive) */
.snow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1; /* below notices/modals, above background */
}

.snow-container .snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.85);
    user-select: none;
    pointer-events: none;
    animation-name: snow-fall, snow-drift;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite;
}

@media (max-width: 1024px) {
	header .container {
    	padding: 0.5em;    
	}

    .flex-row {
        flex-direction: column;
    }

    .avatar-container {
        width: 150px;
        height: 150px;
        min-height: unset;
    }

	.music { 
		display: none;
	}

	.btn-music {
		display: block;
	}

    .projects {
        width: 300px;
        height: 300px;
    }
    .projects .tab {
        width: 300px;
        height: 300px;
    }

    .menu li {
        margin: 0px 5px;
    }

    .screenshots {
grid-template-columns: 1etf;
    display: grid;
    gap: 1em;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
    }

    .modal-content {
        transform: translate(-50%, -50%) scale(0.5);
    }

    .project-content .tab {
        height: auto;
    }

    header pre code {
        display: none;
    }

	.direction img,
	.direction svg {
 		width: 40px;
  		height: 40px;
	}

	.snow-container .snowflake { color: #3398e0 }
}

/* vertical movement */
@keyframes snow-fall {
    to {
        transform: translateY(110vh);
    }
}

/* horizontal drift */
@keyframes snow-drift {
    0%   { margin-left: 0; }
    50%  { margin-left: 40px; }
    100% { margin-left: 0; }
}