@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,400;0,600;0,700;0,900;1,200;1,400;1,600;1,700;1,900&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    font-family: 'Poppins', sans-serif;
    width: min(120ch, 100vw - 2rem);
    margin: 0 auto;
    background-color: #F3D060;
}
.container {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow-x: hidden;
}
nav {
    display: grid;
    grid-template-columns: auto auto;
    min-height: 2rem;
    justify-content: first baseline;
    align-items: center;
    padding-bottom: 1rem;
}
nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: fit-content;
}
nav li {
    padding: .5rem 1rem;
}
nav a {
    transition: 200ms linear;
    color: #013750;
    text-decoration: none;
}
nav a:hover {
    border-bottom: 2px solid salmon;
}
nav .logo {
    margin-left: 10px;
    padding-left: 1rem;
    position: relative;
    border: 1px solid;
    border-end-end-radius: 10px;
    border-end-start-radius: 20px;
    border-start-end-radius: 5px;
    border-start-start-radius: 15px;
    background: #013750;
    width: 2.8rem;
    height: 2rem;
}
nav .logo::before {
    content: 'PERSIAN STORE CASPIAN MARKET';
    position: absolute;
    font-size: 2.5rem;
    font-weight: 900;
    inset: 50px;
    color: #F9F6EF;
    line-height: 1.25;
} 

main {
    color: hsl(46, 20%, 20%);
}
.callout404 {
    display: grid;
    grid-template: 
                "title img"
                "msg img";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
}
.callout404Title {
    grid-area: title;
    font-size: clamp(2rem, 1rem + 10vw, 8rem);
    font-weight: 900;
    line-height: .7;
    min-height: 40vh;
    place-content: flex-end end;
    display: grid;
    text-align: end;
    opacity: .8;
}
.message404 {
    grid-area: msg;
    font-size: clamp(1rem, 1rem + 1vw, 1.5rem);
    text-align: end;
    
}
.image404 {
    grid-area: img;
    transform: rotate(-45deg) translateY(6rem) translateX(-4rem);
    
    color: #A5282C2B;
    overflow: hidden;
    border: 1px solid #A5282C20;
    border-radius: 5px;
    position: relative;
    width: 100%;
    height: 100%;
}
.image404 pre {
    font-family: 'Courier New', Courier, monospace;
    color:hsl(46, 20%, 20%);
    font-size: 1rem;
    font-weight: 700;
    animation: slidein 3s linear;
}
@keyframes slidein {
    from {
        transform: translateX(-100%) scale(5);
    }
    to {
        transform: unset;
    }
}
.image404::before {
    content: '404';
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    inset: 0;
    display: grid;
    place-content: center;
}
.image404::after {
    content: 'ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR\A ERROR';
    white-space: pre; 
    position: absolute;
    top: -1rem;
    right: -.5rem;
    font-size: 2rem;
    line-height: .9;
}
.calltoaction404 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 2rem;
}
.actionElements {
    text-align: end;
}
.actionElements ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: .5rem;
}
.actionElements ul a {
    position: relative;
    display: block;
    padding: .3rem 2rem;
    border-radius: 2rem;
    color:hsl(46, 20%, 20%);
    text-decoration: none;
    background-image: 
        radial-gradient(
            ellipse at top left,
            hsl(42, 45%, 95%), 
            hsl(42, 25%, 85%));
}
.actionElements ul a::after {
    content: ' \00bb' ;
    position: absolute;
    font-size: 2rem;
    color: hsl(46, 86%, 46%);
    line-height: 2rem;
    top: .02rem;
    right: .5rem;
} 
.actionElements ul a:hover {
    font-weight: 200;
}