@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&display=swap');

html,body
{
    width: 100%;
    height: 100%;
    font-family: Arial;
    background-color: #000000;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}


body:target
{
    opacity:1;
}

a:link, a:visited, a:active {
    color: #FFFFFF;
}
a:hover {
    color: rgb(230,0,0);
}

.main{
    position: absolute;
    top:15%;
    left:12%;
    width: 76%;
    height: 60%;

    background-color: #FFFFFF;
    border-radius: 20px;
}

.name{
    position: absolute;
    width: 30%;
    height: 100%;
    top:0%;
    left:0%;
    padding-top: 14%;
    color: #000000;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.7vw;
    font-weight: 700;
    font-style: normal;
    font-variant: normal;
    text-align: center;
    line-height: 1.0em;
    letter-spacing: 2px;
}
.contents{
    position: absolute;
    width: 70%;
    height: 100%;
    top:0%;
    right:0%;
    opacity: 0;
    background-color: rgb(0,0,0);
    font-family: 'open sans', sans-serif;
    color: #FFFFFF;
    border-radius: 15px;
    -webkit-transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: translateY(20px);
}

.contents.clicked
{
    opacity:1;
    z-index: 10;
    transform: translateY(0);
}

#home
{
    background: url(image/home.jpg) center;
    background-size: 95%;
    background-color: rgb(0,0,0);
    background-repeat: no-repeat;
    font-family: 'open sans', sans-serif;
    font-size: 0.950vw;
    color: #FFFFFF;
}
#formazione
{
    background:url(image/formazione.jpg) center;
    background-size: 95%;
    background-color: rgb(0,0,0);
    background-repeat: no-repeat;
    font-family: 'open sans', sans-serif;
    font-size: 0.700vw;
    color: #FFFFFF;    

}
#repertorio
{
    background:url(image/repertorio.jpg) center;  
    background-size: 95%;
    background-color: rgb(0,0,0);
    background-repeat: no-repeat;
    font-family: 'open sans', sans-serif;
    font-size: 0.900vw;
    color: #FFFFFF;    
}
#recordings
{
    background:url(image/recordings.jpg) center;
    background-size: 90%;
    background-color: rgb(0,0,0);
    background-repeat: no-repeat;
    font-family: 'open sans', sans-serif;
    font-size: 0.900vw;
    color: #FFFFFF;    
}

#mrg
{
    background:url(image/downloads.jpg) center;
    background-size: 95%;
    background-color: rgb(0,0,0);
    background-repeat: no-repeat;
    font-family: 'open sans', sans-serif;
    font-size: 0.800vw;
    color: #FFFFFF;    
}

#rewards
{
    background:url(image/rewards.jpg) center;
    background-size: 95%;
    background-color: rgb(0,0,0);
    background-repeat: no-repeat;
    font-family: 'open sans', sans-serif;
    font-size: 0.800vw;
    color: #FFFFFF;    
}

.contentstext{
    position: relative;
    top:0%;
    left:0%;
    width:53%;
    height: 90%;
    text-align: left;
    line-height: normal;
    letter-spacing: normal;
    margin-left: 5%;
    margin-top: 2%;
    padding: 1%;
    background-color:rgba(0,0,0,0.5);
    border-radius: 10px;
    overflow: hidden;
}

.contentstextsmall{
    position: relative;
    top:0%;
    left:0%;
    width:95%;
    height: 33%;
    font-size: 0.7vw;
    text-align: left;
    line-height: 1.2vw;
    letter-spacing: normal;
    margin-left: 2%;
    margin-top: 19%;
    padding: 1%;
    background-color:rgba(0,0,0,0.75);
    border-radius: 8px;
    overflow: hidden;
}

.contenttitle
{
    font-size: 1vw;
    color: rgb(231, 211, 177);
    font-style: italic;
}

a.contenttitle
{ 
    color: rgb(231, 211, 177);
}

a.contenttitle:hover
{ 
    color: rgb(230,0,0);
}

.contentsmalltitle
{
    font-size: 0.900vw;
    color: rgb(231, 211, 177);
    font-weight: bold;
}

#home
{
    background: url(image/home.jpg) center;
    background-size: 95%;
    background-repeat: no-repeat;
    font-size: 0.950vw;
}
#formazione
{
    background:url(image/formazione.jpg) center;
    background-size: 95%;
    background-repeat: no-repeat;
    font-size: 0.700vw;
}
#repertorio
{
    background:url(image/repertorio.jpg) center;  
    background-size: 95%;
    background-repeat: no-repeat;
    font-size: 0.900vw;
}
#recordings
{
    background:url(image/recordings.jpg) center;
    background-size: 90%;
    background-repeat: no-repeat;
    font-size: 0.900vw;
}

#mrg
{
    background:url(image/downloads.jpg) center;
    background-size: 95%;
    background-repeat: no-repeat;
    font-size: 0.800vw;
}

#rewards
{
    background:url(image/rewards.jpg) center;
    background-size: 95%;
    background-repeat: no-repeat;
    font-size: 0.800vw;
}

.footer{
    position: absolute;
    top:75%;
    left: 70%;
    background-color: rgb(0,0,0);
    font-size: 0.500vw;
    color:rgb(255,255,255);
}

.menu{
    position: absolute;
    top:75%;
    left: 12%;
    width: 45%;
    background-color: #000000;
    margin-top: 1px;
}

.menubutton {
    background-color:rgb(230,0,0);
    text-indent:0;
    display:inline-block;
    color:rgb(0,0,0);
    font-family:Arial;
    font-size: 0.700vw;
    font-weight:normal;
    font-style:normal;
    height:27px;
    text-decoration:none;
    text-align:center;
    margin-top: 1px;
    margin-left: 2px;
    padding-top: 4px;
    padding-bottom: 2px;
    padding-left: 5px;
    padding-right:  5px;

    border-bottom-left-radius: 0.5em;
    border-bottom-right-radius: 0.5em;

    -webkit-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menubutton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 500ms;
}

.menubutton:hover::before {
    left: 100%;
}
.menubutton:active {
    color:gray;
    background-color:rgb(166,51,51);

}
.menubutton:hover{
    color:rgb(255,255,255);
    background-color:rgb(166,51,51);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.language{
    position: absolute;
    top: 0px;
    right: 0px;
    width: 10%;
    text-align: right;
}

.languagebutton
{
    position: relative;
    background-color:black;
    margin: 8px;

    -webkit-transition: all 200ms ease-in;
    -moz-transition: all 200ms ease-in;
    -o-transition: all 200ms ease-in;
    -ms-transition: all 200ms ease-in;
    transition: all 200ms ease-in; 
}
.languagebutton:hover{
    margin-right: 20px;
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
    .main {
        position: relative;
        width: 90%;
        height: auto;
        left: 5%;
        top: 2%;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .name {
        position: relative;
        width: 100%;
        height: auto;
        padding: 120px 0 20px 0;
        font-size: 24px;
        letter-spacing: 1px;
        text-align: center;
        background-color: rgba(255,255,255,0.95);
        margin: 0 0 20px 0;
        border-radius: 10px;
    }
    
    .contents {
        position: relative;
        width: 100%;
        height: auto;
        margin: 0 0 20px 0;
        border-radius: 10px;
        background-color: #333;
        overflow: hidden;
        padding: 0;
    }
    
    /* Hide contents that are not displayed on mobile */
    .contents[style*="display: none"] {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }

    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background-color: rgba(230, 0, 0, 0.8);
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .back-to-top:hover {
        background-color: rgba(230, 0, 0, 1);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(230, 0, 0, 0.4);
    }

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    /* Loading Screen */
    .loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease-out;
    }

    .loading-screen.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .loading-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(230, 0, 0, 0.3);
        border-top: 3px solid #e60000;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
    }

    .loading-text {
        color: white;
        font-family: 'Playfair Display', serif;
        font-size: 18px;
        letter-spacing: 2px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Add image container above text */
    .contents::before {
        content: '';
        display: block;
        width: 100%;
        height: 150px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    #home::before {
        background-image: url('image/home.jpg');
    }
    
    #formazione::before {
        background-image: url('image/formazione.jpg');
    }
    
    #repertorio::before {
        background-image: url('image/repertorio.jpg');
    }
    
    #recordings::before {
        background-image: url('image/recordings.jpg');
    }
    
    #mrg::before {
        background-image: url('image/downloads.jpg');
    }
    
    #rewards::before {
        background-image: url('image/rewards.jpg');
    }
    
    .contentstext {
        position: relative;
        width: 90%;
        height: auto;
        margin: 0 auto 20px auto;
        padding: 15px;
        font-size: 14px;
        line-height: 1.5;
        background-color: rgba(255,255,255,0.95) !important;
        color: #333 !important;
        border-radius: 10px;
    }
    
    .contentstextsmall {
        width: 90%;
        height: auto;
        margin: 0 auto 20px auto;
        padding: 15px;
        font-size: 12px;
        line-height: 1.4;
        background-color: rgba(255,255,255,0.95) !important;
        color: #333 !important;
        border-radius: 10px;
    }
    
    .menu {
        position: sticky;
        top: 0;
        width: 100%;
        left: 0;
        text-align: center;
        margin: 0 0 10px 0;
        background-color: rgba(0,0,0,0.9);
        padding: 10px 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }
    
    .menubutton {
        display: inline-block;
        margin: 5px;
        padding: 8px 12px;
        font-size: 12px;
        height: auto;
    }
    
    .language {
        position: sticky;
        top: 60px;
        width: 100%;
        right: 0;
        text-align: center;
        margin: 0 0 10px 0;
        background-color: rgba(0,0,0,0.8);
        padding: 5px 0;
        z-index: 999;
        backdrop-filter: blur(5px);
    }
    
    .languagebutton {
        display: inline-block;
        margin: 5px;
    }
    
    .footer {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
        margin: 20px 0 0 0;
        font-size: 12px;
    }
    
    /* Remove background images from sections on mobile */
    #home, #formazione, #repertorio, #recordings, #mrg, #rewards {
        background-image: none !important;
        background-color: #333 !important;
    }
    
}

@media screen and (max-width: 480px) {
    .name {
        font-size: 20px;
        padding: 100px 0 15px 0;
    }
    
    .contentstext {
        font-size: 12px;
        padding: 10px;
    }
    
    .contentstextsmall {
        font-size: 11px;
        padding: 10px;
    }
    
    .menubutton {
        font-size: 11px;
        padding: 6px 10px;
        margin: 3px;
    }
    
    /* Adjust image height for small phones */
    .contents::before {
        height: 120px;
    }
    
    .contentstext, .contentstextsmall {
        font-size: 11px;
    }
}