/* BODY */
html, body {
  overflow-x: hidden; 
  width: 100%;
}

body {
background: url('sky.png') no-repeat center center fixed;
background-size: cover;
background-color: navy;
    font-family: "Comforter Brush";
    cursor: url('compass-cursor.png') 12 12, pointer;
}

/* HEADERS */
h1 {
    font-family: "Comforter Brush";
    font-size: 70px;
     letter-spacing:15px;
     padding-top: 20px;
    text-align: center;   
    display: block;      
    color: white;
    text-shadow: 0 0 15px cyan, 0 0 15px cyan;
    margin-bottom: 0;
}

h2 {
    font-family: "Comforter Brush";
    font-size: 50px;
    letter-spacing:5px;
    color: #FFFACD;
    text-align: center;     
    margin-bottom: 20px; 
    margin-top: -10px;
}

/* TEXT BANNER */
.text-container {
    align-items: center;
    justify-content: center;
  background-color: white;
    opacity: 0.85; 
    max-width: 850px;
    max-height: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    border: 8px solid transparent;
    box-shadow: 
        0 0 0 4px #FFA07A,
        0 0 0 10px #FFFACD,
        0 0 0 14px #FFA07A;
    border-radius: 30px;
    overflow: visible;
    z-index: 2;
}

h3 {
    font-family: "Amatic SC";
    font-size: 36px;
    letter-spacing:5px;
    color: navy;
    text-align: center;     
    margin: 0 auto 10px auto;
}


/* TEXT */
p {
    font-family: "Amatic SC";
    color: #FFFACD;
    font-size:24px;
    margin: 28px;
    line-height: 30px;
}


/* LINKS */
a {
    color: navy; 
    text-decoration: none; 
    font-weight: bold;    
    transition: color 0.3s ease; 
}

/* HOVER EFFECT */
a:hover {
    color: cyan;   
}

/* PORTALs */
.portal-container {
    display: flex;
    justify-content: center; 
    align-items: center;   
    gap: 100px;          
    margin: 40px 0;     
    width: 100%;
    flex-wrap: nowrap;      
}

.portal {
    flex: 0 1 250px;        
    text-decoration: none;
    display: block;
}

.portal img {
  display: block;
  width: 400px;           
  height: auto;          
  margin: 0 auto;
  transition: transform .5s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 15px rgba(135, 206, 235, 1));
}


.portal img:hover {
  transform: translateY(-10px) scale(1.15);
  filter: drop-shadow(0 0 50px rgba(253, 253, 150, 1));
  border-color: skyblue;
}

/* BACKGROUND MUSIC */
.music{
position:absolute;
left:-9999px;
}

/* FOOTER */
footer {
  left: 40px;
  bottom: 20px;
  width: auto;
  text-align: left;
  background-color: transparent;
}

/* COMPASS ROSE NAVIGATION */
.compass-nav {
    position: fixed;
    flex-shrink: 0;
    bottom: 75px;
    right: 75px;
    width: 150px;
    height: 150px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-label {
    display: block;
    cursor: pointer;
    transition: transform 0.8s ease;
    filter: drop-shadow(0 0 10px #FFFACD);
    z-index: 1001;
}

.compass-icon {
    width: 150px;
    height: 150px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%);
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

#toggle:checked + .compass-label {
    transform: rotate(360deg);
}

ul.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

#toggle:checked ~ ul.menu-list {
    opacity: 1;
    pointer-events: auto;
}

/* COMPASS ICONS */
ul.menu-list li {
    --radius: 100px;  
    --offset: -0.25turn;
    --count: 4;
    position: absolute;
    top: 0; left: 0;
    padding: 0;
    margin: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translate(-50%, -50%);
}

#toggle:checked ~ ul.menu-list li {
    transform: translate(-50%, -50%) 
               rotate(calc((var(--i) * 1turn / var(--count)) + var(--offset))) 
               translate(var(--radius))
               rotate(calc(-1 * ((var(--i) * 1turn / var(--count)) + var(--offset))));
}

ul.menu-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 50px;
    background: #FFFACD;
    border: 3px solid #FFA07A;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

ul.menu-list a:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px #FFFACD;
}
