@import url('https://fonts.googleapis.com/css2?family=Cherry+Swash&family=Lato:ital,wght@0,400;0,900;1,400&display=swap');

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #333333;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.main {
    flex: 1; /* takes available space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center;
    gap: 30px;
}

h1 {
    font-family: 'Caprasimo', cursive;
    color: #1e1e1e;
    font-size: 46pt;
    text-align: center;
}

/* Container */
.nav-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Base button */
.nav-btn {
    position: relative;
    width: 60%;
    max-width: 700px;
    height: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    transform: skew(-20deg);
    transition: transform 0.2s ease;

    border: 5px solid rgba(255,255,255,0.3);
}

/* Inner content resets skew */
.nav-btn span {
    transform: skew(20deg);
}

/* Text */
.nav-btn .text {
    flex: 1;
    text-align: left;
    font-size: 2rem;
    font-weight: 700;
    padding-left: 30px;
    transition: transform 0.3s ease;
    font-family: 'Caprasimo', cursive;
}

/* Icon container */
.nav-btn .icon {
    position: absolute;
    left: -80px;
    width: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.5s ease;
}

.nav-btn.design img {
    width: 71.5px;
    height: 50px;
}

.nav-btn .icon img {
    width: auto;
    height: 50px;
}

/* Hover animation */
.nav-btn:hover .icon {
    left: 0;
}

.nav-btn:hover .text {
    transform: translateX(50px) skew(20deg);
}

.nav-btn:hover {
    border-color: white;
}

/* ===================== */
/* Specific styles */
/* ===================== */

/* Wave button */
.nav-btn.wave {
    background: #b3e5fc; /* powder blue */
    color: orange;
}

/* DKR button */
.nav-btn.dkr {
    background-color: #364BA0;
    background-image: url(../dkr/images/checkered.webp);
    color: #F6F3A8;
}

.nav-btn.design {
    background-color: #ffffff;
    color: purple;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    flex-direction: row;
}

.soc-button {
    height: clamp(24px, 8vw, 80px);
    width: auto;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.soc-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-btn {
        width: 90%;
    }

    .nav-btn .text {
        font-size: 1.2rem;
    }
}
