@charset "utf-8";

:root {
    --bg-color: #EFDCAB;
    --primary-color: #a7651c;
    --bg-text-color: #ffffff;
    --sub-text-color: #74706a;
    --heading-color: #a7651c;
    --text-color: black;
    --hover-color: rgb(255, 0, 0);
    --nav-font-size: 1.9vw;
    --base-font-size: 1.0vw;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    --text-color: white;
    --hover-color: rgb(255, 100, 100);
    --bg-color: #443627;
    --primary-color: #e5a864;
    --bg-text-color: #000000;
    --text-color: #ffffff;
    --hover-color: #8b7f72;
    background-color: var(--bg-color);
    margin: 5px 5px;
    padding: 0rem;
}

html {
    font-size: var(--base-font-size);
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 5px 5px;
    padding: 0rem;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
    margin: 0;
    padding: 0.5rem;
}


/*Navigation Menu Bar styling Start*/

.button-logo {
    float: right;
    background-color: var(--primary-color);
    border: none;
    width: 3rem;
    height: 3rem;
}

#theme-toggle {
    margin-left: 0;
    background-color: var(--primary-color);
    border: none;
    height: auto;
    text-align: center;
    font-weight: bold;
    font-size: var(--nav-font-size);
    color: var(--bg-text-color);
    width: 100%;
}

#theme-toggle:hover {
    color: var(--hover-color);
    transition: 0.3s;
}

.navmenu {
    margin: 0;
    padding: 0;
    display: flex;
    flex-grow: 1;
    text-align: center;
    justify-content: space-between;
}

.navmenu div a {
    text-decoration: none;
    color: var(--bg-text-color);
    font-weight: bold;
    font-size: var(--nav-font-size);
}

.navmenu div a:hover {
    color: var(--hover-color);
    transition: 0.3s;
}

nav.navbar {
    width: 90%;
    background-color: var(--primary-color);
    position: relative;
    float: left;
    margin-left: 1.5rem;
    padding: 0.5rem;
    z-index: 10;
    pointer-events: auto !important;
}

.button-inline {
    display: inline-flex;
    align-items: center;
    margin: 0 1rem;
}

@media (min-width: 768px) {
    nav.navbar:before {
        content: "";
        position: absolute;
        top: 50%;
        left: -1.7rem;
        /* Adjust arrow length */
        border-top: 1.7rem solid transparent;
        border-bottom: 1.7rem solid transparent;
        border-right: 1.8rem solid var(--primary-color);
        transform: translateY(-50%);
    }

    nav.navbar:after {
        content: "";
        position: absolute;
        top: 50%;
        right: -1.7rem;
        /* Adjust arrow length */
        border-top: 1.7rem solid transparent;
        border-bottom: 1.7rem solid transparent;
        border-left: 1.8rem solid var(--primary-color);
        transform: translateY(-50%);
    }
}

/*Navigation Menu Bar styling Finished*/

/* Rolling Picture Dice*/
.dice-container {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.rolling-dice {
    width: 20rem;
    height: 20rem;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease;
    cursor: pointer;
}

.rolling-dice:hover {
    animation: rotate3d 8s infinite linear;
}

.dice {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    backface-visibility: visible;
    border-radius: 12px;
    background: linear-gradient(145deg, #2a2a2a, #383838);
    border: 2px solid #646cff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.dice::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    top: -100%;
    left: -100%;
    transition: all 0.5s ease;
    transform: translateZ(10rem);
}

.dice::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dice:hover::before {
    top: 100%;
    left: 100%;
}

.dice:hover::after {
    opacity: 1;
}

.front {
    transform: translateZ(10rem);
    border-color: #646cff;
}

.back {
    transform: translateZ(-10rem) rotateY(180deg);
    border-color: #00bcd4;
}

.right {
    transform: translateX(10rem) rotateY(90deg);
    border-color: #4caf50;
}

.left {
    transform: translateX(-10rem) rotateY(-90deg);
    border-color: #ff4081;
}

.top {
    transform: translateY(-10rem) rotateX(90deg);
    border-color: #ffc107;
}

.bottom {
    transform: translateY(10rem) rotateX(-90deg);
    border-color: #9c27b0;
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    25% {
        transform: rotateX(90deg) rotateY(90deg);
    }

    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }

    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@media (max-width: 768px) {
    .rolling-dice {
        width: 150px;
        height: 150px;
    }

    .front {
        transform: translateZ(75px);
    }

    .back {
        transform: translateZ(-75px) rotateY(180deg);
    }

    .right {
        transform: translateX(75px) rotateY(90deg);
    }

    .left {
        transform: translateX(-75px) rotateY(-90deg);
    }

    .top {
        transform: translateY(-75px) rotateX(90deg);
    }

    .bottom {
        transform: translateY(75px) rotateX(-90deg);
    }
}

/* Rolling Picture Dice Finished*/
/*Big screen styling*/
@media (min-width: 768px) {

    img {
        width: 100% !important;
        height: auto !important;
        border: 0.2rem solid transparent;
        border-radius: 1rem;
    }

    .header-section {
        flex: 0 0 auto;
        padding: 0 2rem;
        display: inline-flex;
        align-items: center;
        margin: 0.5rem;
        width: 100%;
    }

    .header-image {
        width: 50%;
    }

    .header-section>.desc {
        width: 50%;
        padding: 0 2rem;
        text-align: justify;
        font-size: var(--nav-font-size);
        color: var(--text-color);
    }
}

.meida-link {
    margin: 1rem;
}

.break {
    width: 100%;
    height: 1rem;
}

.desc {
    width: 100%;
    padding: 0 2rem;
    text-align: justify;
    font-size: var(--nav-font-size);
    color: var(--text-color);
}

.section {
    padding: 1rem;
    text-align: center;
    animation: slideIn 0.5s forwards;
    font-size: var(--nav-font-size);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    background-color: #443627;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.social-media a {
    margin: 0 10px;
    color: #D98324;
    /* Orange */
    text-decoration: none;
    font-size: var(--nav-font-size);
}




/* Small screen navigation */

@media (max-width: 768px) {
    .navitems {
        display: none;
    }

    :root {
        --nav-font-size: 2.5vw;
        --base-font-size: 2.0vw;
    }

    .navitems.active {
        display: block;
        background-color: var(--bg-color);
        position: fixed;
        top: 40px;
        right: 0;
        width: fit-content;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    #menuButton {
        position: relative;
        z-index: 1001;
    }

    .navitems {
        position: fixed;
        top: 40px;
        right: 10px;
        z-index: 10;
    }

    .navmenu {
        list-style-type: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navmenu div a {
        text-decoration: none;
        padding: 10px 15px;
        display: block;
        font-size: var(--nav-font-size);
    }

    #theme-toggle {
        padding: 10px 15px;
        display: block;
        font-size: var(--nav-font-size);
    }

    img {
        width: 100%;
        border: 0.2rem solid transparent;
        border-radius: 1rem;
    }

    /*Header Info styling*/
    .header-image {
        flex: 0 0 auto;
        padding: 1rem;
        display: inline-flex;
        align-items: center;
        margin: 0.5rem;
    }

    .desc {
        padding: 2rem;
        text-align: justify;
        font-size: var(--nav-font-size);
    }

}