@font-face{
        font-family: 'PixelatedEleganceRegular';
        src: url(img/fnt/PixelatedEleganceRegular-ovawB.ttf) format('truetype');
        font-display: swap;
}

* {box-sizing: border-box;}

/* pang dark mode */
.darkmode-btn{
        cursor: pointer;
        font-size: 1.8em;
        padding: 5px 12px;
        border: 3px solid rgba(255, 255, 255, 0.4);
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.2);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        user-select: none;
}
.darkmode-btn:hover{
        transform: scale(1.1);
        background-color: rgba(255, 255, 255, 0.4);
}

/* Background videos */
.dark-bg{
        display: none;
}

header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 50px;
        z-index: 10;
        gap: 30px;
}

body{
        font-family: 'PixelatedEleganceRegular', sans-serif;
}

h1, h2, h3, h4, h5, h6, p, a, span, nav, div, li, button, input, textarea, label, td, th{
        font-family: 'PixelatedEleganceRegular', sans-serif;
}

nav{
        margin-top: 20px;
        display: flex;
        justify-content: space-between;
        gap: 100px;
}
section{
        padding-top: 120px;
        min-height: 100vh;

}

#home{
        padding-top: 120px;
}

video{
        position: fixed;
        object-fit: cover;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        min-width: 100%;
        min-height: 100%;
        z-index: -1;
}
img{
        width: 300px;
        height: 300px;
        border-radius: 50%;
        margin-top: 20px;
        border: 5px solid skyblue;
}

.intro{
        display: flex ;
        justify-content: center;
        align-items: center;

}

h2{
        display: flex ;
        justify-content: center;
        align-items: center;
}
.hero-text h2{
        margin-left: 300px;
        margin-bottom: -80px;
}
.hero-text{
        display: flex ;
        justify-content: center;
        align-items: center;
        margin-bottom: 200px;
        color: grey;
}
p{
        padding: 30px;
        color: rgb(85, 84, 84);
        text-align: justify;
}
h1{
        margin-left: 50px;
        color:gold;
        font-weight: bold;
        font-style: italic;
}
a{
        text-decoration: none;
        font-size: large;
}
header nav a{
        color: navy;
}
.bird{
        display: flex;
        margin-top: 0;
        margin-left: 0;
        align-items: center;
        border-radius: 5px;
        border: 5px solid gold;
}

.myself{
        display: flex;
        flex-direction: row;
        margin-left: 100px;
        margin-top: 80px;
}

.balay{
        display: flex;
        flex-direction: row;
        margin-left: 100px;
}
.myself p{
        width: 650px;
        border: 5px solid black;
        border-radius: 20px;
        margin-left: 200px;
        background-color: rgba(255, 255, 255, 0.25);
}

#hobbies{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        align-items: center;
        gap: 30px;
        padding-top: 120px;
        text-align: center;
}

#hobbies > h2{
        flex-basis: 100%;
        margin: 0 0 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
}


.hobbies{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 380px;
        max-width: 90%;
        min-height: 120px;
        padding: 12px 20px;
        border: 5px solid black;
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        text-align: center;
        margin: 0;
}

.hbox{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 1.5em;
        color: gold;
}

.hpic{
        width: 300px;
        height: 300px;
        border-radius: 5px;
        margin-top: 20px;
        border: 5px solid black;
}

.hobbies p{
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
        color: rgb(85, 84, 84);
}

#contact{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        align-items: center;
        gap: 30px;
        padding-top: 120px;
        text-align: center;
}

#contact > h2{
        flex-basis: 100%;
        margin: 0 0 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
}

.contact-box{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 380px;
        max-width: 90%;
        min-height: 100px;
        padding: 12px 20px;
        border: 5px solid black;
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        text-align: center;
        margin-bottom: 300px;
}

.cbox{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 0 15px 0;
        font-size: 1.5em;
        color: gold;
}

.contact-box a{
        font-size: 1.1em;
        color: rgb(85, 84, 84);
}

.contact-box p{
        width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
        color: rgb(85, 84, 84);
}

/* DARK MODE  */
body.dark-mode .light-bg{
        display: none;
}
body.dark-mode .dark-bg{
        display: block;
}

/* Light text colors arun mabasa ra sa dark mode */
body.dark-mode header h1{
        color: gold;
}
body.dark-mode header nav a{
        color: #ffffff;
}
body.dark-mode .darkmode-btn{
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.6);
        background-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode section h2{
        color: #ffffff;
}
body.dark-mode section p{
        color: #e8e8e8;
}
body.dark-mode #home .hero-text h2{
        color: #ffffff;
}
body.dark-mode #home .hero-text{
        color: #ffffff;
}

/* Boxes sa dark mode */
body.dark-mode .hobbies,
body.dark-mode .contact-box,
body.dark-mode .myself p{
        border-color: rgba(255, 255, 255, 0.5);
        background-color: rgba(0, 0, 0, 0.45);
}
body.dark-mode .contact-box a{
        color: #ffffff;
}
body.dark-mode .hobbies p,
body.dark-mode .contact-box p{
        color: #e8e8e8;
}
body.dark-mode .hbox,
body.dark-mode .cbox{
        color: gold;
}
body.dark-mode .myself p{
        color: #e8e8e8;
}

@media(max-width: 480px){
        header{
                display: flex;
                flex-direction: row;
                font-size:xx-small;
                
        }
        nav{
                font-size: xx-small;
                display: flex;
                flex-direction: column;
                gap: 0;
                
        }
        .hero-text h2{
                margin-left: 0;
                margin-bottom: 20px;
                color:brown;
        }
        .myself{
                flex-direction: column;
                align-items: center;
                margin-left: 0;
        }
        .myself p{
                margin-left: 0;
                width: 90%;
        }
        .balay{
                flex-direction: column;
                align-items: center;
                margin-left: 0;
        }
}
.guild-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: #e8e8e8;
    border: 2px solid #bfbfbf;
    padding: 10px 15px;

    text-decoration: none;
    color: black;

    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;

    transition: 0.2s;
    justify-content: left 50px;
}

.guild-btn img {
    width: 20px;
    height: 20px;
}

.guild-btn:hover {
    background: white;
    transform: scale(1.05);
}

.guild-btn span {
    line-height: 1.2;
}