@import '../theme.css';

* {
    font-family: 'Times New Roman';
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background-image: url("../background.jpg");
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a; /* fallback color */
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    all : unset
}

.home {
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column; /* mobile: vertical layout */
    align-items: center;
    justify-content: space-between;
}

.home img {
    width: 32vw;
    height: 33vw;
    object-fit: contain;
    transition: transform 0.2s ease;
   /* filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.8)); */
}

.home a:hover img {
    transform: scale(1.1);
}

.home .icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* mobile: 4 cols x 2 rows */
    grid-template-rows: repeat(2, 1fr);
    gap: 2vh;
}

.home .icons img {
    width: 10vw;
    height: 10vw;
    object-fit: contain;
    transition: transform 0.2s ease;
    /* filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.8)); */
}

/* Base scaling for icons */
.icons .youtube { 
    transform: scale(1.2) translateX(-4px); 
}

.icons .bandcamp { 
    transform: scale(1.2) translateX(7px); 
}

.icons .instagram { 
    transform: scale(1.3); 
}

.icons .tiktok { 
    transform: scale(1.8); 
}

/* Hover effects for icons */
.icons a:hover img {
    transform: scale(2.0);
}

.icons button:hover img {
    transform: scale(2.0);
}

.evileye :focus { 
    scale : 2.0
}

.icons a:hover .youtube { 
    transform: scale(2.4) translateX(-4px); 
}

.icons a:hover .bandcamp { 
    transform: scale(2.4) translateX(7px); 
}

.icons a:hover .instagram { 
    transform: scale(2.6); 
}

.icons a:hover .tiktok { 
    transform: scale(3.6); 
}

/* ----------- PORTRAIT MODE - BIGGER CASTLE ----------- */
@media (orientation: portrait) {
    .home img {
        width: 65vw;  /* Much bigger - about double the original size */
        height: 65vw;
    }
}

/* ----------- TABLET AND DESKTOP VIEW ----------- */
@media (min-width: 769px) {
    .home {
        flex-direction: row; /* desktop: horizontal layout */
        justify-content: space-between;
        align-items: center;
    }
    
    .home img {
        width: 34vw;
        height: 34vw;
    }
    
    .home .icons {
        grid-template-columns: repeat(2, 1fr); /* desktop: 2 cols x 4 rows */
        grid-template-rows: repeat(4, 1fr);
        gap: 2vw;
    }
    
    .home .icons img {
        width: 8vw;
        height: 8vw;
    }
}

/* ----------- VERY SMALL SCREENS ----------- */
@media (max-width: 480px) {
    .home .icons {
        gap: 1vh;
    }
    
    .home .icons img {
        width: 14vw;
        height: 14vw;
    }
}