type = fancymenu_layout

layout-meta {
  identifier = com.mojang.realmsclient.gui.screens.RealmsPdpScreen
  render_custom_elements_behind_vanilla = true
}

customization {
  action = backgroundoptions
  keepaspectratio = true
}

element {
  instance_identifier = 0
  element_type = image
  anchor_point = top-centered
  height = 25
  stretch_x = true
  source = [source:location]fancymenu:textures/widget/header.png
}

vanilla_button {
  instance_identifier = 504974
  anchor_point = element
  anchor_point_element = 0
  width = 8
  height = 12
  x = 4
  y = 6
  backgroundnormal = [source:location]fancymenu:textures/icon/back.png
  backgroundhovered = [source:location]fancymenu:textures/icon/back_highlight.png
  label = 
}

element {
  instance_identifier = 2
  element_type = text_v2
  anchor_point = element
  anchor_point_element = 0
  stretch_x = true
  y = 3
  interactable = false
  source = ^^^%n%**Minecraft Realms**%n%^^^
  source_mode = direct
  shadow = false
  scale = 1.5
  enable_scrolling = false
  base_color = #4c4c4c
}

vanilla_button {
  instance_identifier = 34612
  anchor_point = bottom-centered
  width = 130
  height = 30
  x = -166
  y = -32
  backgroundnormal = [source:location]fancymenu:textures/widget/gray_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/gray_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 4
  label_hover_color = #4c4c4cFF
}

vanilla_button {
  instance_identifier = 346974
  anchor_point = element
  anchor_point_element = 34612
  width = 130
  height = 30
  x = 134
  label_base_color = #FFFFFFFF
}

vanilla_button {
  instance_identifier = 61012
  anchor_point = element
  anchor_point_element = 346974
  width = 30
  height = 30
  x = 134
}

vanilla_button {
  instance_identifier = 63412
  anchor_point = element
  anchor_point_element = 61012
  width = 30
  height = 30
  x = 34
}

vanilla_button {
  instance_identifier = 4365
  is_hidden = true
}