/* Fonts */
@font-face {
    font-family: 'retrogaming';
    src: url('../fonts/retro-gaming.ttf') format('truetype');
}

@font-face {
    font-family: 'mc';
    src: url('../fonts/minecraft.ttf') format('truetype');
}

@font-face {
    font-family: 'mca';
    src: url('../fonts/minecraftia.ttf') format('truetype');
}

@font-face {
    font-family: 'dogica';
    src: url('../fonts/dogica.ttf') format('truetype');
}

@font-face {
    font-family: 'depixel';
    src: url('../fonts/depixel.ttf') format('truetype');
}

@font-face {
    font-family: 'visitor';
    src: url('../fonts/visitor.ttf') format('truetype');
}

@font-face {
    font-family: 'retron';
    src: url('../fonts/retron2000.ttf') format('truetype');
}

/* Main */

img {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
}

/* Style specifically for mailto links */
a[href^="mailto:"] {
    color: rgba(238, 238, 238, 0.75);
    font-weight: bold; 
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

/* Style for mailto links on hover */
a[href^="mailto:"]:hover {
    color: rgb(49, 195, 221); 
    text-decoration: underline; 
}

a {
    color: rgb(226, 226, 226); 
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

/* Style for all links on hover */
a:hover {
    color: rgb(49, 195, 221); 
    text-decoration: underline; 
}


body {
    height: 100%;
    font-family: 'dogica', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    height: 100dvh;
    background-color: #000000;
}

/* Header */

.header {
    font-family: 'retron';
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px; 
    background-color: rgba(32, 32, 32, 0.3);
    height: 40px; 
    z-index: 1000;
}

.header-left-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px; 
    color: rgba(238, 238, 238, 0.75);
}

.contact {
    color: rgba(238, 238, 238, 0.75);
    margin-left: 20px;
}

.header p {
    margin: 0;
    font-size: 10px;
}

.header h1 {
    margin: 0;
    font-size: 14px; 
    text-align: right;
}

.header h2 {
    margin: 0;
    font-size: 12px;
}

.logo {
    transition: transform 0.1s ease-in-out;
    max-height: 100%; 
    width: auto;
    height: auto;
    display: block;
}

.logo-link {
    display: inline-block; 
    height: 40px;
}

.logo:hover {
    transform: skew(-18deg, 0deg); 
}

.social-media-bar {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.social-icon {
    color: rgba(228, 228, 228, 0.75); 
    text-decoration: none;
    font-size: 20px;
    transition: transform 0.1s ease-in-out, color 0.1s ease-in-out;
}

.social-icon:hover{
    color: rgba(241, 43, 43, 0.75)
}

.social-icon:nth-child(1):hover {
    transform: rotate(-25deg);
}

.social-icon:nth-child(2):hover {
    transform: rotate(25deg);
}

.social-icon:nth-child(3):hover {
    transform: rotate(-25deg);
}

.social-icon:nth-child(4):hover {
    transform: rotate(25deg);
}

.social-icon:nth-child(5):hover {
    transform: rotate(-25deg);
}

.social-icon:nth-child(6):hover {
    transform: rotate(25deg);
}

.logo-link, .social-media-bar, .contact {
    pointer-events: auto; 
}

/* Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    background: url('image/fallback-bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    background-attachment: fixed;
}

/* Phone switch */
@media only screen and (max-width: 767px) {
    #bg-video {
        display: none;
    }
    #bg-image {
        display: block;
    }

    .header-text-container{
        display: none;
    }

    .grid-bottom{
        bottom: 40px;
    }
}

/* Content */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 400px; /* Adjust as needed */
    margin-left: auto;
    padding: 15px;
    gap: 15px;
    top: 40px;
    right: 0;
    position: absolute;
}

.grid-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 400px; /* Adjust as needed */
    margin-left: auto;
    padding: 15px;
    gap: 15px;
    bottom: 0px;
    right: 0px;
    position: absolute;
}

.icon {
    max-width: 50px;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.item {
    display: flex;
    height: 90px;
    width: 90px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}


.item p {
    font-family: 'retron';
    font-size: 10px;
    margin-top: 2px;
    text-align: center;
    color: rgb(226, 226, 226); 
}

.item:hover{
    background-color: rgba(18, 122, 35, 0.2);
    transform: scale(1.05);
}

.hidden-container {
    display: none; 
    width: 100%;
    background-color: rgb(16, 16, 16);
    border-radius: 0px;
    position: absolute;
    touch-action: none;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    outline: 4px solid rgba(46, 156, 189, 0.75);
}

.title-bar {
    font-family: 'retron';
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f1f1f1;
    background-color: rgba(0, 0, 0, 0);
    padding: 5px 10px;
    height: 30px; 
    cursor: grab;
    outline: 4px solid rgba(46, 156, 189, 0.75);
}

.title-bar p {
    margin: 0;
    padding: 0;
    font-size: 12px; 
}

.title-bar:active {
    cursor: grabbing;
}

.close-button {
    padding: 0; 
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0); 
    border-radius: 0%;
    cursor: pointer;
    outline: 4px solid #e04444;
}

.close-button p {
    font-family: 'dogica', sans-serif;
    line-height: 20px; 
    font-size: 14px; 
    margin-left: 1px;
    text-align: center;
    color: #e04444;
}

.close-button:hover{
    background-color: #910f0f;
}

.close-button:active{
    background-color:#420606;
}

.content {
    width: 100%;
    height: calc(100% - 40px); 
}

.content iframe {
    width: 100%;
    height: 100%;
    border: none;
}