/*General Settings*/

@font-face
{
    font-family: Metropolis;
    src: url("./assets/Metropolis-Regular.otf?v=1.0") format("opentype");
}

@font-face
{
    font-family: Metropolis;
    font-weight: bold;
    src: url("./assets/Metropolis-Bold.otf?v=1.0") format("opentype");
}

::-webkit-scrollbar {display: none;}

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

/*Page Container Settings*/

body
{
    background-image: url("./assets/olive-villa-tree.png?v=1.0");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    background-attachment: fixed;
    transition: background-image 1s ease;
}

#page-container
{
    background-color: rgba(255, 255, 255, 0.5);
    overflow: scroll;
    height: 96vh;
    display: grid;
    column-width: 100%;
    grid-template-rows: 54.4vh auto;
    row-gap: 2vh;
    padding: 2vh;
    box-shadow: inset 0 0 1vh rgba(255, 255, 255, 0.5), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    border: 0.1vh solid rgba(255, 255, 255, 0.75);
    border-radius: 6vh;
    left: 2vh;
    right: 2vh;
    margin: auto;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    max-width: calc(100vw - 4vh);
    aspect-ratio: 3 / 2;
    animation: load 2s !important;
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

@supports (scrollbar-width: none)
{
    #page-container{
        scrollbar-width: none;
    }
}

#page-container::-webkit-scrollbar {
    display: none; /* For Chrome, Safari and newer versions of Edge */
}

/*Box Settings*/

.box
{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 4vh;
    box-shadow: 0 1vh 2vh rgba(0, 0, 0, 0.5);
    border: 0.1vh solid rgba(255, 255, 255, 0.75);
    position: relative;
    height: 35.6vh;
}

.logo {
    filter: drop-shadow(0px 1vh 1vh rgba(0,0,0,0.75));
    position: absolute;
    height: 35%;
    max-width: 35%;
    transition: transform 0.5s, filter 0.5s;
}

.box:hover img
{
    transform: scale(1.2);
    filter: drop-shadow(0px 1vh 4vh rgba(0,0,0,0.5));
}

.vignette
{
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50%, transparent 50%, #000000);
    background-size: 125%;
    background-position: 50%;
    border-radius: 4vh;
}

.white-inner-glow
{
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 1vh rgba(255, 255, 255, 0.75);
    border-radius: 4vh;
    position: absolute;
}

/*Hold Settings*/

.hold
{
    transform: scale(1);
    transition: transform 0.25s;
    cursor: pointer;
}

.hold:active {transform: scale(.9);}

/*Header Settings*/

#header
{
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
    height: auto !important;
    transition: background-color 0.25s ease, transform 0.25s;
}

#header img {
    max-height: 50%;
    max-width: 75%;
}
  
.hover-popup {
    position: absolute;
    resize: none;
    font-size: 2vh;
    text-shadow: 0 0.5vh 0.75vh rgba(0,0,0,0.5);
    font-family: 'Metropolis';
    font-weight: lighter;
    background-color: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 1vh rgba(255, 255, 255, 0.75), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-align: center;
    border-radius: 2vh;
    padding: 2vh;
    pointer-events: none;
    z-index: 9999;
    border: 0.1vh solid rgba(255, 255, 255, 0.75);
    width: 50vh;
    transition: filter 0.25s ease-in-out, opacity 0.25s ease-in-out; /* Adjust timing to your preference */
    opacity: 0;
    filter: blur(4vh);
}

.fade-in {
    opacity: 1 !important;
    filter: blur(0vh) !important;
}

.fade-out {
    opacity: 0 !important;
    filter: blur(4vh) !important;
  }

.popup-content{
    visibility: hidden;
}

/*Half Settings*/

.half
{
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 2vh;
}

#discord-box {
    background-color: rgb(88, 101, 242);
}

#twitter-box {
    background-color: rgb(29, 155, 240);
}

/*Text Settings*/

.box-text
{
    font-size: 4vh;
    line-height: 0.75;
    position: absolute;
    margin: 4vh;
    left: 0;
    right: 0;
    bottom: 0;
    text-shadow: 0 0.5vh 0.75vh rgba(0,0,0,0.5);
    color: #ffffff;
    font-family: 'Metropolis';
    font-weight: bold;
    text-align: center;
}

a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:hover {text-decoration: none;}
a:active {text-decoration: none;}

/*Screen Adjustments*/

