@font-face {
    font-family: "norse";
    src: url(font/Norsebold.otf);
  }

@font-face {
    font-family: "norseSmall";
    src: url(font/Norse.otf);
}

@font-face {
    font-family: "roman";
    src: url(font/DOMINICA.ttf);
}

/* Basic reset and styling */
body {
    margin: 0;
    padding: 0;
    text-align: center;
    background: rgb(127, 128, 129);
    transition: 0.5s ease 1s;
    height: 100vh;
    overflow: hidden;
}

.overlay {
    position: fixed;
    top:0;
    left: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    opacity: 1;
    background: rgb(28, 51, 104);
    transition: opacity 2s ease 3s;
    z-index: -1;
    height: 100vh;
}

/* Put up an overlay for when locations are switching to make it look smooth */
.overlayShow {
    opacity: 1;
    transition: opacity 0.5s ease 0s;
}

.input {
    margin-left: 1rem;
}

main {
    padding: 0;
    margin: 0;
    background-image: linear-gradient(315deg, rgb(0, 0, 0, 0), rgba(19, 15, 2));
    height: 100vh;
    overflow: hidden;
}


.title {
    position: relative;
    opacity: 0;
    font-family: "norse";
    font-size: 100px;
    margin-top: 14rem;
    margin-bottom: 4rem;
    color: rgb(180, 180, 180);
    text-shadow: 3px 3px rgb(59, 59, 59);
    cursor: default;
}



/* This is used to transition the title to the top left corner using JavaScript */
.titleTransition {
    opacity: 1; 
    font-size: 30px; /* Shrink the font */
    transform: translate(-50%, -50%); /* Move it to the top-left */
    margin: auto;
    margin-left: 11rem;
    margin-top: 1.5rem;
    transition: 1s;
    transition-delay: 1.8s;
    pointer-events: none;
}


.searchBar {
    opacity: 0;
    border: 4px solid rgb(20, 17, 17); 
    outline: 0;
    border-radius: 30px;
    font-size: 28px;
    padding-left: 1rem;
    background-color: rgb(47, 50, 59);
    font-family: "norseSmall";
    color: rgb(202, 200, 200);
    transition: opacity 0.75s ease;
    margin-left: 2rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@keyframes shakeButton {
    0%, 100% { transform: translateX(-50px); }
    20%, 60% { transform: translateX(-55px); }
    40%, 80% { transform: translateX(-45px); }
}

/* Animation for the search bar to shake whenever an invalid city is entered */
.shake {
    position: relative;
    animation: shake 0.5s ease;
}

.shakeButton {
    position: relative;
    animation: shakeButton 0.5s ease;
}

 button {
    opacity: 0;
    background-color: transparent;
    border: 0;
    outline: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: opacity 0.75s ease;
    transform: translateX(-50px);

}

button img {
    opacity: 75%;
    width: 25px;
    height: 25px;
    padding-top: 5px;
}

.invalidLocation {
    opacity: 0;
    color: rgb(158, 44, 44);
    text-shadow: 3px 3px rgb(26, 26, 26);
    font-family: "norse";
    font-size: 23px;
    transition: opacity 0.2s ease;
}

.hidden {
    opacity: 0;
    margin-top: 4rem;
    transition: opacity 1.5s ease;
}

.fadeIn {
    opacity: 1;
    transition: opacity 1.5s ease-in-out, transform 0.25s;
}

.weather-card {
    opacity: 0;
    width: fit-content;
    height: fit-content;
    font-family: "roman";
    font-size: 26px;
    color: rgb(180, 180, 180);
    margin-top: 3rem;
    transform: translateY(-50%);
    top: 0;
    left: 0;
    transition: opacity 1s ease 3s;
    text-shadow: 2px 2px rgb(0, 0, 0);
    margin-top: 4rem;
}

.temp {
    display: inline-block;
    margin-bottom: -5rem;
    margin-top: -25rem;
    font-size: 40px;
}

.weather-icon {
    width: 50px;
    height: 50px;
    transform: translateY(30%);
    margin-left: 1.5rem;
    margin-top: -3rem;
}

.realmTitleBox {
    opacity: 0;
    color: rgb(180, 180, 180);
    position: absolute;
    width: fit-content;
    height: fit-content;
    text-align: left;
    transition: 1s ease 3s;
    bottom: 0;
    transform: translate(10%, 10%);
}

.realmHeading {
    display: inline-block;
    font-family: "norse";
    font-size: 145px;
    text-shadow: 4px 4px rgb(59, 59, 59);
    margin-top: 0;
    margin-bottom: -1rem;
    transition: 1s;
}

.realmHeading:hover {
    transition: 0.75s;
    cursor: pointer;
}

.hover-muspelheim {
    color:rgb(187, 62, 62);
}

.hover-muspelheim:hover {
    color:rgb(244, 112, 112);
    transition: 0.75s;
    cursor: pointer;
}

.hover-asgard {
    color:rgb(227, 205, 62);
}

.hover-asgard:hover {
    color:rgb(255, 240, 139);
    transition: 0.75s;
    cursor: pointer;
}

.hover-niflheim {
    color: rgb(73, 152, 184);
}

.hover-niflheim:hover {
    color: rgb(115, 208, 245);
    transition: 0.75s;
    cursor: pointer;
}

.hover-jotunheim {
    color: rgb(203, 166, 63);
}

.hover-jotunheim:hover {
    color: rgb(238, 205, 114);
    transition: 0.75s;
    cursor: pointer;
}

.hover-svartalfheim {
    color: rgb(115, 169, 157);
}

.hover-svartalfheim:hover {
    color: rgb(154, 255, 233);
    transition: 0.75s;
    cursor: pointer;
}

.hover-helheim {
    color: rgb(28, 159, 120);
}

.hover-helheim:hover {
    color: rgb(68, 230, 181);
    transition: 0.75s;
    cursor: pointer;
}

.hover-alfheim {
    color: rgb(181, 255, 95);
}

.hover-alfheim:hover {
    color: rgb(214, 255, 168);
    transition: 0.75s;
    cursor: pointer;
}

.hover-vanaheim {
    color: rgb(20, 216, 37);
}

.hover-vanaheim:hover {
    color: rgb(141, 255, 121);
    transition: 0.75s;
    cursor: pointer;
}

.hover-midgard {
    color: rgb(76, 95, 193);
}

.hover-midgard:hover {
    color: rgb(147, 177, 255);
    transition: 0.75s;
    cursor: pointer;
}

.hover-valhalla {
    color: rgb(144, 20, 216);
}

.hover-valhalla:hover {
    color: rgb(218, 149, 255);
    transition: 0.75s;
    cursor: pointer;
}

.hover-ragnarok {
    color: rgb(203, 101, 17);
}

.hover-ragnarok:hover {
    color: rgb(255, 191, 122);
    transition: 0.75s;
    cursor: pointer;
}

.miniRealm {
    font-size: 20px;
    font-family: "roman";
    text-shadow: 3px 3px rgb(59, 59, 59);
    margin-bottom: -0.75rem;
    margin-left: 0.25rem;
    white-space: nowrap;
  
}

.miniRealm2 {
    font-size: 20px;
    font-family: "norse";
    text-shadow: 3px 3px rgb(59, 59, 59);
    margin-top: 0;
    margin-bottom: 5rem;
    text-align: right;
    
  
}