@media screen and (max-aspect-ratio: 3 / 2)
{
    #page-container {aspect-ratio: auto;}
}

@media screen and (max-aspect-ratio: 1 / 1)
{
    .half
    {
        grid-template-columns: auto;
        row-gap: 2vh;
    }
    #header img
    {
        width: 65%;
    }
}

/*Background Blur Support*/

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none))
{
    #page-container
    {
        background-color: rgba(255, 255, 255, 0.25);
        -webkit-backdrop-filter: saturate(150%) blur(4vh);
        backdrop-filter: saturate(150%) blur(4vh);
    }

    .hover-popup {
        background-color: rgba(255, 255, 255, 0.5);
        -webkit-backdrop-filter: saturate(150%) blur(4vh);
        backdrop-filter: saturate(150%) blur(4vh);
    }
}

/*Shore Animations*/

.blue:hover {animation: blue-shore-animation 1s infinite !important;}
  
@-webkit-keyframes blue-shore-animation
{
    0%
    {
        -webkit-box-shadow: 0 0 0 0px rgba(0, 136, 255, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
    100%
    {
        -webkit-box-shadow: 0 0 1vh 2vh rgba(0, 136, 255, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
}

@keyframes blue-shore-animation
{
    0%
    {
        -moz-box-shadow: 0 0 0 0px rgba(0, 136, 255, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 0 0px rgba(0, 136, 255, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
    100%
    {
        -moz-box-shadow: 0 0 1vh 2vh rgba(0, 136, 255, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 1vh 2vh rgba(0, 136, 255, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
}

.green:hover {animation: green-shore-animation 1s infinite !important;}
  
@-webkit-keyframes green-shore-animation
{
    0%
    {
        -webkit-box-shadow: 0 0 0 0px rgba(34, 204, 34, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
    100%
    {
        -webkit-box-shadow: 0 0 1vh 2vh rgba(34, 204, 34, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
}

@keyframes green-shore-animation
{
    0%
    {
        -moz-box-shadow: 0 0 0 0px rgba(34, 204, 34, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 0 0px rgba(34, 204, 34, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
    100%
    {
        -moz-box-shadow: 0 0 1vh 2vh rgba(34, 204, 34, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 1vh 2vh rgba(34, 204, 34, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
}

.discord-blue-shore:hover {animation: discord-blue-shore-animation 1s infinite !important;}
  
@-webkit-keyframes discord-blue-shore-animation
{
    0%
    {
        -webkit-box-shadow: 0 0 0 0px rgba(88, 101, 242, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
    100%
    {
        -webkit-box-shadow: 0 0 1vh 2vh rgba(88, 101, 242, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
}

@keyframes discord-blue-shore-animation
{
    0%
    {
        -moz-box-shadow: 0 0 0 0px rgba(88, 101, 242, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 0 0px rgba(88, 101, 242, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
    100%
    {
        -moz-box-shadow: 0 0 1vh 2vh rgba(88, 101, 242, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 1vh 2vh rgba(88, 101, 242, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
}

.twitter-blue-shore:hover {animation: twitter-blue-shore-animation 1s infinite !important;}
  
@-webkit-keyframes twitter-blue-shore-animation
{
    0%
    {
        -webkit-box-shadow: 0 0 0 0px rgba(29, 155, 240, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
    100%
    {
        -webkit-box-shadow: 0 0 1vh 2vh rgba(29, 155, 240, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
}

@keyframes twitter-blue-shore-animation
{
    0%
    {
        -moz-box-shadow: 0 0 0 0px rgba(29, 155, 240, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 0 0px rgba(29, 155, 240, 1), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
    100%
    {
        -moz-box-shadow: 0 0 1vh 2vh rgba(29, 155, 240, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 1vh 2vh rgba(29, 155, 240, 0), 0 1vh 2vh rgba(0, 0, 0, 0.5);
    }
}

@-webkit-keyframes load
{
    0%
    {
        -webkit-filter: blur(4vh);
        filter: blur(4vh);
        -webkit-opacity: 0%;
    }
    100%
    {
        -webkit-filter: blur(0);
        filter: blur(0);
        -webkit-opacity: 100%;
    }
}

@keyframes load
{
    0%
    {
        -moz-filter: blur(4vh);
        filter: blur(4vh);
        -moz-opacity: 0%;
        opacity: 0%;
    }
    100%
    {
        -moz-filter: blur(0);
        filter: blur(0);
        -moz-opacity: 100%;
        opacity: 100%;
    }
}